@neo4j-ndl/base 0.8.6 → 0.9.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Change Log
2
2
 
3
+ ## 0.9.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 826d7ae: refactor code-block component and load more fonts from Google
8
+
9
+ ### Patch Changes
10
+
11
+ - 4f3ec49: align switch, radio and checkbox to the top
12
+
13
+ ## 0.8.7
14
+
15
+ ### Patch Changes
16
+
17
+ - 83f91c5: fix dropdown inconsistencies and text input flex gaps
18
+
3
19
  ## 0.8.6
4
20
 
5
21
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
 
2
2
 
3
- @import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@500&family=Nunito+Sans:wght@300;400;500;600;700&display=swap');
3
+ @import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500&family=Nunito+Sans:wght@300;400;500;600;700&display=swap');
4
4
  /**
5
5
  *
6
6
  * Copyright (c) "Neo4j"
@@ -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 Mon, 24 Oct 2022 09:13:22 GMT
423
+ * Generated on Thu, 03 Nov 2022 10:30:58 GMT
424
424
  */
425
425
  :root {
426
426
  --border-radius-sm: 4px;
@@ -574,7 +574,7 @@ Ensure the default browser behavior of the `hidden` attribute.
574
574
  code,
575
575
  .code {
576
576
  font-size: var(--font-size-code);
577
- font-weight: var(--font-weight-medium);
577
+ font-weight: var(--font-weight-normal);
578
578
  letter-spacing: 0px;
579
579
  line-height: 20px;
580
580
  }
@@ -1680,6 +1680,7 @@ a.ndl-btn{
1680
1680
  display: grid;
1681
1681
  height: 1rem;
1682
1682
  width: 1rem;
1683
+ flex-shrink: 0;
1683
1684
  cursor: pointer;
1684
1685
  -webkit-appearance: none;
1685
1686
  -moz-appearance: none;
@@ -1851,7 +1852,7 @@ a.ndl-btn{
1851
1852
  /* Label */
1852
1853
  .ndl-form-item .form-item-label{
1853
1854
  display: inline-flex;
1854
- align-items: center;
1855
+ align-items: flex-start;
1855
1856
  -moz-column-gap: 0.75rem;
1856
1857
  column-gap: 0.75rem;
1857
1858
  font-size: var(--font-size-body-medium);
@@ -1859,6 +1860,9 @@ a.ndl-btn{
1859
1860
  letter-spacing: 0.25px;
1860
1861
  line-height: 20px;
1861
1862
  }
1863
+ .ndl-form-item .form-item-label > input {
1864
+ margin-top: 2px;
1865
+ }
1862
1866
  .ndl-form-item .form-item-label.fluid{
1863
1867
  display: flex;
1864
1868
  justify-content: space-between;
@@ -1869,7 +1873,7 @@ a.ndl-btn{
1869
1873
  .ndl-form-item.ndl-type-text .form-item-label{
1870
1874
  flex-direction: column-reverse;
1871
1875
  align-items: flex-start;
1872
- row-gap: 0.25rem;
1876
+ row-gap: 5px;
1873
1877
  }
1874
1878
  .ndl-form-item.ndl-type-text .form-item-label .form-label-text{
1875
1879
  --tw-text-opacity: 1;
@@ -2738,6 +2742,20 @@ a.ndl-btn{
2738
2742
  letter-spacing: 0.25px;
2739
2743
  line-height: 20px;
2740
2744
  }
2745
+ .ndl-table .ndl-table-placeholder{
2746
+ position: absolute;
2747
+ top: 50%;
2748
+ right: 50%;
2749
+ display: flex;
2750
+ --tw-translate-x: 50%;
2751
+ --tw-translate-y: -10%;
2752
+ transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
2753
+ flex-direction: row;
2754
+ align-items: center;
2755
+ justify-content: center;
2756
+ gap: 0.5rem;
2757
+ border-style: none;
2758
+ }
2741
2759
  .ndl-table tr th.table-column-styling {
2742
2760
  border-collapse: separate;
2743
2761
  box-sizing: content-box;
@@ -3367,20 +3385,35 @@ a.ndl-btn{
3367
3385
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
3368
3386
  */
3369
3387
  .ndl-code-block-container{
3370
- height: 100%;
3388
+ position: relative;
3389
+ min-height: 90px;
3371
3390
  overflow: hidden;
3372
- border-radius: 4px;
3391
+ border-radius: 8px;
3392
+ border-width: 1px;
3393
+ --tw-border-opacity: 1;
3394
+ border-color: rgb(238 241 246 / var(--tw-border-opacity));
3373
3395
  --tw-bg-opacity: 1;
3374
3396
  background-color: rgb(245 247 250 / var(--tw-bg-opacity));
3397
+ padding-top: 0.75rem;
3375
3398
  }
3376
- .ndl-code-block-container .highlight-wrapper{
3377
- margin-top: 1rem;
3399
+ .ndl-code-block-container .ndl-code-block-title{
3400
+ margin-left: 0.75rem;
3401
+ margin-bottom: 0.75rem;
3402
+ min-height: 24px;
3403
+ width: 100%;
3404
+ overflow-x: hidden;
3405
+ text-overflow: ellipsis;
3406
+ font-size: var(--font-size-subheading-medium);
3407
+ font-weight: var(--font-weight-semibold);
3408
+ letter-spacing: 0.25px;
3409
+ line-height: 24px;
3378
3410
  }
3379
- .ndl-code-block-container .highlight-wrapper.has-header{
3380
- height: calc(100% - 3.5em);
3411
+ .ndl-code-block-container .ndl-code-block-title.disabled{
3412
+ pointer-events: none;
3413
+ opacity: 0.5;
3381
3414
  }
3382
- .ndl-code-block-container .highlight-wrapper:not(.has-header){
3383
- height: 100%;
3415
+ .ndl-code-block-container .highlight-wrapper{
3416
+ position: relative;
3384
3417
  }
3385
3418
  .ndl-code-block-container .highlight-wrapper.focused{
3386
3419
  overflow-y: auto;
@@ -3388,28 +3421,48 @@ a.ndl-btn{
3388
3421
  .ndl-code-block-container .highlight-wrapper:not(.focused){
3389
3422
  overflow-y: hidden;
3390
3423
  }
3391
- /* Component's header */
3392
- .ndl-code-block-container .ndl-code-block-header{
3393
- margin-left: 1rem;
3394
- margin-right: 1rem;
3395
- margin-top: 1rem;
3396
- display: flex;
3397
- justify-content: space-between;
3398
- }
3399
- .ndl-code-block-container .ndl-code-block-header.disabled{
3400
- opacity: 0.5;
3424
+ .ndl-code-block-container .highlight-wrapper:after{
3425
+ position: absolute;
3426
+ top: 0px;
3427
+ right: 4px;
3428
+ z-index: 1;
3429
+ height: 100%;
3430
+ width: 0.75rem;
3431
+ background-image: linear-gradient(to right, var(--tw-gradient-stops));
3432
+ --tw-gradient-from: transparent;
3433
+ --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgb(0 0 0 / 0));
3434
+ --tw-gradient-to: #F5F7FA;
3435
+ --tw-content: "";
3436
+ content: var(--tw-content);
3401
3437
  }
3402
- .ndl-code-block-container .ndl-code-block-header .ndl-code-block-title{
3438
+ /* Component's header icons */
3439
+ .ndl-code-block-container .ndl-code-block-actions{
3440
+ position: absolute;
3441
+ top: 0px;
3442
+ right: 0px;
3443
+ z-index: 10;
3403
3444
  display: flex;
3404
- align-items: center;
3445
+ border-radius: 8px;
3446
+ --tw-bg-opacity: 1;
3447
+ background-color: rgb(245 247 250 / var(--tw-bg-opacity));
3448
+ padding: 4px;
3405
3449
  }
3406
- .ndl-code-block-container .ndl-code-block-header .ndl-code-block-title.disabled{
3407
- pointer-events: none;
3450
+ .ndl-code-block-container .ndl-code-block-actions.disabled{
3451
+ opacity: 0.5;
3408
3452
  }
3409
- /* Component's header icons */
3410
- .ndl-code-block-container .ndl-code-block-header .ndl-code-block-actions{
3411
- display: flex;
3453
+ .ndl-code-block-container .ndl-code-block-expand-button{
3454
+ position: absolute;
3455
+ bottom: 0px;
3456
+ right: 0px;
3457
+ z-index: 10;
3458
+ border-radius: 8px;
3459
+ --tw-bg-opacity: 1;
3460
+ background-color: rgb(245 247 250 / var(--tw-bg-opacity));
3461
+ padding: 0.25rem;
3412
3462
  }
3463
+ .ndl-code-block-container .linenumber {
3464
+ min-width: 32px !important;
3465
+ }
3413
3466
  .n-sr-only{
3414
3467
  position: absolute;
3415
3468
  width: 1px;
@@ -3501,9 +3554,6 @@ a.ndl-btn{
3501
3554
  .n-h-4{
3502
3555
  height: 1rem;
3503
3556
  }
3504
- .n-h-80{
3505
- height: 20rem;
3506
- }
3507
3557
  .n-h-10{
3508
3558
  height: 2.5rem;
3509
3559
  }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 24 Oct 2022 09:13:22 GMT
3
+ * Generated on Thu, 03 Nov 2022 10:30:58 GMT
4
4
  */
5
5
 
6
6
  :root {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 24 Oct 2022 09:13:22 GMT
3
+ * Generated on Thu, 03 Nov 2022 10:30:58 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 Mon, 24 Oct 2022 09:13:22 GMT
4
+ * Generated on Thu, 03 Nov 2022 10:30:58 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 Mon, 24 Oct 2022 09:13:22 GMT
3
+ // Generated on Thu, 03 Nov 2022 10:30:58 GMT
4
4
 
5
5
  $border-radius-sm: 4px;
6
6
  $border-radius-md: 6px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neo4j-ndl/base",
3
- "version": "0.8.6",
3
+ "version": "0.9.0",
4
4
  "description": "Neo4j base package for the design system",
5
5
  "author": "Neo4j Inc.",
6
6
  "homepage": "",