jsl-ui 10.2.2 → 10.3.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.
@@ -0,0 +1,93 @@
1
+ Copyright 2022 The Bricolage Grotesque Project Authors (https://github.com/ateliertriay/bricolage)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ https://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,93 @@
1
+ Copyright 2022 The Figtree Project Authors (https://github.com/erikdkennedy/figtree)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -1,9 +1,11 @@
1
1
  import "./themes.css";
2
2
  import "./nivona.css";
3
+ import "./wirtshans.css";
3
4
 
4
5
  export const showcaseThemes = [
5
6
  { id: "default", label: "Default (neutral)" },
6
7
  { id: "nivona", label: "Nivona" },
8
+ { id: "wirtshans", label: "Wirtshans" },
7
9
  { id: "ocean", label: "Ocean" },
8
10
  { id: "forest", label: "Forest" },
9
11
  { id: "plum", label: "Plum" },
@@ -0,0 +1,65 @@
1
+ /* Wirtshans website palette and typography; interaction shades are UI derivatives. */
2
+ @font-face {
3
+ font-family: "Figtree";
4
+ src: url("./fonts/Figtree-Variable.ttf") format("truetype");
5
+ font-style: normal;
6
+ font-weight: 300 900;
7
+ font-display: swap;
8
+ }
9
+
10
+ @font-face {
11
+ font-family: "Bricolage Grotesque";
12
+ src: url("./fonts/BricolageGrotesque-Variable.ttf") format("truetype");
13
+ font-style: normal;
14
+ font-weight: 200 800;
15
+ font-display: swap;
16
+ }
17
+
18
+ :root[data-showcase-theme="wirtshans"] {
19
+ color-scheme: light;
20
+ font-family: "Figtree", Arial, sans-serif;
21
+
22
+ --jsl-color-canvas: #f7f5f0;
23
+ --jsl-color-surface: #ffffff;
24
+ --jsl-color-surface-subtle: #f7f5f0;
25
+ --jsl-color-surface-hover: #efebe3;
26
+ --jsl-color-surface-selected: #fbf1dc;
27
+ --jsl-color-border: #b9b2a5;
28
+ --jsl-color-border-subtle: #e2ded5;
29
+ --jsl-color-text: #141312;
30
+ --jsl-color-text-secondary: #5c5a55;
31
+ --jsl-color-text-muted: #68645c;
32
+ --jsl-color-accent: #e3a72f;
33
+ --jsl-color-accent-hover: #cf9220;
34
+ --jsl-color-accent-active: #b47b16;
35
+ --jsl-color-on-accent: #141312;
36
+ --jsl-color-focus: #8a5a00;
37
+ --jsl-color-disabled-surface: #efebe3;
38
+ --jsl-color-disabled-text: #777168;
39
+ --jsl-color-overlay: rgba(20, 19, 18, 0.55);
40
+ --jsl-shadow-dialog: 0 18px 44px rgba(20, 19, 18, 0.18);
41
+ --jsl-button-radius: 999px;
42
+ --jsl-dialog-radius: 22px;
43
+ }
44
+
45
+ :root[data-showcase-theme="wirtshans"] :is(h1, h2, h3, h4) {
46
+ font-family: "Bricolage Grotesque", "Figtree", Arial, sans-serif;
47
+ color: var(--jsl-color-text);
48
+ font-weight: 700;
49
+ }
50
+
51
+ :root[data-showcase-theme="wirtshans"] :is(.sample-card, .usage, .context-panel, .hero-preview) {
52
+ border-radius: 16px;
53
+ }
54
+
55
+ :root[data-showcase-theme="wirtshans"] .nav-item[aria-current] {
56
+ box-shadow: inset 3px 0 #e3a72f;
57
+ }
58
+
59
+ :root[data-showcase-theme="wirtshans"] .eyebrow {
60
+ color: #8a5a00;
61
+ }
62
+
63
+ :root[data-showcase-theme="wirtshans"] .status-dot {
64
+ background: #8a5a00;
65
+ }
@@ -190,80 +190,80 @@ classes should alter those!
190
190
  }
191
191
 
192
192
  .slickgrid { font: inherit; color: var(--jsl-color-text); background: var(--jsl-color-surface); }
193
-
194
- /* Presentation only: preserve all measured cell and header dimensions. */
195
-
196
-
193
+
194
+ /* Presentation only: preserve all measured cell and header dimensions. */
195
+
196
+
197
197
  .slick-row:not(.slick-group):not(.slick-group-totals) > .slick-cell:not(.active):not(.invalid):not(.flashing) { border-right-color: transparent; }
198
-
199
-
200
-
201
- /* These utilities also work when importing the standalone grid entry point. */
202
- .slickgrid .right { text-align: right; }
203
- .slickgrid .center { text-align: center; }
204
- .slickgrid .tabular-nums { font-variant-numeric: tabular-nums; }
205
-
206
- /* Override the legacy float rules that otherwise defeat header text alignment. */
198
+
199
+
200
+
201
+ /* These utilities also work when importing the standalone grid entry point. */
202
+ .slickgrid .right { text-align: right; }
203
+ .slickgrid .center { text-align: center; }
204
+ .slickgrid .tabular-nums { font-variant-numeric: tabular-nums; }
205
+
206
+ /* Override the legacy float rules that otherwise defeat header text alignment. */
207
207
  .slick-header-column { --jsl-grid-header-controls-width: 0px; }
208
208
  .slick-header-column.resizable { --jsl-grid-header-controls-width: .5rem; }
209
209
  .slick-header-column:has(> .slick-header-menubutton) { --jsl-grid-header-controls-width: 14px; }
210
210
  .slick-header-column.resizable:has(> .slick-header-menubutton) { --jsl-grid-header-controls-width: calc(14px + .5rem); }
211
211
  .js-touch .slick-header-column.resizable { --jsl-grid-header-controls-width: 1.2rem; }
212
212
  .js-touch .slick-header-column.resizable:has(> .slick-header-menubutton) { --jsl-grid-header-controls-width: 2.4rem; }
213
- .slick-header-column .slick-column-name {
214
- float: none;
215
- margin-bottom: 0;
216
- display: inline-block;
213
+ .slick-header-column .slick-column-name {
214
+ float: none;
215
+ margin-bottom: 0;
216
+ display: inline-block;
217
217
  max-width: max(0px, calc(100% - var(--jsl-grid-header-controls-width)));
218
218
  max-height: 2.4em;
219
- overflow: hidden;
220
- text-overflow: ellipsis;
219
+ overflow: hidden;
220
+ text-overflow: ellipsis;
221
221
  white-space: normal;
222
222
  line-height: 1.2;
223
223
  vertical-align: middle;
224
- }
224
+ }
225
225
  .slick-header-column.right .slick-column-name,
226
226
  .slick-header-column.center .slick-column-name { margin-right: var(--jsl-grid-header-controls-width); }
227
- .slick-header-sortable .slick-column-name { max-width: max(0px, calc(100% - var(--jsl-grid-header-controls-width) - 1.875rem)); }
228
- .slick-header-column .slick-sort-indicator,
229
- .slick-header-column .slick-sort-indicator-numbered {
230
- display: inline-block;
231
- float: none;
232
- position: relative;
227
+ .slick-header-sortable .slick-column-name { max-width: max(0px, calc(100% - var(--jsl-grid-header-controls-width) - .6rem)); }
228
+ .slick-header-column .slick-sort-indicator,
229
+ .slick-header-column .slick-sort-indicator-numbered {
230
+ display: inline-block;
231
+ float: none;
232
+ position: relative;
233
233
  vertical-align: top;
234
- margin: 0 0 0 .375rem;
234
+ margin: 0 0 0 .375rem;
235
235
  height: var(--jsl-grid-header-height, 40px);
236
236
  line-height: var(--jsl-grid-header-height, 40px);
237
- color: var(--jsl-color-accent);
238
- }
239
- .slick-header-column .slick-sort-indicator { width: .65rem; }
237
+ color: var(--jsl-color-accent);
238
+ }
239
+ .slick-header-column .slick-sort-indicator { width: .65rem; }
240
240
  .slick-header-column.right .slick-sort-indicator,
241
241
  .slick-header-column.right .slick-sort-indicator-numbered { float: left; margin-left: 0; margin-right: .375rem; }
242
- .slick-sort-indicator-asc::before, .slick-sort-indicator-desc::before {
243
- content: "";
244
- position: absolute;
245
- left: 0;
242
+ .slick-sort-indicator-asc::before, .slick-sort-indicator-desc::before {
243
+ content: "";
244
+ position: absolute;
245
+ left: 0;
246
246
  top: 50%;
247
247
  transform: translateY(-50%);
248
- width: 8px;
249
- height: 5px;
250
- background: currentColor;
251
- }
252
- .slick-sort-indicator-asc::before { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
253
- .slick-sort-indicator-desc::before { clip-path: polygon(0 0, 100% 0, 50% 100%); }
248
+ width: 8px;
249
+ height: 5px;
250
+ background: currentColor;
251
+ }
252
+ .slick-sort-indicator-asc::before { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
253
+ .slick-sort-indicator-desc::before { clip-path: polygon(0 0, 100% 0, 50% 100%); }
254
254
  .slick-header-column .slick-sort-indicator-numbered { width: auto; min-width: .65rem; font-size: .8em; }
255
- .slick-header-column .slick-sort-indicator.slick-sort-indicator-numbered { min-width: 1.5rem; padding-left: .75rem; }
256
-
257
- /* Draw inside frozen panes without changing widths or intercepting resize/scroll gestures. */
258
- .slickgrid:has(.slick-header-column.frozen) > .slick-pane-left::after {
259
- content: "";
260
- position: absolute;
261
- top: 0;
262
- bottom: 0;
263
- right: 0;
264
- width: 1px;
265
- background: var(--jsl-color-border);
266
- box-shadow: -2px 0 4px rgba(0, 0, 0, .08);
267
- pointer-events: none;
268
- z-index: 20;
255
+ .slick-header-column .slick-sort-indicator.slick-sort-indicator-numbered { min-width: 1.5rem; padding-left: .75rem; }
256
+
257
+ /* Draw inside frozen panes without changing widths or intercepting resize/scroll gestures. */
258
+ .slickgrid:has(.slick-header-column.frozen) > .slick-pane-left::after {
259
+ content: "";
260
+ position: absolute;
261
+ top: 0;
262
+ bottom: 0;
263
+ right: 0;
264
+ width: 1px;
265
+ background: var(--jsl-color-border);
266
+ box-shadow: -2px 0 4px rgba(0, 0, 0, .08);
267
+ pointer-events: none;
268
+ z-index: 20;
269
269
  }