jsl-ui 10.4.4 → 10.4.5
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/docs/AutoSuggestComponent.md +17 -17
- package/docs/ButtonComponent.md +22 -22
- package/docs/CheckBoxComponent.md +12 -12
- package/docs/DataBinding.md +19 -19
- package/docs/DateComponent.md +12 -12
- package/docs/DateRangeComponent.md +13 -13
- package/docs/DateTimeComponent.md +14 -14
- package/docs/DialogComponent.md +15 -15
- package/docs/DropdownMenuComponent.md +22 -22
- package/docs/ExpanderComponent.md +13 -13
- package/docs/FormComponent.md +15 -15
- package/docs/FormFieldComponent.md +15 -15
- package/docs/GridComponent.md +39 -39
- package/docs/InputComponent.md +15 -15
- package/docs/IntervalComponent.md +13 -13
- package/docs/LoadingComponent.md +12 -12
- package/docs/NavigationComponent.md +17 -17
- package/docs/Notification.md +14 -14
- package/docs/NotificationComponent.md +13 -13
- package/docs/NumberComponent.md +12 -12
- package/docs/OverlayComponent.md +13 -13
- package/docs/ProgressComponent.md +12 -12
- package/docs/README.md +27 -27
- package/docs/RibbonMenuComponent.md +14 -14
- package/docs/SelectComponent.md +36 -36
- package/docs/SliderComponent.md +20 -20
- package/docs/SplitterComponent.md +14 -14
- package/docs/StackPanelComponent.md +13 -13
- package/docs/TabsComponent.md +16 -16
- package/docs/TimeComponent.md +13 -13
- package/docs/TreeViewComponent.md +16 -16
- package/examples/showcase/checks-and-expanders.ts +148 -148
- package/examples/showcase/cultures.ts +39 -39
- package/examples/showcase/data-binding.ts +138 -138
- package/examples/showcase/dates.ts +168 -168
- package/examples/showcase/dialogs.ts +184 -184
- package/examples/showcase/dropdown-menus.ts +99 -99
- package/examples/showcase/feedback-and-navigation.ts +173 -173
- package/examples/showcase/fields.ts +166 -166
- package/examples/showcase/fonts/OFL-BricolageGrotesque.txt +93 -93
- package/examples/showcase/fonts/OFL-Figtree.txt +93 -93
- package/examples/showcase/fonts/OFL-Jost.txt +93 -93
- package/examples/showcase/generate-sources.cjs +104 -104
- package/examples/showcase/grids.ts +484 -484
- package/examples/showcase/index.html +71 -71
- package/examples/showcase/layout-and-navigation.ts +46 -46
- package/examples/showcase/nivona.css +98 -98
- package/examples/showcase/package.json +10 -10
- package/examples/showcase/selects.ts +184 -184
- package/examples/showcase/showcase-sources.ts +94 -94
- package/examples/showcase/showcase.css +281 -281
- package/examples/showcase/showcase.ts +244 -244
- package/examples/showcase/tabs.ts +161 -161
- package/examples/showcase/themes.css +83 -83
- package/examples/showcase/themes.ts +56 -56
- package/examples/showcase/wirtshans.css +65 -65
- package/lib/components/checkbox/CheckBoxStyle.scss +73 -73
- package/lib/components/date-range/DateRangeStyle.scss +35 -35
- package/lib/components/date-time/DateTimeStyle.scss +9 -9
- package/lib/components/dialog/DialogComponent.d.ts +9 -2
- package/lib/components/dialog/DialogComponent.js +17 -51
- package/lib/components/dropdown-menu/DropdownMenuStyle.scss +48 -48
- package/lib/components/expander/ExpanderStyle.scss +61 -61
- package/lib/components/form-field/FormFieldStyle.scss +36 -36
- package/lib/components/host/RenderHost.d.ts +25 -0
- package/lib/components/host/RenderHost.js +63 -0
- package/lib/components/loading/LoadingStyle.css +18 -18
- package/lib/components/navigation/NavigationStyle.scss +61 -61
- package/lib/components/notification/Notification.scss +102 -102
- package/lib/components/overlay/OverlayComponent.d.ts +9 -1
- package/lib/components/overlay/OverlayComponent.js +22 -13
- package/lib/components/overlay/overlay.css +15 -15
- package/lib/components/progress/ProgressStyle.scss +4 -4
- package/lib/components/ribbon-menu/RibbonMenuStyle.scss +5 -5
- package/lib/components/select/SelectStyle.scss +207 -207
- package/lib/components/slider/SliderStyle.scss +21 -21
- package/lib/components/slider/nouislider.css +15 -15
- package/lib/components/stack-panel/SplitterStyle.scss +8 -8
- package/lib/components/stack-panel/StackPanelStyle.scss +10 -10
- package/lib/components/tabs/TabsStyle.scss +139 -139
- package/lib/components/time/TimeComponent.scss +3 -3
- package/lib/components/tree-view/TreeViewStyle.scss +14 -14
- package/lib/grid/plugins/slick.headermenu.css +98 -98
- package/lib/grid.css +841 -3514
- package/lib/index.css.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/ui/auto.suggest.css +30 -30
- package/lib/ui/button.css +147 -147
- package/lib/ui/date-input.css +10 -10
- package/lib/ui/date.picker/css/tiny-date-picker.css +124 -124
- package/lib/ui/dialog.css +144 -144
- package/lib/ui/input.css +35 -35
- package/lib/ui/theme.css +28 -28
- package/package.json +1 -1
package/lib/ui/dialog.css
CHANGED
|
@@ -1,145 +1,145 @@
|
|
|
1
|
-
@import "./button.css";
|
|
2
|
-
|
|
3
|
-
.jsl-dialog-overlay {
|
|
4
|
-
position: fixed;
|
|
5
|
-
inset: 0;
|
|
6
|
-
z-index: var(--jsl-dialog-z-index, 2001);
|
|
7
|
-
background: var(--jsl-dialog-backdrop, var(--jsl-color-overlay));
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.jsl-dialog {
|
|
11
|
-
position: absolute;
|
|
12
|
-
top: 50%;
|
|
13
|
-
left: 50%;
|
|
14
|
-
transform: translate(-50%, -50%);
|
|
15
|
-
display: flex;
|
|
16
|
-
flex-direction: column;
|
|
17
|
-
box-sizing: border-box;
|
|
18
|
-
width: 32rem;
|
|
19
|
-
max-width: calc(100% - 2rem);
|
|
20
|
-
max-height: calc(100% - 2rem);
|
|
21
|
-
border: 1px solid var(--jsl-dialog-border, var(--jsl-color-border-subtle));
|
|
22
|
-
border-radius: var(--jsl-dialog-radius, 0.75rem);
|
|
23
|
-
background: var(--jsl-dialog-surface, var(--jsl-color-surface));
|
|
24
|
-
color: var(--jsl-color-text);
|
|
25
|
-
box-shadow: var(--jsl-dialog-shadow, var(--jsl-shadow-dialog));
|
|
26
|
-
font: inherit;
|
|
27
|
-
line-height: 1.5;
|
|
28
|
-
pointer-events: auto;
|
|
29
|
-
isolation: isolate;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.jsl-dialog:focus { outline: none; }
|
|
33
|
-
.jsl-dialog.resizable { position: absolute; }
|
|
34
|
-
.jsl-dialog:focus-visible { outline: 2px solid var(--jsl-color-focus); outline-offset: 3px; }
|
|
35
|
-
|
|
36
|
-
.jsl-dialog > .dlg-header {
|
|
37
|
-
display: flex;
|
|
38
|
-
align-items: center;
|
|
39
|
-
gap: 1rem;
|
|
40
|
-
flex: 0 0 auto;
|
|
41
|
-
box-sizing: border-box;
|
|
42
|
-
min-width: 0;
|
|
43
|
-
padding: 1.125rem 1.5rem;
|
|
44
|
-
border-bottom: 1px solid var(--jsl-color-border-subtle);
|
|
45
|
-
border-radius: var(--jsl-dialog-radius, 0.75rem) var(--jsl-dialog-radius, 0.75rem) 0 0;
|
|
46
|
-
font-size: 1rem;
|
|
47
|
-
font-weight: 600;
|
|
48
|
-
line-height: 1.5;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.jsl-dialog .dlg-title { flex: 1; min-width: 0; overflow-wrap: anywhere; }
|
|
52
|
-
.jsl-dialog-moveable > .dlg-header { cursor: move; touch-action: none; }
|
|
53
|
-
|
|
54
|
-
.jsl-dialog .dlg-close-btn {
|
|
55
|
-
position: relative;
|
|
56
|
-
display: inline-flex;
|
|
57
|
-
align-items: center;
|
|
58
|
-
justify-content: center;
|
|
59
|
-
flex: 0 0 auto;
|
|
60
|
-
box-sizing: border-box;
|
|
61
|
-
width: 2rem;
|
|
62
|
-
height: 2rem;
|
|
63
|
-
margin: -0.25rem -0.5rem -0.25rem auto;
|
|
64
|
-
padding: 0;
|
|
65
|
-
border: 1px solid transparent;
|
|
66
|
-
border-radius: 0.375rem;
|
|
67
|
-
background: transparent;
|
|
68
|
-
color: var(--jsl-color-text-secondary);
|
|
69
|
-
font: inherit;
|
|
70
|
-
cursor: pointer;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.jsl-dialog .dlg-close-btn::before,
|
|
74
|
-
.jsl-dialog .dlg-close-btn::after {
|
|
75
|
-
content: "";
|
|
76
|
-
position: absolute;
|
|
77
|
-
width: 0.875rem;
|
|
78
|
-
height: 1.5px;
|
|
79
|
-
border-radius: 1px;
|
|
80
|
-
background: currentColor;
|
|
81
|
-
transform: rotate(45deg);
|
|
82
|
-
}
|
|
83
|
-
.jsl-dialog .dlg-close-btn::after { transform: rotate(-45deg); }
|
|
84
|
-
.jsl-dialog .dlg-close-btn:hover { background: var(--jsl-color-surface-hover); color: var(--jsl-color-text); }
|
|
85
|
-
.jsl-dialog .dlg-close-btn:focus-visible { outline: 2px solid var(--jsl-color-focus); outline-offset: 2px; }
|
|
86
|
-
|
|
87
|
-
.jsl-dialog > .dlg-body {
|
|
88
|
-
flex: 1 1 auto;
|
|
89
|
-
box-sizing: border-box;
|
|
90
|
-
min-height: 0;
|
|
91
|
-
min-width: 0;
|
|
92
|
-
padding: 1.5rem;
|
|
93
|
-
overflow: auto;
|
|
94
|
-
overflow-wrap: anywhere;
|
|
95
|
-
overscroll-behavior: contain;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.jsl-dialog > .dlg-footer {
|
|
99
|
-
flex: 0 0 auto;
|
|
100
|
-
box-sizing: border-box;
|
|
101
|
-
padding: 1rem 1.5rem;
|
|
102
|
-
border-top: 1px solid var(--jsl-color-border-subtle);
|
|
103
|
-
border-radius: 0 0 var(--jsl-dialog-radius, 0.75rem) var(--jsl-dialog-radius, 0.75rem);
|
|
104
|
-
background: var(--jsl-color-surface-subtle);
|
|
105
|
-
text-align: end;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.jsl-dialog > .dlg-footer > div,
|
|
109
|
-
.jsl-dialog > .dlg-footer > form {
|
|
110
|
-
display: flex;
|
|
111
|
-
flex-wrap: wrap;
|
|
112
|
-
align-items: center;
|
|
113
|
-
justify-content: flex-end;
|
|
114
|
-
gap: 0.5rem;
|
|
115
|
-
}
|
|
116
|
-
.jsl-dialog > .dlg-footer > button + button { margin-inline-start: 0.5rem; }
|
|
117
|
-
.jsl-dialog > .dlg-header[hidden], .jsl-dialog > .dlg-footer[hidden] { display: none; }
|
|
118
|
-
.jsl-dialog .slickgrid { border-radius: 0; }
|
|
119
|
-
|
|
120
|
-
.jsl-dialog.resizable > .dlg-res-handle.rs-r.rs-b {
|
|
121
|
-
width: 1rem;
|
|
122
|
-
height: 1rem;
|
|
123
|
-
right: 0.125rem;
|
|
124
|
-
bottom: 0.125rem;
|
|
125
|
-
background: transparent;
|
|
126
|
-
cursor: nwse-resize;
|
|
127
|
-
touch-action: none;
|
|
128
|
-
}
|
|
129
|
-
.jsl-dialog .dlg-res-handle::after {
|
|
130
|
-
content: "";
|
|
131
|
-
position: absolute;
|
|
132
|
-
right: 0.2rem;
|
|
133
|
-
bottom: 0.2rem;
|
|
134
|
-
width: 0.4rem;
|
|
135
|
-
height: 0.4rem;
|
|
136
|
-
border-right: 1px solid var(--jsl-color-text-muted);
|
|
137
|
-
border-bottom: 1px solid var(--jsl-color-text-muted);
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
@media (max-width: 480px) {
|
|
141
|
-
.jsl-dialog { max-width: calc(100% - 1.5rem); max-height: calc(100% - 1.5rem); }
|
|
142
|
-
.jsl-dialog > .dlg-header { padding: 1rem 1.125rem; }
|
|
143
|
-
.jsl-dialog > .dlg-body { padding: 1.125rem; }
|
|
144
|
-
.jsl-dialog > .dlg-footer { padding: 0.875rem 1.125rem; }
|
|
1
|
+
@import "./button.css";
|
|
2
|
+
|
|
3
|
+
.jsl-dialog-overlay {
|
|
4
|
+
position: fixed;
|
|
5
|
+
inset: 0;
|
|
6
|
+
z-index: var(--jsl-dialog-z-index, 2001);
|
|
7
|
+
background: var(--jsl-dialog-backdrop, var(--jsl-color-overlay));
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.jsl-dialog {
|
|
11
|
+
position: absolute;
|
|
12
|
+
top: 50%;
|
|
13
|
+
left: 50%;
|
|
14
|
+
transform: translate(-50%, -50%);
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
width: 32rem;
|
|
19
|
+
max-width: calc(100% - 2rem);
|
|
20
|
+
max-height: calc(100% - 2rem);
|
|
21
|
+
border: 1px solid var(--jsl-dialog-border, var(--jsl-color-border-subtle));
|
|
22
|
+
border-radius: var(--jsl-dialog-radius, 0.75rem);
|
|
23
|
+
background: var(--jsl-dialog-surface, var(--jsl-color-surface));
|
|
24
|
+
color: var(--jsl-color-text);
|
|
25
|
+
box-shadow: var(--jsl-dialog-shadow, var(--jsl-shadow-dialog));
|
|
26
|
+
font: inherit;
|
|
27
|
+
line-height: 1.5;
|
|
28
|
+
pointer-events: auto;
|
|
29
|
+
isolation: isolate;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.jsl-dialog:focus { outline: none; }
|
|
33
|
+
.jsl-dialog.resizable { position: absolute; }
|
|
34
|
+
.jsl-dialog:focus-visible { outline: 2px solid var(--jsl-color-focus); outline-offset: 3px; }
|
|
35
|
+
|
|
36
|
+
.jsl-dialog > .dlg-header {
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
gap: 1rem;
|
|
40
|
+
flex: 0 0 auto;
|
|
41
|
+
box-sizing: border-box;
|
|
42
|
+
min-width: 0;
|
|
43
|
+
padding: 1.125rem 1.5rem;
|
|
44
|
+
border-bottom: 1px solid var(--jsl-color-border-subtle);
|
|
45
|
+
border-radius: var(--jsl-dialog-radius, 0.75rem) var(--jsl-dialog-radius, 0.75rem) 0 0;
|
|
46
|
+
font-size: 1rem;
|
|
47
|
+
font-weight: 600;
|
|
48
|
+
line-height: 1.5;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.jsl-dialog .dlg-title { flex: 1; min-width: 0; overflow-wrap: anywhere; }
|
|
52
|
+
.jsl-dialog-moveable > .dlg-header { cursor: move; touch-action: none; }
|
|
53
|
+
|
|
54
|
+
.jsl-dialog .dlg-close-btn {
|
|
55
|
+
position: relative;
|
|
56
|
+
display: inline-flex;
|
|
57
|
+
align-items: center;
|
|
58
|
+
justify-content: center;
|
|
59
|
+
flex: 0 0 auto;
|
|
60
|
+
box-sizing: border-box;
|
|
61
|
+
width: 2rem;
|
|
62
|
+
height: 2rem;
|
|
63
|
+
margin: -0.25rem -0.5rem -0.25rem auto;
|
|
64
|
+
padding: 0;
|
|
65
|
+
border: 1px solid transparent;
|
|
66
|
+
border-radius: 0.375rem;
|
|
67
|
+
background: transparent;
|
|
68
|
+
color: var(--jsl-color-text-secondary);
|
|
69
|
+
font: inherit;
|
|
70
|
+
cursor: pointer;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.jsl-dialog .dlg-close-btn::before,
|
|
74
|
+
.jsl-dialog .dlg-close-btn::after {
|
|
75
|
+
content: "";
|
|
76
|
+
position: absolute;
|
|
77
|
+
width: 0.875rem;
|
|
78
|
+
height: 1.5px;
|
|
79
|
+
border-radius: 1px;
|
|
80
|
+
background: currentColor;
|
|
81
|
+
transform: rotate(45deg);
|
|
82
|
+
}
|
|
83
|
+
.jsl-dialog .dlg-close-btn::after { transform: rotate(-45deg); }
|
|
84
|
+
.jsl-dialog .dlg-close-btn:hover { background: var(--jsl-color-surface-hover); color: var(--jsl-color-text); }
|
|
85
|
+
.jsl-dialog .dlg-close-btn:focus-visible { outline: 2px solid var(--jsl-color-focus); outline-offset: 2px; }
|
|
86
|
+
|
|
87
|
+
.jsl-dialog > .dlg-body {
|
|
88
|
+
flex: 1 1 auto;
|
|
89
|
+
box-sizing: border-box;
|
|
90
|
+
min-height: 0;
|
|
91
|
+
min-width: 0;
|
|
92
|
+
padding: 1.5rem;
|
|
93
|
+
overflow: auto;
|
|
94
|
+
overflow-wrap: anywhere;
|
|
95
|
+
overscroll-behavior: contain;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.jsl-dialog > .dlg-footer {
|
|
99
|
+
flex: 0 0 auto;
|
|
100
|
+
box-sizing: border-box;
|
|
101
|
+
padding: 1rem 1.5rem;
|
|
102
|
+
border-top: 1px solid var(--jsl-color-border-subtle);
|
|
103
|
+
border-radius: 0 0 var(--jsl-dialog-radius, 0.75rem) var(--jsl-dialog-radius, 0.75rem);
|
|
104
|
+
background: var(--jsl-color-surface-subtle);
|
|
105
|
+
text-align: end;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.jsl-dialog > .dlg-footer > div,
|
|
109
|
+
.jsl-dialog > .dlg-footer > form {
|
|
110
|
+
display: flex;
|
|
111
|
+
flex-wrap: wrap;
|
|
112
|
+
align-items: center;
|
|
113
|
+
justify-content: flex-end;
|
|
114
|
+
gap: 0.5rem;
|
|
115
|
+
}
|
|
116
|
+
.jsl-dialog > .dlg-footer > button + button { margin-inline-start: 0.5rem; }
|
|
117
|
+
.jsl-dialog > .dlg-header[hidden], .jsl-dialog > .dlg-footer[hidden] { display: none; }
|
|
118
|
+
.jsl-dialog .slickgrid { border-radius: 0; }
|
|
119
|
+
|
|
120
|
+
.jsl-dialog.resizable > .dlg-res-handle.rs-r.rs-b {
|
|
121
|
+
width: 1rem;
|
|
122
|
+
height: 1rem;
|
|
123
|
+
right: 0.125rem;
|
|
124
|
+
bottom: 0.125rem;
|
|
125
|
+
background: transparent;
|
|
126
|
+
cursor: nwse-resize;
|
|
127
|
+
touch-action: none;
|
|
128
|
+
}
|
|
129
|
+
.jsl-dialog .dlg-res-handle::after {
|
|
130
|
+
content: "";
|
|
131
|
+
position: absolute;
|
|
132
|
+
right: 0.2rem;
|
|
133
|
+
bottom: 0.2rem;
|
|
134
|
+
width: 0.4rem;
|
|
135
|
+
height: 0.4rem;
|
|
136
|
+
border-right: 1px solid var(--jsl-color-text-muted);
|
|
137
|
+
border-bottom: 1px solid var(--jsl-color-text-muted);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
@media (max-width: 480px) {
|
|
141
|
+
.jsl-dialog { max-width: calc(100% - 1.5rem); max-height: calc(100% - 1.5rem); }
|
|
142
|
+
.jsl-dialog > .dlg-header { padding: 1rem 1.125rem; }
|
|
143
|
+
.jsl-dialog > .dlg-body { padding: 1.125rem; }
|
|
144
|
+
.jsl-dialog > .dlg-footer { padding: 0.875rem 1.125rem; }
|
|
145
145
|
}
|
package/lib/ui/input.css
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
@import "./theme.css";
|
|
2
|
-
|
|
3
|
-
.jsl-input, .jsl-date-input {
|
|
4
|
-
box-sizing: border-box;
|
|
5
|
-
width: 14rem;
|
|
6
|
-
max-width: 100%;
|
|
7
|
-
min-width: 0;
|
|
8
|
-
height: 2.5rem;
|
|
9
|
-
padding: .5rem .75rem;
|
|
10
|
-
border: 1px solid var(--jsl-color-border);
|
|
11
|
-
border-radius: .5rem;
|
|
12
|
-
background-color: var(--jsl-color-surface);
|
|
13
|
-
color: var(--jsl-color-text);
|
|
14
|
-
font: inherit;
|
|
15
|
-
/* font-size: .875rem; */
|
|
16
|
-
line-height: 1.4;
|
|
17
|
-
transition: border-color .15s;
|
|
18
|
-
}
|
|
19
|
-
.jsl-input:hover:not(:disabled), .jsl-date-input:hover:not(:disabled) { border-color: var(--jsl-color-text-muted); }
|
|
20
|
-
.jsl-input:focus, .jsl-date-input:focus {
|
|
21
|
-
outline: 2px solid var(--jsl-color-focus);
|
|
22
|
-
outline-offset: 2px;
|
|
23
|
-
border-color: var(--jsl-color-accent);
|
|
24
|
-
}
|
|
25
|
-
.jsl-input::placeholder, .jsl-date-input::placeholder { color: var(--jsl-color-text-muted); opacity: 1; }
|
|
26
|
-
.jsl-input:disabled, .jsl-date-input:disabled {
|
|
27
|
-
cursor: not-allowed;
|
|
28
|
-
background-color: var(--jsl-color-disabled-surface);
|
|
29
|
-
color: var(--jsl-color-disabled-text);
|
|
30
|
-
}
|
|
31
|
-
.jsl-input[aria-invalid="true"] { border-color: var(--jsl-color-danger); }
|
|
32
|
-
textarea.jsl-input { min-height: 6rem; height: auto; resize: vertical; }
|
|
33
|
-
.jsl-input[type="color"] { width: 4rem; padding: .25rem; cursor: pointer; }
|
|
34
|
-
.jsl-input[type="number"], .jsl-input.jsl-number { font-variant-numeric: tabular-nums; }
|
|
35
|
-
@media (prefers-reduced-motion: reduce) { .jsl-input, .jsl-date-input { transition: none; } }
|
|
1
|
+
@import "./theme.css";
|
|
2
|
+
|
|
3
|
+
.jsl-input, .jsl-date-input {
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
width: 14rem;
|
|
6
|
+
max-width: 100%;
|
|
7
|
+
min-width: 0;
|
|
8
|
+
height: 2.5rem;
|
|
9
|
+
padding: .5rem .75rem;
|
|
10
|
+
border: 1px solid var(--jsl-color-border);
|
|
11
|
+
border-radius: .5rem;
|
|
12
|
+
background-color: var(--jsl-color-surface);
|
|
13
|
+
color: var(--jsl-color-text);
|
|
14
|
+
font: inherit;
|
|
15
|
+
/* font-size: .875rem; */
|
|
16
|
+
line-height: 1.4;
|
|
17
|
+
transition: border-color .15s;
|
|
18
|
+
}
|
|
19
|
+
.jsl-input:hover:not(:disabled), .jsl-date-input:hover:not(:disabled) { border-color: var(--jsl-color-text-muted); }
|
|
20
|
+
.jsl-input:focus, .jsl-date-input:focus {
|
|
21
|
+
outline: 2px solid var(--jsl-color-focus);
|
|
22
|
+
outline-offset: 2px;
|
|
23
|
+
border-color: var(--jsl-color-accent);
|
|
24
|
+
}
|
|
25
|
+
.jsl-input::placeholder, .jsl-date-input::placeholder { color: var(--jsl-color-text-muted); opacity: 1; }
|
|
26
|
+
.jsl-input:disabled, .jsl-date-input:disabled {
|
|
27
|
+
cursor: not-allowed;
|
|
28
|
+
background-color: var(--jsl-color-disabled-surface);
|
|
29
|
+
color: var(--jsl-color-disabled-text);
|
|
30
|
+
}
|
|
31
|
+
.jsl-input[aria-invalid="true"] { border-color: var(--jsl-color-danger); }
|
|
32
|
+
textarea.jsl-input { min-height: 6rem; height: auto; resize: vertical; }
|
|
33
|
+
.jsl-input[type="color"] { width: 4rem; padding: .25rem; cursor: pointer; }
|
|
34
|
+
.jsl-input[type="number"], .jsl-input.jsl-number { font-variant-numeric: tabular-nums; }
|
|
35
|
+
@media (prefers-reduced-motion: reduce) { .jsl-input, .jsl-date-input { transition: none; } }
|
package/lib/ui/theme.css
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
/* Neutral base palette shared by redesigned components.
|
|
2
|
-
Override --jsl-color-* on :root or a container to theme an application.
|
|
3
|
-
These tokens do not change the host application's typography or background. */
|
|
4
|
-
:where(:root) {
|
|
5
|
-
--jsl-color-canvas: #f7f7f8;
|
|
6
|
-
--jsl-color-surface: #ffffff;
|
|
7
|
-
--jsl-color-surface-subtle: #fafafa;
|
|
8
|
-
--jsl-color-surface-hover: #f0f0f2;
|
|
9
|
-
--jsl-color-surface-selected: #e8e8eb;
|
|
10
|
-
--jsl-color-border: #d4d4d8;
|
|
11
|
-
--jsl-color-border-subtle: #e4e4e7;
|
|
12
|
-
--jsl-color-text: #27272a;
|
|
13
|
-
--jsl-color-text-secondary: #52525b;
|
|
14
|
-
--jsl-color-text-muted: #71717a;
|
|
15
|
-
--jsl-color-accent: #3f3f46;
|
|
16
|
-
--jsl-color-accent-hover: #27272a;
|
|
17
|
-
--jsl-color-accent-active: #18181b;
|
|
18
|
-
--jsl-color-on-accent: #ffffff;
|
|
19
|
-
--jsl-color-focus: #52525b;
|
|
20
|
-
--jsl-color-danger: #b42318;
|
|
21
|
-
--jsl-color-success: #15803d;
|
|
22
|
-
--jsl-color-warning: #b45309;
|
|
23
|
-
--jsl-color-info: #2563eb;
|
|
24
|
-
--jsl-color-disabled-surface: #f4f4f5;
|
|
25
|
-
--jsl-color-disabled-text: #71717a;
|
|
26
|
-
--jsl-color-overlay: rgba(24, 24, 27, 0.45);
|
|
27
|
-
--jsl-shadow-dialog: 0 24px 64px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(0, 0, 0, 0.08);
|
|
28
|
-
}
|
|
1
|
+
/* Neutral base palette shared by redesigned components.
|
|
2
|
+
Override --jsl-color-* on :root or a container to theme an application.
|
|
3
|
+
These tokens do not change the host application's typography or background. */
|
|
4
|
+
:where(:root) {
|
|
5
|
+
--jsl-color-canvas: #f7f7f8;
|
|
6
|
+
--jsl-color-surface: #ffffff;
|
|
7
|
+
--jsl-color-surface-subtle: #fafafa;
|
|
8
|
+
--jsl-color-surface-hover: #f0f0f2;
|
|
9
|
+
--jsl-color-surface-selected: #e8e8eb;
|
|
10
|
+
--jsl-color-border: #d4d4d8;
|
|
11
|
+
--jsl-color-border-subtle: #e4e4e7;
|
|
12
|
+
--jsl-color-text: #27272a;
|
|
13
|
+
--jsl-color-text-secondary: #52525b;
|
|
14
|
+
--jsl-color-text-muted: #71717a;
|
|
15
|
+
--jsl-color-accent: #3f3f46;
|
|
16
|
+
--jsl-color-accent-hover: #27272a;
|
|
17
|
+
--jsl-color-accent-active: #18181b;
|
|
18
|
+
--jsl-color-on-accent: #ffffff;
|
|
19
|
+
--jsl-color-focus: #52525b;
|
|
20
|
+
--jsl-color-danger: #b42318;
|
|
21
|
+
--jsl-color-success: #15803d;
|
|
22
|
+
--jsl-color-warning: #b45309;
|
|
23
|
+
--jsl-color-info: #2563eb;
|
|
24
|
+
--jsl-color-disabled-surface: #f4f4f5;
|
|
25
|
+
--jsl-color-disabled-text: #71717a;
|
|
26
|
+
--jsl-color-overlay: rgba(24, 24, 27, 0.45);
|
|
27
|
+
--jsl-shadow-dialog: 0 24px 64px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(0, 0, 0, 0.08);
|
|
28
|
+
}
|