@neo4j-ndl/base 1.0.0 → 1.0.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,11 @@
1
1
  # Change Log
2
2
 
3
+ ## 1.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 6812332: accessibility indicators, better match with figma ui kit, and context menu sibling nested menu issue
8
+
3
9
  ## 1.0.0
4
10
 
5
11
  ### Major Changes
package/lib/NOTICE.txt CHANGED
@@ -57,28 +57,28 @@ Third-party licenses
57
57
  │ ├─ @heroicons/react@npm:2.0.13 [a2e03] (via npm:2.0.13 [a2e03])
58
58
  │ │ ├─ URL: https://github.com/tailwindlabs/heroicons.git
59
59
  │ │ └─ VendorUrl: https://github.com/tailwindlabs/heroicons#readme
60
- │ ├─ @storybook/addon-a11y@npm:7.0.0-beta.40 [d75d7] (via npm:7.0.0-beta.40 [d75d7])
60
+ │ ├─ @storybook/addon-a11y@npm:7.0.0-beta.54 [d75d7] (via npm:7.0.0-beta.54 [d75d7])
61
61
  │ │ ├─ URL: https://github.com/storybookjs/storybook.git
62
62
  │ │ └─ VendorUrl: https://github.com/storybookjs/storybook/tree/next/code/addons/a11y
63
- │ ├─ @storybook/addon-actions@npm:7.0.0-beta.40 [d75d7] (via npm:7.0.0-beta.40 [d75d7])
63
+ │ ├─ @storybook/addon-actions@npm:7.0.0-beta.54 [d75d7] (via npm:7.0.0-beta.54 [d75d7])
64
64
  │ │ ├─ URL: https://github.com/storybookjs/storybook.git
65
65
  │ │ └─ VendorUrl: https://github.com/storybookjs/storybook/tree/next/code/addons/actions
66
- │ ├─ @storybook/addon-essentials@npm:7.0.0-beta.40 [d75d7] (via npm:7.0.0-beta.40 [d75d7])
66
+ │ ├─ @storybook/addon-essentials@npm:7.0.0-beta.54 [d75d7] (via npm:7.0.0-beta.54 [d75d7])
67
67
  │ │ ├─ URL: https://github.com/storybookjs/storybook.git
68
68
  │ │ └─ VendorUrl: https://github.com/storybookjs/storybook/tree/next/code/addons/essentials
69
- │ ├─ @storybook/addon-links@npm:7.0.0-beta.40 [d75d7] (via npm:7.0.0-beta.40 [d75d7])
69
+ │ ├─ @storybook/addon-links@npm:7.0.0-beta.54 [d75d7] (via npm:7.0.0-beta.54 [d75d7])
70
70
  │ │ ├─ URL: https://github.com/storybookjs/storybook.git
71
71
  │ │ └─ VendorUrl: https://github.com/storybookjs/storybook/tree/next/code/addons/links
72
- │ ├─ @storybook/addon-storysource@npm:7.0.0-beta.40 [d75d7] (via npm:7.0.0-beta.40 [d75d7])
72
+ │ ├─ @storybook/addon-storysource@npm:7.0.0-beta.54 [d75d7] (via npm:7.0.0-beta.54 [d75d7])
73
73
  │ │ ├─ URL: https://github.com/storybookjs/storybook.git
74
74
  │ │ └─ VendorUrl: https://github.com/storybookjs/storybook/tree/next/code/addons/storysource
75
- │ ├─ @storybook/react@npm:7.0.0-beta.40 [d75d7] (via npm:7.0.0-beta.40 [d75d7])
75
+ │ ├─ @storybook/react@npm:7.0.0-beta.54 [d75d7] (via npm:7.0.0-beta.54 [d75d7])
76
76
  │ │ ├─ URL: https://github.com/storybookjs/storybook.git
77
77
  │ │ └─ VendorUrl: https://github.com/storybookjs/storybook/tree/main/renderers/react
