@neo4j-ndl/base 0.11.0 → 0.12.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Change Log
2
2
 
3
+ ## 0.12.1
4
+
5
+ ### Patch Changes
6
+
7
+ - f86f81c: fix wrong typescale font weight
8
+
9
+ ## 0.12.0
10
+
11
+ ### Minor Changes
12
+
13
+ - f8af4e5: add link component
14
+
3
15
  ## 0.11.0
4
16
 
5
17
  ### Minor Changes
@@ -420,7 +420,7 @@ Ensure the default browser behavior of the `hidden` attribute.
420
420
  */
421
421
  /**
422
422
  * Do not edit directly
423
- * Generated on Wed, 23 Nov 2022 13:14:33 GMT
423
+ * Generated on Thu, 01 Dec 2022 09:54:50 GMT
424
424
  */
425
425
  :root {
426
426
  --border-radius-sm: 4px;
@@ -3475,6 +3475,79 @@ a.ndl-btn{
3475
3475
  .ndl-code-block-container .linenumber {
3476
3476
  min-width: 32px !important;
3477
3477
  }
3478
+ /**
3479
+ *
3480
+ * Copyright (c) "Neo4j"
3481
+ * Neo4j Sweden AB [http://neo4j.com]
3482
+ *
3483
+ * This file is part of Neo4j.
3484
+ *
3485
+ * Neo4j is free software: you can redistribute it and/or modify
3486
+ * it under the terms of the GNU General Public License as published by
3487
+ * the Free Software Foundation, either version 3 of the License, or
3488
+ * (at your option) any later version.
3489
+ *
3490
+ * This program is distributed in the hope that it will be useful,
3491
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
3492
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3493
+ * GNU General Public License for more details.
3494
+ *
3495
+ * You should have received a copy of the GNU General Public License
3496
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
3497
+ */
3498
+ .ndl-text-link {
3499
+ color: rgba(var(--palette-light-primary-text), 1);
3500
+ -webkit-text-decoration-line: underline;
3501
+ text-decoration-line: underline;
3502
+ }
3503
+ .ndl-text-link.ndl-disabled-text-link {
3504
+ color: rgba(var(--palette-light-neutral-text-weakest), 1);
3505
+ pointer-events: none;
3506
+ }
3507
+ .ndl-text-link:hover {
3508
+ color: rgba(var(--palette-light-primary-hover-strong), 1);
3509
+ }
3510
+ .ndl-text-link:active {
3511
+ color: rgba(var(--palette-light-primary-pressed-strong), 1);
3512
+ }
3513
+ .ndl-text-link:focus-visible {
3514
+ color: rgba(var(--palette-light-primary-pressed-strong), 1);
3515
+ box-sizing: border-box;
3516
+ border-radius: 4px;
3517
+ outline: 0;
3518
+ padding: 0px 4px;
3519
+ border: 2px solid;
3520
+ border-color: rgba(--palette-light-primary-focus, 1);
3521
+ }
3522
+ /* The svg has hardcoded stroke colors (only inline svg can use css) */
3523
+ .ndl-text-link.ndl-external-link::after {
3524
+ content: "";
3525
+ width: 0.8em;
3526
+ height: 0.8em;
3527
+ margin: 0 0 0 0.15em;
3528
+ color: inherit;
3529
+ background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2.0" aria-hidden="true" stroke="%23006FD6"><path stroke-linecap="round" stroke-linejoin="round" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg>');
3530
+ background-repeat: no-repeat;
3531
+ background-size: contain;
3532
+ display: inline-block;
3533
+ vertical-align: text-top;
3534
+ }
3535
+ .ndl-text-link.ndl-external-link.ndl-disabled-text-link::after {
3536
+ content: "";
3537
+ background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2.0" aria-hidden="true" stroke="%23B2B7BD"><path stroke-linecap="round" stroke-linejoin="round" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg>');
3538
+ }
3539
+ .ndl-text-link:hover.ndl-external-link::after {
3540
+ content: "";
3541
+ background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2.0" aria-hidden="true" stroke="%230056B3"><path stroke-linecap="round" stroke-linejoin="round" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg>');
3542
+ }
3543
+ .ndl-text-link:active.ndl-external-link::after {
3544
+ content: "";
3545
+ background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2.0" aria-hidden="true" stroke="%23004092"><path stroke-linecap="round" stroke-linejoin="round" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg>');
3546
+ }
3547
+ .ndl-text-link:focus-visible.ndl-external-link::after {
3548
+ content: "";
3549
+ background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2.0" aria-hidden="true" stroke="%23004092"><path stroke-linecap="round" stroke-linejoin="round" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg>');
3550
+ }
3478
3551
  .n-sr-only{
3479
3552
  position: absolute;
3480
3553
  width: 1px;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Wed, 23 Nov 2022 13:14:33 GMT
3
+ * Generated on Thu, 01 Dec 2022 09:54:50 GMT
4
4
  */
5
5
 
6
6
  :root {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Wed, 23 Nov 2022 13:14:34 GMT
3
+ * Generated on Thu, 01 Dec 2022 09:54:50 GMT
4
4
  */
5
5
 
6
6
  module.exports = {
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /**
3
3
  * Do not edit directly
4
- * Generated on Wed, 23 Nov 2022 13:14:34 GMT
4
+ * Generated on Thu, 01 Dec 2022 09:54:50 GMT
5
5
  */
6
6
  module.exports = {
7
7
  "borderRadius": {
@@ -1,6 +1,6 @@
1
1
 
2
2
  // Do not edit directly
3
- // Generated on Wed, 23 Nov 2022 13:14:33 GMT
3
+ // Generated on Thu, 01 Dec 2022 09:54:50 GMT
4
4
 
5
5
  $border-radius-sm: 4px;
6
6
  $border-radius-md: 6px;
package/lib/typescale.js CHANGED
@@ -122,7 +122,7 @@ module.exports = {
122
122
  {
123
123
  letterSpacing: '0px',
124
124
  lineHeight: '20px',
125
- fontWeight: tokens.font.weight.medium
125
+ fontWeight: tokens.font.weight.normal
126
126
  },
127
127
  ],
128
128
  label: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neo4j-ndl/base",
3
- "version": "0.11.0",
3
+ "version": "0.12.1",
4
4
  "description": "Neo4j base package for the design system",
5
5
  "author": "Neo4j Inc.",
6
6
  "homepage": "",