@neo4j-ndl/base 1.8.3 → 1.8.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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Change Log
2
2
 
3
+ ## 1.8.5
4
+
5
+ ### Patch Changes
6
+
7
+ - cff6177: add keyboard navigation example, focusable cells prop for styling and minor table fixes
8
+
9
+ ## 1.8.4
10
+
11
+ ### Patch Changes
12
+
13
+ - 13df2f7: drawer improvements
14
+
3
15
  ## 1.8.3
4
16
 
5
17
  ### Patch Changes
package/lib/NOTICE.txt CHANGED
@@ -85,6 +85,8 @@ Third-party licenses
85
85
  │ │ ├─ URL: https://github.com/gregberge/svgr/tree/main/packages/cli
86
86
  │ │ ├─ VendorName: Greg Bergé
87
87
  │ │ └─ VendorUrl: https://react-svgr.com
88
+ │ ├─ @table-nav/core@npm:0.0.5 (via npm:^0.0.5)
89
+ │ ├─ @table-nav/react@npm:0.0.5 [d75d7] (via npm:^0.0.5 [d75d7])
88
90
  │ ├─ @tanstack/react-table@npm:8.9.3 [a2e03] (via npm:^8.9.3 [a2e03])
89
91
  │ │ ├─ URL: git+https://github.com/tanstack/table.git
90
92
  │ │ ├─ VendorName: Tanner Linsley
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /**
3
3
  * Do not edit directly
4
- * Generated on Mon, 10 Jul 2023 14:22:19 GMT
4
+ * Generated on Tue, 11 Jul 2023 10:57:03 GMT
5
5
  */
6
6
  exports.__esModule = true;
7
7
  exports.tokens = void 0;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /**
3
3
  * Do not edit directly
4
- * Generated on Mon, 10 Jul 2023 14:22:19 GMT
4
+ * Generated on Tue, 11 Jul 2023 10:57:03 GMT
5
5
  */
6
6
  exports.__esModule = true;
7
7
  exports.tokens = void 0;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /**
3
3
  * Do not edit directly
4
- * Generated on Mon, 10 Jul 2023 14:22:19 GMT
4
+ * Generated on Tue, 11 Jul 2023 10:57:03 GMT
5
5
  */
