ywana-core8 0.1.76 → 0.1.77
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/index.cjs +2781 -142
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1772 -72
- package/dist/index.css.map +1 -1
- package/dist/index.modern.js +2775 -143
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +2781 -142
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/html/index.js +3 -0
- package/src/html/tab.css +4 -3
- package/src/html/table2.example.js +1 -1
- package/src/html/table2.js +1 -1
- package/src/html/textfield2.css +3 -4
- package/src/html/textfield2.example.js +1013 -142
- package/src/html/textfield2.js +22 -9
- package/src/html/tree.css +18 -16
- package/src/html/tree.js +6 -4
package/package.json
CHANGED
package/src/html/index.js
CHANGED
@@ -4,6 +4,7 @@ export { CheckBox } from './checkbox'
|
|
4
4
|
export { Chips, Chip } from './chip'
|
5
5
|
export { Form } from './form'
|
6
6
|
export { Header } from './header'
|
7
|
+
export { Header2 } from './header2'
|
7
8
|
export { Icon } from './icon'
|
8
9
|
export { List } from './list'
|
9
10
|
export { MenuIcon, Menu, MenuItem, MenuSeparator } from './menu'
|
@@ -13,8 +14,10 @@ export { RadioButton, RadioGroup } from './radio'
|
|
13
14
|
export { Section } from './section'
|
14
15
|
export { Tabs, Tab, Stack } from './tab'
|
15
16
|
export { DataTable } from './table'
|
17
|
+
export { DataTable2 } from './table2'
|
16
18
|
export { Text, TEXTFORMATS } from './text'
|
17
19
|
export { TextField, DropDown, TextArea, DateRange, PasswordField } from './textfield'
|
20
|
+
export { TextField2, TextArea2, PasswordField2, DropDown2, DateRange2 } from './textfield2'
|
18
21
|
export { TokenField } from './tokenfield'
|
19
22
|
export { Tree, TreeNode, TreeItem } from './tree'
|
20
23
|
export { Switch, Switch2 } from './switch'
|
package/src/html/tab.css
CHANGED
@@ -92,9 +92,9 @@
|
|
92
92
|
transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
|
93
93
|
}
|
94
94
|
|
95
|
+
/* Removed focus outline to avoid interfering with selected tab design */
|
95
96
|
.tab:focus {
|
96
|
-
outline:
|
97
|
-
outline-offset: -2px;
|
97
|
+
outline: none;
|
98
98
|
}
|
99
99
|
|
100
100
|
.tab--disabled {
|
@@ -126,6 +126,7 @@
|
|
126
126
|
.tab--vertical.selected {
|
127
127
|
border-right-width: 0;
|
128
128
|
border-left: solid 3px var(--primary-color, #2196f3);
|
129
|
+
border-bottom: solid 1px var(--divider-color);
|
129
130
|
}
|
130
131
|
|
131
132
|
/* Tab content */
|
@@ -278,7 +279,7 @@
|
|
278
279
|
}
|
279
280
|
|
280
281
|
.tab:focus {
|
281
|
-
outline
|
282
|
+
outline: none;
|
282
283
|
}
|
283
284
|
|
284
285
|
.tab.selected {
|
@@ -395,7 +395,7 @@ export const DataTable2Examples = () => {
|
|
395
395
|
borderRadius: '4px',
|
396
396
|
border: '1px solid #bbdefb'
|
397
397
|
}}>
|
398
|
-
<Text size="sm" color="
|
398
|
+
<Text size="sm" color="prima">
|
399
399
|
💡 <strong>Tip:</strong> Pasa el mouse sobre el borde derecho de cualquier columna para ver el cursor de redimensionamiento.
|
400
400
|
Arrastra para cambiar el ancho. Los cambios se registran en la consola.
|
401
401
|
</Text>
|
package/src/html/table2.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import React, { Fragment, useState, useCallback, useRef, useEffect, useMemo } from 'react'
|
2
2
|
import PropTypes from 'prop-types'
|
3
3
|
import { FORMATS, TYPES } from '../domain/ContentType'
|
4
|
-
import { DropDown, TextField } from './
|
4
|
+
import { DropDown2 as DropDown, TextField2 as TextField } from './textfield2'
|
5
5
|
import { CheckBox } from './checkbox'
|
6
6
|
import { Icon } from './icon'
|
7
7
|
import { Text } from './text'
|
package/src/html/textfield2.css
CHANGED
@@ -153,7 +153,8 @@
|
|
153
153
|
.textfield2 > textarea:focus ~ label,
|
154
154
|
.textfield2 > textarea:valid ~ label,
|
155
155
|
.textfield2 > textarea[value]:not([value=""]) ~ label,
|
156
|
-
.textfield2.focused > label
|
156
|
+
.textfield2.focused > label,
|
157
|
+
.textfield2.has-placeholder > label {
|
157
158
|
top: 0.3rem;
|
158
159
|
font-size: 0.8rem;
|
159
160
|
color: var(--primary-color, #2196f3);
|
@@ -270,13 +271,12 @@
|
|
270
271
|
.textfield2-outlined > input:focus,
|
271
272
|
.textfield2-outlined > textarea:focus {
|
272
273
|
border-color: var(--primary-color, #2196f3);
|
273
|
-
|
274
|
+
outline: none;
|
274
275
|
}
|
275
276
|
|
276
277
|
.textfield2-outlined.error,
|
277
278
|
.textfield2-outlined.invalid {
|
278
279
|
border-color: var(--error-color, #f44336);
|
279
|
-
box-shadow: 0 0 0 1px var(--error-color, #f44336);
|
280
280
|
}
|
281
281
|
|
282
282
|
.textfield2-outlined .textfield2-bar {
|
@@ -407,7 +407,6 @@
|
|
407
407
|
.dropdown2-control:focus {
|
408
408
|
outline: none;
|
409
409
|
border-color: var(--primary-color, #2196f3);
|
410
|
-
box-shadow: 0 0 0 1px var(--primary-color, #2196f3);
|
411
410
|
}
|
412
411
|
|
413
412
|
.dropdown2.disabled .dropdown2-control {
|