78
- │ ├─ @storybook/react-vite@npm:7.0.0-beta.40 [d75d7] (via npm:7.0.0-beta.40 [d75d7])
78
+ │ ├─ @storybook/react-vite@npm:7.0.0-beta.54 [d75d7] (via npm:7.0.0-beta.54 [d75d7])
79
79
  │ │ ├─ URL: https://github.com/storybookjs/storybook.git
80
80
  │ │ └─ VendorUrl: https://github.com/storybookjs/storybook/tree/main/frameworks/react-vite
81
- │ ├─ @storybook/react-webpack5@npm:7.0.0-beta.40 [d75d7] (via npm:7.0.0-beta.40 [d75d7])
81
+ │ ├─ @storybook/react-webpack5@npm:7.0.0-beta.54 [d75d7] (via npm:7.0.0-beta.54 [d75d7])
82
82
  │ │ ├─ URL: https://github.com/storybookjs/storybook.git
83
83
  │ │ └─ VendorUrl: https://github.com/storybookjs/storybook/tree/main/frameworks/react-webpack5
84
84
  │ ├─ @svgr/cli@npm:6.5.1 (via npm:6.5.1)
@@ -236,7 +236,7 @@ Third-party licenses
236
236
  │ │ ├─ URL: https://github.com/que-etc/resize-observer-polyfill.git
237
237
  │ │ ├─ VendorName: Denis Rul
238
238
  │ │ └─ VendorUrl: https://github.com/que-etc/resize-observer-polyfill
239
- │ ├─ storybook@npm:7.0.0-beta.40 (via npm:7.0.0-beta.40)
239
+ │ ├─ storybook@npm:7.0.0-beta.54 (via npm:7.0.0-beta.54)
240
240
  │ │ ├─ URL: https://github.com/storybookjs/storybook.git
241
241
  │ │ └─ VendorUrl: https://github.com/storybookjs/storybook/tree/main/lib/cli
242
242
  │ ├─ storybook-addon-pseudo-states@npm:1.15.1 [d75d7] (via npm:^1.15.1 [d75d7])
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /**
3
3
  * Do not edit directly
4
- * Generated on Wed, 22 Feb 2023 14:44:28 GMT
4
+ * Generated on Fri, 03 Mar 2023 14:32:24 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 Wed, 22 Feb 2023 14:44:28 GMT
4
+ * Generated on Fri, 03 Mar 2023 14:32:24 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 Wed, 22 Feb 2023 14:44:28 GMT
3
+ * Generated on Fri, 03 Mar 2023 14:32:24 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 Wed, 22 Feb 2023 14:44:28 GMT
4
+ * Generated on Fri, 03 Mar 2023 14:32:24 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 Wed, 22 Feb 2023 14:44:28 GMT
462
+ * Generated on Fri, 03 Mar 2023 14:32:24 GMT
463
463
  */
