dibk-design 1.0.1 → 1.0.4
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.
|
@@ -7,9 +7,6 @@
|
|
|
7
7
|
padding: 0 15px 0;
|
|
8
8
|
line-height: 0;
|
|
9
9
|
max-height: 0;
|
|
10
|
-
@media only screen and (min-width: $screen-sm) {
|
|
11
|
-
padding: 0 30px 0;
|
|
12
|
-
}
|
|
13
10
|
}
|
|
14
11
|
100% {
|
|
15
12
|
opacity: 1;
|
|
@@ -17,9 +14,6 @@
|
|
|
17
14
|
padding: 8px 15px 15px;
|
|
18
15
|
line-height: inherit;
|
|
19
16
|
max-height: 1000px;
|
|
20
|
-
@media only screen and (min-width: $screen-sm) {
|
|
21
|
-
padding: 8px 30px 15px;
|
|
22
|
-
}
|
|
23
17
|
}
|
|
24
18
|
}
|
|
25
19
|
|
|
@@ -30,9 +24,6 @@
|
|
|
30
24
|
padding: 0 15px 0;
|
|
31
25
|
line-height: 0;
|
|
32
26
|
max-height: 0;
|
|
33
|
-
@media only screen and (min-width: $screen-sm) {
|
|
34
|
-
padding: 0 30px 0;
|
|
35
|
-
}
|
|
36
27
|
}
|
|
37
28
|
0% {
|
|
38
29
|
opacity: 1;
|
|
@@ -40,8 +31,40 @@
|
|
|
40
31
|
padding: 8px 15px 15px;
|
|
41
32
|
line-height: inherit;
|
|
42
33
|
max-height: 1000px;
|
|
43
|
-
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@media only screen and (min-width: $screen-sm) {
|
|
38
|
+
@keyframes show {
|
|
39
|
+
0% {
|
|
40
|
+
opacity: 0;
|
|
41
|
+
margin-top: 0px;
|
|
42
|
+
padding: 0 30px 0;
|
|
43
|
+
line-height: 0;
|
|
44
|
+
max-height: 0;
|
|
45
|
+
}
|
|
46
|
+
100% {
|
|
47
|
+
opacity: 1;
|
|
48
|
+
margin-top: 0px;
|
|
49
|
+
padding: 8px 30px 15px;
|
|
50
|
+
line-height: inherit;
|
|
51
|
+
max-height: 1000px;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
@keyframes hide {
|
|
55
|
+
100% {
|
|
56
|
+
opacity: 0;
|
|
57
|
+
margin-top: 0px;
|
|
58
|
+
padding: 0 30px 0;
|
|
59
|
+
line-height: 0;
|
|
60
|
+
max-height: 0;
|
|
61
|
+
}
|
|
62
|
+
0% {
|
|
63
|
+
opacity: 1;
|
|
64
|
+
margin-top: 0px;
|
|
44
65
|
padding: 8px 30px 15px;
|
|
66
|
+
line-height: inherit;
|
|
67
|
+
max-height: 1000px;
|
|
45
68
|
}
|
|
46
69
|
}
|
|
47
70
|
}
|
|
@@ -93,6 +93,7 @@
|
|
|
93
93
|
color: $color-primary;
|
|
94
94
|
&:not(:local(.hasTheme)) {
|
|
95
95
|
&:hover:not(:local(.noHover)),
|
|
96
|
+
&:focus-visible,
|
|
96
97
|
&:active {
|
|
97
98
|
background-color: $color-primary;
|
|
98
99
|
color: #fff;
|
|
@@ -109,6 +110,7 @@
|
|
|
109
110
|
color: #fff;
|
|
110
111
|
&:not(:local(.hasTheme)) {
|
|
111
112
|
&:hover:not(:local(.noHover)),
|
|
113
|
+
&:focus-visible,
|
|
112
114
|
&:active {
|
|
113
115
|
background-color: #fff;
|
|
114
116
|
color: $color-primary;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _TableModule = _interopRequireDefault(require("./Table.module.scss"));
|
|
11
|
+
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
|
|
14
|
+
// Dependencies
|
|
15
|
+
// Stylesheets
|
|
16
|
+
var Table = function Table(props) {
|
|
17
|
+
return /*#__PURE__*/_react.default.createElement("table", {
|
|
18
|
+
className: _TableModule.default.table
|
|
19
|
+
}, props.children);
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
var _default = Table;
|
|
23
|
+
exports.default = _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
Select example:
|
|
2
|
+
|
|
3
|
+
```js
|
|
4
|
+
<Table>
|
|
5
|
+
<thead>
|
|
6
|
+
<tr>
|
|
7
|
+
<th>Table header 1</th>
|
|
8
|
+
<th>Table header 2</th>
|
|
9
|
+
</tr>
|
|
10
|
+
</thead>
|
|
11
|
+
<tbody>
|
|
12
|
+
<tr>
|
|
13
|
+
<td>Table data 1</td>
|
|
14
|
+
<td>Table data 2</td>
|
|
15
|
+
</tr>
|
|
16
|
+
<tr>
|
|
17
|
+
<td>Table data 3</td>
|
|
18
|
+
<td>Table data 4</td>
|
|
19
|
+
</tr>
|
|
20
|
+
<tr>
|
|
21
|
+
<td>Table data 5</td>
|
|
22
|
+
<td>Table data 6</td>
|
|
23
|
+
</tr>
|
|
24
|
+
</tbody>
|
|
25
|
+
</Table>
|
|
26
|
+
```
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
@import "../style/global.scss";
|
|
2
|
+
|
|
3
|
+
:local(.table) {
|
|
4
|
+
font-family: $default-font;
|
|
5
|
+
border-collapse: collapse;
|
|
6
|
+
width: 100%;
|
|
7
|
+
thead {
|
|
8
|
+
tr {
|
|
9
|
+
background-color: #ededed;
|
|
10
|
+
border: 1px solid #000;
|
|
11
|
+
th {
|
|
12
|
+
text-align: left;
|
|
13
|
+
font-size: 17px;
|
|
14
|
+
padding: 10px;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
tbody {
|
|
19
|
+
tr {
|
|
20
|
+
border: 1px solid #000;
|
|
21
|
+
td {
|
|
22
|
+
padding: 10px;
|
|
23
|
+
font-size: 17px;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
package/dist/index.js
CHANGED
|
@@ -153,6 +153,12 @@ Object.defineProperty(exports, "Select", {
|
|
|
153
153
|
return _Select.default;
|
|
154
154
|
}
|
|
155
155
|
});
|
|
156
|
+
Object.defineProperty(exports, "Table", {
|
|
157
|
+
enumerable: true,
|
|
158
|
+
get: function get() {
|
|
159
|
+
return _Table.default;
|
|
160
|
+
}
|
|
161
|
+
});
|
|
156
162
|
Object.defineProperty(exports, "Textarea", {
|
|
157
163
|
enumerable: true,
|
|
158
164
|
get: function get() {
|
|
@@ -222,6 +228,8 @@ var _RadioButtonListItem = _interopRequireDefault(require("./components/RadioBut
|
|
|
222
228
|
|
|
223
229
|
var _Select = _interopRequireDefault(require("./components/Select"));
|
|
224
230
|
|
|
231
|
+
var _Table = _interopRequireDefault(require("./components/Table"));
|
|
232
|
+
|
|
225
233
|
var _Textarea = _interopRequireDefault(require("./components/Textarea"));
|
|
226
234
|
|
|
227
235
|
var _WizardNavigation = _interopRequireDefault(require("./components/WizardNavigation"));
|