6
6
  module.exports = {
7
7
  "transitions": {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 10 Jul 2023 14:22:19 GMT
3
+ * Generated on Tue, 11 Jul 2023 10:57:03 GMT
4
4
  */
5
5
  export const tokens = {
6
6
  "transitions": [
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 10 Jul 2023 14:22:19 GMT
3
+ * Generated on Tue, 11 Jul 2023 10:57:03 GMT
4
4
  */
5
5
  export const tokens = {
6
6
  "transitions": {
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /**
3
3
  * Do not edit directly
4
- * Generated on Mon, 10 Jul 2023 14:22:19 GMT
4
+ * Generated on Tue, 11 Jul 2023 10:57:03 GMT
5
5
  */
6
6
  module.exports = {
7
7
  "transitions": {
@@ -459,7 +459,7 @@ video {
459
459
  */
460
460
  /**
461
461
  * Do not edit directly
462
- * Generated on Mon, 10 Jul 2023 14:22:19 GMT
462
+ * Generated on Tue, 11 Jul 2023 10:57:03 GMT
463
463
  */
464
464
  :root {
465
465
  --transitions-values-properties-default: all;
@@ -2852,15 +2852,33 @@ a.ndl-btn{
2852
2852
  */
2853
2853
  .ndl-drawer{
2854
2854
  position: relative;
2855
- box-sizing: content-box;
2856
2855
  display: none;
2857
2856
  flex-direction: column;
2858
2857
  background-color: rgb(var(--palette-neutral-bg-weak));
2859
- padding: 1.5rem;
2858
+ padding-top: 1.5rem;
2859
+ padding-bottom: 1.5rem;
2860
2860
  }
2861
2861
  .ndl-drawer.ndl-drawer-expanded{
2862
2862
  display: flex;
2863
2863
  }
2864
+ .ndl-drawer .ndl-drawer-body-wrapper{
2865
+ position: relative;
2866
+ display: flex;
2867
+ width: 100%;
2868
+ flex-grow: 1;
2869
+ flex-direction: column;
2870
+ align-items: center;
2871
+ }
2872
+ .ndl-drawer .ndl-drawer-body{
2873
+ box-sizing: border-box;
2874
+ height: 1.5rem;
2875
+ width: 100%;
2876
+ flex-grow: 1;
2877
+ overflow-x: hidden;
2878
+ overflow-y: scroll;
2879
+ padding-left: 1.5rem;
2880
+ padding-right: 1.5rem;
2881
+ }
2864
2882
  .ndl-drawer .ndl-drawer-close-button{
2865
2883
  position: absolute;
2866
2884
  top: 1rem;
@@ -2870,42 +2888,31 @@ a.ndl-btn{
2870
2888
  border-style: solid;
2871
2889
  border-color: rgb(var(--palette-neutral-border-weak));
2872
2890
  }
2873
- .ndl-drawer.ndl-drawer-left .ndl-drawer-header{
2874
- margin-right: 3rem;
2875
- padding-bottom: 1rem;
2876
- text-align: left;
2877
- }
2878
- .ndl-drawer.ndl-drawer-left .ndl-drawer-actions{
2879
- margin-top: auto;
2880
- display: flex;
2881
- justify-content: flex-end;
2882
- gap: 1rem;
2883
- padding-top: 1rem;
2884
- }
2885
- .ndl-drawer.ndl-drawer-left .ndl-drawer-close-button{
2886
- left: unset;
2887
- right: 1rem;
2888
- }
2889
2891
  .ndl-drawer.ndl-drawer-right{
2890
2892
  border-left-width: 1px;
2891
2893
  border-style: solid;
2892
2894
  border-color: rgb(var(--palette-neutral-border-weak));
2893
2895
  }
2894
- .ndl-drawer.ndl-drawer-right .ndl-drawer-header{
2896
+ .ndl-drawer .ndl-drawer-close-button{
2897
+ position: absolute;
2898
+ left: unset;
2899
+ right: 1rem;
2900
+ }
2901
+ .ndl-drawer .ndl-drawer-header{
2895
2902
  margin-right: 3rem;
2896
- padding-bottom: 1rem;
2903
+ padding-left: 1.5rem;
2904
+ padding-right: 1.5rem;
2905
+ padding-bottom: 1.5rem;
2897
2906
  text-align: left;
2898
2907
  }
2899
- .ndl-drawer.ndl-drawer-right .ndl-drawer-actions{
2908
+ .ndl-drawer .ndl-drawer-actions{
2900
2909
  margin-top: auto;
2901
2910
  display: flex;
2902
2911
  justify-content: flex-end;
2903
2912
  gap: 1rem;
2904
- padding-top: 1rem;
2905
- }
2906
- .ndl-drawer.ndl-drawer-right .ndl-drawer-close-button{
2907
- left: unset;
2908
- right: 1rem;
2913
+ padding-left: 1.5rem;
2914
+ padding-right: 1.5rem;
2915
+ padding-top: 1.5rem;
2909
2916
  }
2910
2917
  .ndl-drawer.ndl-drawer-overlay{
2911
2918
  position: absolute;
@@ -2917,18 +2924,15 @@ a.ndl-btn{
2917
2924
  }
2918
2925
  .ndl-drawer.ndl-drawer-overlay.ndl-drawer-left{
2919
2926
  left: 0px;
2927
+ border-width: 0px;
2920
2928
  }
2921
2929
  .ndl-drawer.ndl-drawer-overlay.ndl-drawer-right{
2922
2930
  right: 0px;
2931
+ border-width: 0px;
2923
2932
  }
2924
2933
  .ndl-drawer.ndl-drawer-push{
2925
2934
  position: relative;
2926
2935
  }
2927
- .ndl-drawer .ndl-drawer-content{
2928
- display: flex;
2929
- height: 100%;
2930
- flex-direction: column;
2931
- }
2932
2936
  /**
2933
2937
  *
2934
2938
  * Copyright (c) "Neo4j"
@@ -3250,8 +3254,19 @@ a.ndl-btn{
3250
3254
  * You should have received a copy of the GNU General Public License
3251
3255
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
3252
3256
  */
3257
+ .ndl-table-focusable-cells .ndl-focusable-cell {
3258
+ outline: none;
3259
+ border: 1px solid transparent;
3260
+ }
3261
+ .ndl-table-focusable-cells .ndl-focusable-cell:focus,
3262
+ .ndl-table-focusable-cells .ndl-focusable-cell:focus-visible {
3263
+ z-index: 2;
3264
+ border-radius: 2px;
3265
+ border: 1px solid rgb(var(--palette-primary-focus));
3266
+ }
3253
3267
  .ndl-table-root {
3254
3268
  /* Root wrapper div styles */
3269
+ isolation: isolate;
3255
3270
  display: flex;
3256
3271
  width: 100%;
3257
3272
  max-width: 100%;
@@ -3298,6 +3313,7 @@ a.ndl-btn{
3298
3313
  position: relative;
3299
3314
  background-color: rgb(var(--palette-neutral-bg-weak));
3300
3315
  overflow-y: auto;
3316
+ border-top-width: 0px;
3301
3317
  }
3302
3318
  /* Table body - Single row, multiple columns */
3303
3319
  .ndl-table-root .ndl-div-table .ndl-table-tbody .ndl-table-tr:not(:last-child):after {
@@ -3341,6 +3357,7 @@ a.ndl-btn{
3341
3357
  height: 48px;
3342
3358
  /* Fixed box shadow that does not match 1:1 the Figma - Agreed with the design team */
3343
3359
  box-shadow: 0 2px 8px rgb(var(--palette-neutral-bg-strongest), 10%);
3360
+ z-index: var(--z-index-alias-overlay);
3344
3361
  }
3345
3362
  /* Table head - Cell - Avoid hover effects on sibling cells when resizing */
3346
3363
  .ndl-table-root .ndl-div-table .ndl-table-thead.ndl-table-is-resizing .ndl-table-th {
@@ -3548,7 +3565,6 @@ a.ndl-btn{
3548
3565
  .ndl-table-root .ndl-table-navigation .ndl-table-pagination-icon{
3549
3566
  height: 1.25rem;
3550
3567
  width: 1.25rem;
3551
- color: rgb(var(--palette-neutral-text-weak));
3552
3568
  }
3553
3569
  .ndl-table-root .ndl-table-navigation .ndl-table-pagination-icon-button{
3554
3570
  position: relative;
@@ -3568,6 +3584,7 @@ a.ndl-btn{
3568
3584
  .ndl-table-root .ndl-table-navigation .ndl-table-pagination-icon-button:hover{
3569
3585
  background-color: rgb(var(--palette-primary-bg-strong));
3570
3586
  --tw-bg-opacity: 0.1;
3587
+ color: rgb(var(--palette-neutral-text-inverse));
3571
3588
  }
3572
3589
  .ndl-table-root .ndl-table-navigation .ndl-table-pagination-numeric-button {
3573
3590
  min-width: 36px;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 10 Jul 2023 14:22:19 GMT
3
+ * Generated on Tue, 11 Jul 2023 10:57:03 GMT
4
4
  */
5
5
 
6
6
  :root {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 10 Jul 2023 14:22:19 GMT
3
+ * Generated on Tue, 11 Jul 2023 10:57:03 GMT
4
4
  */
5
5
 
6
6
  module.exports = {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 10 Jul 2023 14:22:19 GMT
3
+ * Generated on Tue, 11 Jul 2023 10:57:03 GMT
4
4
  */
5
5
 
6
6
  export const tokens = {
@@ -1,6 +1,6 @@
1
1
 
2
2
  // Do not edit directly
3
- // Generated on Mon, 10 Jul 2023 14:22:19 GMT
3
+ // Generated on Tue, 11 Jul 2023 10:57:03 GMT
4
4
 
5
5
  $transitions-values-properties-default: all;
6
6
  $transitions-values-duration-default: 100ms;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 10 Jul 2023 14:22:19 GMT
3
+ * Generated on Tue, 11 Jul 2023 10:57:03 GMT
4
4
  */
5
5
  export const tokens: {
6
6
  transitions: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neo4j-ndl/base",
3
- "version": "1.8.3",
3
+ "version": "1.8.5",
4
4
  "description": "Neo4j base package for the design system",
5
5
  "author": "Neo4j Inc.",
6
6
  "homepage": "",