464
464
  :root {
465
465
  --transitions-values-properties-default: all;
@@ -2250,7 +2250,7 @@ a.ndl-btn{
2250
2250
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
2251
2251
  */
2252
2252
  .ndl-menu{
2253
- padding: 1rem;
2253
+ padding: 8px;
2254
2254
  }
2255
2255
  .ndl-menu.ndl-large .ndl-menu-item{
2256
2256
  padding-top: 0.75rem;
@@ -2260,11 +2260,8 @@ a.ndl-btn{
2260
2260
  }
2261
2261
  .ndl-menu.ndl-large .ndl-menu-item-title{
2262
2262
  width: 100%;
2263
- }
2264
-
2265
- .ndl-menu.ndl-large .ndl-menu-item-title {
2266
- font-size: var(--font-size-h6);
2267
- font-weight: var(--font-weight-bold);
2263
+ font-size: var(--font-size-body-large);
2264
+ font-weight: var(--font-weight-normal);
2268
2265
  letter-spacing: 0.016rem;
2269
2266
  line-height: 1.5rem;
2270
2267
  }
@@ -2326,13 +2323,13 @@ a.ndl-btn{
2326
2323
  letter-spacing: 0.016rem;
2327
2324
  line-height: 1.25rem;
2328
2325
  }
2329
- .ndl-menu .ndl-menu-item:hover:not(.ndl-disabled),
2330
-
2331
- .ndl-menu .ndl-menu-item:focus{
2332
- border-radius: 8px;
2333
- --tw-bg-opacity: 1;
2334
- background-color: rgb(245 247 250 / var(--tw-bg-opacity));
2335
- }
2326
+ .ndl-menu .ndl-menu-item:hover:not(.ndl-disabled),
2327
+ .ndl-menu .ndl-menu-item:focus {
2328
+ /* Was :focus-visible, changed to support Safari */
2329
+ border-radius: 8px;
2330
+ --tw-bg-opacity: 1;
2331
+ background-color: rgb(245 247 250 / var(--tw-bg-opacity));
2332
+ }
2336
2333
  .ndl-menu .ndl-menu-item.ndl-disabled{
2337
2334
  pointer-events: none;
2338
2335
  cursor: default;
@@ -2360,11 +2357,14 @@ a.ndl-btn{
2360
2357
  letter-spacing: 0.016rem;
2361
2358
  line-height: 1.25rem;
2362
2359
  }
2363
- .ndl-menu .ndl-menu-item-icon{
2364
- margin-right: 0.5rem;
2365
- height: 0.75rem;
2366
- width: 0.75rem;
2367
- }
2360
+ .ndl-menu .ndl-menu-item-icon {
2361
+ margin-top: 2px;
2362
+ width: 16px;
2363
+ height: 16px;
2364
+ flex-shrink: 0;
2365
+ --tw-text-opacity: 1;
2366
+ color: rgb(83 91 102 / var(--tw-text-opacity));
2367
+ }
2368
2368
  .ndl-menu .ndl-menu-header{
2369
2369
  margin-bottom: 1rem;
2370
2370
  padding-left: 0.5rem;
@@ -4090,12 +4090,7 @@ a.ndl-btn{
4090
4090
  }
4091
4091
  /* Icon Left Collapsed Styles */
4092
4092
  .ndl-side-navigation:not(.ndl-expanded) .ndl-side-navigation-drawer-button {
4093
- /* This is important because we can't rely on
4094
- `right` to be accurate due to the scrollbar
4095
- on the child <nav /> element. So we switch
4096
- to offset from the left when collapsed to
4097
- make the collapse icon and the nav icons
4098
- align */
4093
+ /* This is important because we can't rely on `right` to be accurate due to the scrollbar on the child <nav /> element. So we switch to offset from the left when collapsed to make the collapse icon and the nav icons align */
4099
4094
  left: 0.5rem;
4100
4095
  right: unset;
4101
4096
  }
@@ -4151,14 +4146,41 @@ a.ndl-btn{
4151
4146
  margin-bottom: 0.125rem;
4152
4147
  margin-left: 1rem;
4153
4148
  margin-right: 1rem;
4154
- /* 2px */ /* for focus-visible */
4149
+ /* 2px */
4155
4150
  }
4156
4151
  /* space between scroll bar */
4157
4152
  .ndl-side-navigation .ndl-side-navigation-nav-item:not(.ndl-expanded){
4158
4153
  margin-left: 0.5rem;
4159
4154
  margin-right: 0.5rem;
4160
4155
  }
4156
+ .ndl-side-navigation .ndl-side-navigation-nav-item:not(.ndl-expanded) .ndl-selected::before {
4157
+ /* Side indication for a11y */
4158
+ content: '';
4159
+ width: 4px;
4160
+ height: 100%;
4161
+ border-radius: 0 100px 100px 0;
4162
+ position: absolute;
4163
+ left: -8px;
4164
+ top: 0px;
4165
+ box-shadow: none;
4166
+ --tw-bg-opacity: 1;
4167
+ background-color: rgb(0 111 214 / var(--tw-bg-opacity));
4168
+ }
4161
4169
  /* 6px */
4170
+ .ndl-side-navigation .ndl-side-navigation-nav-item.ndl-expanded .ndl-selected::before {
4171
+ /* Side indication for a11y */
4172
+ content: '';
4173
+ width: 4px;
4174
+ height: 100%;
4175
+ border-radius: 0 100px 100px 0;
4176
+ position: absolute;
4177
+ left: -16px;
4178
+ top: 0px;
4179
+ box-shadow: none;
4180
+ --tw-bg-opacity: 1;
4181
+ background-color: rgb(0 111 214 / var(--tw-bg-opacity));
4182
+ }
4183
+ /* for focus-visible */
4162
4184
  .ndl-side-navigation .ndl-side-navigation-nav-item > .ndl-side-navigation-inner-item{
4163
4185
  display: flex;
4164
4186
  height: 3rem;
@@ -4181,6 +4203,7 @@ a.ndl-btn{
4181
4203
  color: rgb(113 119 128 / var(--tw-text-opacity));
4182
4204
  }
4183
4205
  .ndl-side-navigation .ndl-side-navigation-nav-item > .ndl-side-navigation-inner-item.ndl-selected{
4206
+ position: relative;
4184
4207
  --tw-bg-opacity: 1;
4185
4208
  background-color: rgb(230 248 255 / var(--tw-bg-opacity));
4186
4209
  --tw-text-opacity: 1;
@@ -4377,12 +4400,12 @@ a.ndl-btn{
4377
4400
  .n-w-5{
4378
4401
  width: 1.25rem;
4379
4402
  }
4380
- .n-w-4{
4381
- width: 1rem;
4382
- }
4383
4403
  .n-w-full{
4384
4404
  width: 100%;
4385
4405
  }
4406
+ .n-w-4{
4407
+ width: 1rem;
4408
+ }
4386
4409
  .n-w-10{
4387
4410
  width: 2.5rem;
4388
4411
  }
@@ -4463,6 +4486,12 @@ a.ndl-btn{
4463
4486
  .n-justify-between{
4464
4487
  justify-content: space-between;
4465
4488
  }
4489
+ .n-gap-token-4{
4490
+ gap: 8px;
4491
+ }
4492
+ .n-gap-token-2{
4493
+ gap: 2px;
4494
+ }
4466
4495
  .n-gap-3{
4467
4496
  gap: 0.75rem;
4468
4497
  }
@@ -4484,9 +4513,6 @@ a.ndl-btn{
4484
4513
  .n-gap-12{
4485
4514
  gap: 3rem;
4486
4515
  }
4487
- .n-gap-token-2{
4488
- gap: 2px;
4489
- }
4490
4516
  .n-gap-x-10{
4491
4517
  -moz-column-gap: 2.5rem;
4492
4518
  column-gap: 2.5rem;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Wed, 22 Feb 2023 14:44:28 GMT
3
+ * Generated on Fri, 03 Mar 2023 14:32:24 GMT
4
4
  */
5
5
 
6
6
  :root {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Wed, 22 Feb 2023 14:44:28 GMT
3
+ * Generated on Fri, 03 Mar 2023 14:32:24 GMT
4
4
  */
5
5
 
6
6
  module.exports = {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Wed, 22 Feb 2023 14:44:28 GMT
3
+ * Generated on Fri, 03 Mar 2023 14:32:24 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 Wed, 22 Feb 2023 14:44:28 GMT
3
+ // Generated on Fri, 03 Mar 2023 14:32:24 GMT
4
4
 
5
5
  $transitions-values-properties-default: all;
6
6
  $transitions-values-duration-default: 100ms;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neo4j-ndl/base",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Neo4j base package for the design system",
5
5
  "author": "Neo4j Inc.",
6
6
  "homepage": "",