@skyscanner/backpack-web 2.0.1 → 3.1.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/bpk-animate-height/package.json +26 -0
- package/bpk-component-accordion/package.json +31 -0
- package/bpk-component-aria-live/package.json +31 -0
- package/bpk-component-autosuggest/package.json +29 -0
- package/bpk-component-badge/package.json +29 -0
- package/bpk-component-banner-alert/package.json +34 -0
- package/bpk-component-barchart/package.json +35 -0
- package/bpk-component-barchart/src/BpkBarchartBar.js +3 -2
- package/bpk-component-blockquote/package.json +24 -0
- package/bpk-component-breadcrumb/package.json +27 -0
- package/bpk-component-breakpoint/package.json +28 -0
- package/bpk-component-button/package.json +26 -0
- package/bpk-component-calendar/package.json +34 -0
- package/bpk-component-calendar/src/BpkCalendarGridTransition.js +4 -2
- package/bpk-component-calendar/src/Week.js +3 -1
- package/bpk-component-card/package.json +28 -0
- package/bpk-component-checkbox/package.json +29 -0
- package/bpk-component-chip/package.json +29 -0
- package/bpk-component-close-button/package.json +28 -0
- package/bpk-component-code/package.json +24 -0
- package/bpk-component-content-container/package.json +24 -0
- package/bpk-component-datatable/package.json +30 -0
- package/bpk-component-datepicker/package.json +33 -0
- package/bpk-component-description-list/package.json +24 -0
- package/bpk-component-dialog/package.json +32 -0
- package/bpk-component-drawer/package.json +34 -0
- package/bpk-component-fieldset/package.json +36 -0
- package/bpk-component-flare/package.json +29 -0
- package/bpk-component-form-validation/package.json +34 -0
- package/bpk-component-graphic-promotion/package.json +26 -0
- package/bpk-component-grid/package.json +24 -0
- package/bpk-component-grid-toggle/package.json +25 -0
- package/bpk-component-horizontal-nav/package.json +30 -0
- package/bpk-component-icon/package.json +34 -0
- package/bpk-component-image/package.json +31 -0
- package/bpk-component-infinite-scroll/package.json +31 -0
- package/bpk-component-input/package.json +30 -0
- package/bpk-component-label/package.json +24 -0
- package/bpk-component-link/package.json +28 -0
- package/bpk-component-list/package.json +24 -0
- package/bpk-component-loading-button/package.json +30 -0
- package/bpk-component-map/package.json +32 -0
- package/bpk-component-mobile-scroll-container/package.json +28 -0
- package/bpk-component-modal/package.json +33 -0
- package/bpk-component-navigation-bar/package.json +32 -0
- package/bpk-component-navigation-stack/package.json +32 -0
- package/bpk-component-nudger/package.json +32 -0
- package/bpk-component-overlay/package.json +28 -0
- package/bpk-component-pagination/package.json +28 -0
- package/bpk-component-panel/package.json +24 -0
- package/bpk-component-phone-input/package.json +33 -0
- package/bpk-component-popover/README.md +2 -2
- package/bpk-component-popover/package.json +35 -0
- package/bpk-component-popover/src/BpkPopover.js +1 -0
- package/bpk-component-popover/src/BpkPopover.module.scss +28 -26
- package/bpk-component-popover/src/BpkPopoverPortal.js +43 -17
- package/bpk-component-price/README.md +35 -0
- package/bpk-component-price/index.js +23 -0
- package/bpk-component-price/package.json +24 -0
- package/bpk-component-price/src/BpkPrice.js +106 -0
- package/bpk-component-price/src/BpkPrice.module.scss +55 -0
- package/bpk-component-progress/package.json +30 -0
- package/bpk-component-radio/package.json +28 -0
- package/bpk-component-rating/package.json +29 -0
- package/bpk-component-rating/src/BpkRating.js +6 -1
- package/bpk-component-rtl-toggle/package.json +24 -0
- package/bpk-component-scrollable-calendar/package.json +32 -0
- package/bpk-component-section-list/package.json +30 -0
- package/bpk-component-select/package.json +27 -0
- package/bpk-component-skip-link/package.json +24 -0
- package/bpk-component-slider/package.json +29 -0
- package/bpk-component-spinner/package.json +25 -0
- package/bpk-component-star-rating/package.json +29 -0
- package/bpk-component-star-rating/src/BpkStarRating.js +6 -1
- package/bpk-component-switch/package.json +24 -0
- package/bpk-component-table/package.json +24 -0
- package/bpk-component-text/package.json +24 -0
- package/bpk-component-textarea/package.json +28 -0
- package/bpk-component-theme-toggle/package.json +27 -0
- package/bpk-component-theme-toggle/src/BpkThemeToggle.js +0 -8
- package/bpk-component-ticket/package.json +28 -0
- package/bpk-component-tooltip/README.md +2 -2
- package/bpk-component-tooltip/package.json +29 -0
- package/bpk-component-tooltip/src/BpkTooltip.js +6 -1
- package/bpk-component-tooltip/src/BpkTooltip.module.scss +46 -55
- package/bpk-component-tooltip/src/BpkTooltipPortal.js +21 -12
- package/bpk-react-utils/package.json +25 -0
- package/bpk-scrim-utils/package.json +25 -0
- package/bpk-theming/package.json +23 -0
- package/package.json +5 -3
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bpk-animate-height",
|
|
3
|
+
"version": "4.1.10",
|
|
4
|
+
"description": "Animate height using CSS transitions.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git@github.com:Skyscanner/backpack.git"
|
|
9
|
+
},
|
|
10
|
+
"author": "Backpack Design System <backpack@skyscanner.net>",
|
|
11
|
+
"main": "index.js",
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"registry": "https://registry.npmjs.org/"
|
|
14
|
+
},
|
|
15
|
+
"gitHead": "5c156b97cb0ba5e75851d3c763334578714c895e",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"prop-types": "^15.7.2"
|
|
18
|
+
},
|
|
19
|
+
"peerDependencies": {
|
|
20
|
+
"react": "^16.3.0 || ^17.0.0"
|
|
21
|
+
},
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"@skyscanner/bpk-foundations-web": "^8.0.0",
|
|
24
|
+
"bpk-component-button": "^6.2.5"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bpk-component-accordion",
|
|
3
|
+
"version": "5.0.10",
|
|
4
|
+
"description": "Backpack accordion component.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git@github.com:Skyscanner/backpack.git"
|
|
9
|
+
},
|
|
10
|
+
"author": "Backpack Design System <backpack@skyscanner.net>",
|
|
11
|
+
"main": "index.js",
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"registry": "https://registry.npmjs.org/"
|
|
14
|
+
},
|
|
15
|
+
"gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"bpk-animate-height": "^4.1.10",
|
|
18
|
+
"bpk-component-icon": "^9.2.11",
|
|
19
|
+
"bpk-component-text": "^7.0.4",
|
|
20
|
+
"bpk-mixins": "^31.1.1",
|
|
21
|
+
"bpk-react-utils": "^4.1.2",
|
|
22
|
+
"prop-types": "^15.7.2"
|
|
23
|
+
},
|
|
24
|
+
"peerDependencies": {
|
|
25
|
+
"react": "^16.3.0 || ^17.0.0"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@skyscanner/bpk-foundations-web": "^8.0.0",
|
|
29
|
+
"bpk-component-checkbox": "^4.1.12"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bpk-component-aria-live",
|
|
3
|
+
"version": "2.1.15",
|
|
4
|
+
"description": "Backpack aria-live component.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git@github.com:Skyscanner/backpack.git"
|
|
9
|
+
},
|
|
10
|
+
"author": "Backpack Design System <backpack@skyscanner.net>",
|
|
11
|
+
"main": "index.js",
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"registry": "https://registry.npmjs.org/"
|
|
14
|
+
},
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"bpk-mixins": "^31.1.1",
|
|
17
|
+
"bpk-react-utils": "^4.1.2",
|
|
18
|
+
"prop-types": "^15.5.8"
|
|
19
|
+
},
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"bpk-component-chip": "^5.2.13",
|
|
22
|
+
"bpk-component-code": "^3.1.10",
|
|
23
|
+
"bpk-component-fieldset": "^4.1.15",
|
|
24
|
+
"bpk-component-select": "^5.1.10",
|
|
25
|
+
"bpk-component-switch": "^2.1.11"
|
|
26
|
+
},
|
|
27
|
+
"peerDependencies": {
|
|
28
|
+
"react": "^16.3.0 || ^17.0.0"
|
|
29
|
+
},
|
|
30
|
+
"gitHead": "4e4ec9add28e1db54d6a38a10c331bbd163f2926"
|
|
31
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bpk-component-autosuggest",
|
|
3
|
+
"version": "6.1.13",
|
|
4
|
+
"description": "Backpack autosuggest component.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git@github.com:Skyscanner/backpack.git"
|
|
9
|
+
},
|
|
10
|
+
"author": "Backpack Design System <backpack@skyscanner.net>",
|
|
11
|
+
"main": "index.js",
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"registry": "https://registry.npmjs.org/"
|
|
14
|
+
},
|
|
15
|
+
"gitHead": "4e4ec9add28e1db54d6a38a10c331bbd163f2926",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"bpk-component-input": "^6.1.13",
|
|
18
|
+
"bpk-mixins": "^31.1.1",
|
|
19
|
+
"bpk-react-utils": "^4.1.2",
|
|
20
|
+
"prop-types": "^15.7.2",
|
|
21
|
+
"react-autosuggest": "^9.4.3"
|
|
22
|
+
},
|
|
23
|
+
"peerDependencies": {
|
|
24
|
+
"react": "^16.3.0 || ^17.0.0"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"bpk-component-icon": "^9.2.11"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bpk-component-badge",
|
|
3
|
+
"version": "4.1.11",
|
|
4
|
+
"description": "Backpack badge component.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git@github.com:Skyscanner/backpack.git"
|
|
9
|
+
},
|
|
10
|
+
"author": "Backpack Design System <backpack@skyscanner.net>",
|
|
11
|
+
"main": "index.js",
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"registry": "https://registry.npmjs.org/"
|
|
14
|
+
},
|
|
15
|
+
"gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"bpk-mixins": "^31.1.1",
|
|
18
|
+
"bpk-react-utils": "^4.1.2",
|
|
19
|
+
"prop-types": "^15.7.2"
|
|
20
|
+
},
|
|
21
|
+
"peerDependencies": {
|
|
22
|
+
"react": "^16.3.0 || ^17.0.0"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"@skyscanner/bpk-foundations-web": "^8.0.0",
|
|
26
|
+
"bpk-component-icon": "^9.2.11",
|
|
27
|
+
"bpk-storybook-utils": "^1.1.9"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bpk-component-banner-alert",
|
|
3
|
+
"version": "6.1.13",
|
|
4
|
+
"description": "Backpack banner alert component.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git@github.com:Skyscanner/backpack.git"
|
|
9
|
+
},
|
|
10
|
+
"author": "Backpack Design System <backpack@skyscanner.net>",
|
|
11
|
+
"main": "index.js",
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"registry": "https://registry.npmjs.org/"
|
|
14
|
+
},
|
|
15
|
+
"gitHead": "4e4ec9add28e1db54d6a38a10c331bbd163f2926",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@skyscanner/bpk-foundations-web": "^8.0.0",
|
|
18
|
+
"bpk-animate-height": "^4.1.10",
|
|
19
|
+
"bpk-component-close-button": "^3.1.11",
|
|
20
|
+
"bpk-component-icon": "^9.2.11",
|
|
21
|
+
"bpk-mixins": "^31.1.1",
|
|
22
|
+
"bpk-react-utils": "^4.1.2",
|
|
23
|
+
"prop-types": "^15.7.2",
|
|
24
|
+
"react-transition-group": "^2.5.3"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"bpk-component-aria-live": "^2.1.15",
|
|
28
|
+
"bpk-component-button": "^6.2.5",
|
|
29
|
+
"bpk-storybook-utils": "^1.1.9"
|
|
30
|
+
},
|
|
31
|
+
"peerDependencies": {
|
|
32
|
+
"react": "^16.3.0 || ^17.0.0"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bpk-component-barchart",
|
|
3
|
+
"version": "4.2.11",
|
|
4
|
+
"description": "Backpack bar chart component.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git@github.com:Skyscanner/backpack.git"
|
|
9
|
+
},
|
|
10
|
+
"author": "Backpack Design System <backpack@skyscanner.net>",
|
|
11
|
+
"main": "index.js",
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"registry": "https://registry.npmjs.org/"
|
|
14
|
+
},
|
|
15
|
+
"gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@skyscanner/bpk-foundations-web": "^8.0.0",
|
|
18
|
+
"bpk-component-mobile-scroll-container": "^3.1.10",
|
|
19
|
+
"bpk-mixins": "^31.1.1",
|
|
20
|
+
"bpk-react-utils": "^4.1.2",
|
|
21
|
+
"d3-path": "^2.0.0",
|
|
22
|
+
"d3-scale": "^4.0.2",
|
|
23
|
+
"lodash.debounce": "^4.0.8",
|
|
24
|
+
"prop-types": "^15.7.2"
|
|
25
|
+
},
|
|
26
|
+
"peerDependencies": {
|
|
27
|
+
"react": "^16.3.0 || ^17.0.0"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"bpk-component-breakpoint": "^4.0.2",
|
|
31
|
+
"bpk-component-content-container": "^5.0.4",
|
|
32
|
+
"bpk-component-rtl-toggle": "^3.1.10",
|
|
33
|
+
"bpk-component-text": "^7.0.4"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -117,8 +117,9 @@ const BpkBarchartBar = (props: Props) => {
|
|
|
117
117
|
onFocus={onFocus || undefined}
|
|
118
118
|
onKeyDown={onClick ? handleKeyboardEvent(onClick) : undefined}
|
|
119
119
|
tabIndex={onClick ? 0 : undefined}
|
|
120
|
-
role={onClick ? 'button' :
|
|
121
|
-
aria-
|
|
120
|
+
role={onClick ? 'button' : 'graphics-symbol'}
|
|
121
|
+
aria-roledescription={onClick ? undefined : 'bar'}
|
|
122
|
+
aria-pressed={onClick ? isAriaPressed : undefined}
|
|
122
123
|
aria-label={label}
|
|
123
124
|
/>
|
|
124
125
|
</g>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bpk-component-blockquote",
|
|
3
|
+
"version": "3.1.10",
|
|
4
|
+
"description": "Backpack blockquote component.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git@github.com:Skyscanner/backpack.git"
|
|
9
|
+
},
|
|
10
|
+
"author": "Backpack Design System <backpack@skyscanner.net>",
|
|
11
|
+
"main": "index.js",
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"registry": "https://registry.npmjs.org/"
|
|
14
|
+
},
|
|
15
|
+
"gitHead": "5c156b97cb0ba5e75851d3c763334578714c895e",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"bpk-mixins": "^31.1.1",
|
|
18
|
+
"bpk-react-utils": "^4.1.2",
|
|
19
|
+
"prop-types": "^15.7.2"
|
|
20
|
+
},
|
|
21
|
+
"peerDependencies": {
|
|
22
|
+
"react": "^16.3.0 || ^17.0.0"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bpk-component-breadcrumb",
|
|
3
|
+
"version": "3.1.11",
|
|
4
|
+
"description": "Backpack breadcrumb component.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git@github.com:Skyscanner/backpack.git"
|
|
9
|
+
},
|
|
10
|
+
"author": "Backpack Design System <backpack@skyscanner.net>",
|
|
11
|
+
"main": "index.js",
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"registry": "https://registry.npmjs.org/"
|
|
14
|
+
},
|
|
15
|
+
"gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"bpk-component-icon": "^9.2.11",
|
|
18
|
+
"bpk-component-link": "^3.1.10",
|
|
19
|
+
"bpk-component-text": "^7.0.4",
|
|
20
|
+
"bpk-mixins": "^31.1.1",
|
|
21
|
+
"bpk-react-utils": "^4.1.2",
|
|
22
|
+
"prop-types": "^15.7.2"
|
|
23
|
+
},
|
|
24
|
+
"peerDependencies": {
|
|
25
|
+
"react": "^16.3.0 || ^17.0.0"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bpk-component-breakpoint",
|
|
3
|
+
"version": "4.0.2",
|
|
4
|
+
"description": "Backpack breakpoint component.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git@github.com:Skyscanner/backpack.git"
|
|
9
|
+
},
|
|
10
|
+
"author": "Backpack Design System <backpack@skyscanner.net>",
|
|
11
|
+
"main": "index.js",
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"registry": "https://registry.npmjs.org/"
|
|
14
|
+
},
|
|
15
|
+
"gitHead": "5c156b97cb0ba5e75851d3c763334578714c895e",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"bpk-mixins": "^31.1.1",
|
|
18
|
+
"bpk-react-utils": "^4.1.2",
|
|
19
|
+
"prop-types": "^15.7.2",
|
|
20
|
+
"react-responsive": "^6.1.2"
|
|
21
|
+
},
|
|
22
|
+
"peerDependencies": {
|
|
23
|
+
"react": "^16.3.0 || ^17.0.0"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@skyscanner/bpk-foundations-web": "^8.0.0"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bpk-component-button",
|
|
3
|
+
"version": "6.2.5",
|
|
4
|
+
"description": "Backpack button component.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git@github.com:Skyscanner/backpack.git"
|
|
9
|
+
},
|
|
10
|
+
"author": "Backpack Design System <backpack@skyscanner.net>",
|
|
11
|
+
"main": "index.js",
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"registry": "https://registry.npmjs.org/"
|
|
14
|
+
},
|
|
15
|
+
"gitHead": "5c156b97cb0ba5e75851d3c763334578714c895e",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"bpk-mixins": "^31.1.1",
|
|
18
|
+
"prop-types": "^15.7.2"
|
|
19
|
+
},
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"bpk-storybook-utils": "^1.1.9"
|
|
22
|
+
},
|
|
23
|
+
"peerDependencies": {
|
|
24
|
+
"react": "^16.3.0 || ^17.0.0"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bpk-component-calendar",
|
|
3
|
+
"version": "11.1.15",
|
|
4
|
+
"description": "Backpack calendar component.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git@github.com:Skyscanner/backpack.git"
|
|
9
|
+
},
|
|
10
|
+
"author": "Backpack Design System <backpack@skyscanner.net>",
|
|
11
|
+
"main": "index.js",
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"registry": "https://registry.npmjs.org/"
|
|
14
|
+
},
|
|
15
|
+
"gitHead": "4e4ec9add28e1db54d6a38a10c331bbd163f2926",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@skyscanner/bpk-foundations-web": "^8.0.0",
|
|
18
|
+
"bpk-component-aria-live": "^2.1.15",
|
|
19
|
+
"bpk-component-icon": "^9.2.11",
|
|
20
|
+
"bpk-component-select": "^5.1.10",
|
|
21
|
+
"bpk-mixins": "^31.1.1",
|
|
22
|
+
"bpk-react-utils": "^4.1.2",
|
|
23
|
+
"date-fns": "^2.21.1",
|
|
24
|
+
"prop-types": "^15.7.2"
|
|
25
|
+
},
|
|
26
|
+
"peerDependencies": {
|
|
27
|
+
"react": "^16.3.0 || ^17.0.0"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"bpk-component-button": "^6.2.5",
|
|
31
|
+
"bpk-component-text": "^7.0.4",
|
|
32
|
+
"bpk-storybook-utils": "^1.1.9"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -58,6 +58,8 @@ class BpkCalendarGridTransition extends Component {
|
|
|
58
58
|
constructor(props) {
|
|
59
59
|
super(props);
|
|
60
60
|
|
|
61
|
+
this.onMonthTransitionEnd = this.onMonthTransitionEnd.bind(this);
|
|
62
|
+
|
|
61
63
|
this.state = {
|
|
62
64
|
isTransitioning: false,
|
|
63
65
|
transitionValue: transitionValues.current,
|
|
@@ -126,7 +128,7 @@ class BpkCalendarGridTransition extends Component {
|
|
|
126
128
|
}
|
|
127
129
|
}
|
|
128
130
|
|
|
129
|
-
onMonthTransitionEnd
|
|
131
|
+
onMonthTransitionEnd() {
|
|
130
132
|
const { month } = this.props;
|
|
131
133
|
|
|
132
134
|
this.setState({
|
|
@@ -137,7 +139,7 @@ class BpkCalendarGridTransition extends Component {
|
|
|
137
139
|
currentMonth: month,
|
|
138
140
|
months: [addMonths(month, -1), month, addMonths(month, 1)],
|
|
139
141
|
});
|
|
140
|
-
}
|
|
142
|
+
}
|
|
141
143
|
|
|
142
144
|
render() {
|
|
143
145
|
const { TransitionComponent, className, focusedDate, ...rest } = this.props;
|
|
@@ -107,7 +107,9 @@ function getSelectionType(
|
|
|
107
107
|
|
|
108
108
|
if (
|
|
109
109
|
selectionConfiguration.type === CALENDAR_SELECTION_TYPE.single &&
|
|
110
|
-
selectionConfiguration.date
|
|
110
|
+
selectionConfiguration.date &&
|
|
111
|
+
(selectionConfiguration.date === formatDateFull(date) ||
|
|
112
|
+
formatDateFull(selectionConfiguration.date) === formatDateFull(date))
|
|
111
113
|
) {
|
|
112
114
|
return SELECTION_TYPES.single;
|
|
113
115
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bpk-component-card",
|
|
3
|
+
"version": "4.1.11",
|
|
4
|
+
"description": "Backpack card component.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git@github.com:Skyscanner/backpack.git"
|
|
9
|
+
},
|
|
10
|
+
"author": "Backpack Design System <backpack@skyscanner.net>",
|
|
11
|
+
"main": "index.js",
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"registry": "https://registry.npmjs.org/"
|
|
14
|
+
},
|
|
15
|
+
"gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"bpk-mixins": "^31.1.1",
|
|
18
|
+
"bpk-react-utils": "^4.1.2",
|
|
19
|
+
"prop-types": "^15.7.2"
|
|
20
|
+
},
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"bpk-component-link": "^3.1.10",
|
|
23
|
+
"bpk-component-text": "^7.0.4"
|
|
24
|
+
},
|
|
25
|
+
"peerDependencies": {
|
|
26
|
+
"react": "^16.3.0 || ^17.0.0"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bpk-component-checkbox",
|
|
3
|
+
"version": "4.1.12",
|
|
4
|
+
"description": "Backpack checkbox component.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git@github.com:Skyscanner/backpack.git"
|
|
9
|
+
},
|
|
10
|
+
"author": "Backpack Design System <backpack@skyscanner.net>",
|
|
11
|
+
"main": "index.js",
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"registry": "https://registry.npmjs.org/"
|
|
14
|
+
},
|
|
15
|
+
"gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"bpk-component-icon": "^9.2.11",
|
|
18
|
+
"bpk-mixins": "^31.1.1",
|
|
19
|
+
"bpk-react-utils": "^4.1.2",
|
|
20
|
+
"prop-types": "^15.7.2"
|
|
21
|
+
},
|
|
22
|
+
"peerDependencies": {
|
|
23
|
+
"react": "^16.3.0 || ^17.0.0"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@skyscanner/bpk-foundations-web": "^8.0.0",
|
|
27
|
+
"bpk-storybook-utils": "^1.1.9"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bpk-component-chip",
|
|
3
|
+
"version": "5.2.13",
|
|
4
|
+
"description": "Backpack chip component.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git@github.com:Skyscanner/backpack.git"
|
|
9
|
+
},
|
|
10
|
+
"author": "Backpack Design System <backpack@skyscanner.net>",
|
|
11
|
+
"main": "index.js",
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"registry": "https://registry.npmjs.org/"
|
|
14
|
+
},
|
|
15
|
+
"gitHead": "4e4ec9add28e1db54d6a38a10c331bbd163f2926",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"bpk-component-icon": "^9.2.11",
|
|
18
|
+
"bpk-mixins": "^31.1.1",
|
|
19
|
+
"bpk-react-utils": "^4.1.2",
|
|
20
|
+
"prop-types": "^15.7.2"
|
|
21
|
+
},
|
|
22
|
+
"peerDependencies": {
|
|
23
|
+
"react": "^16.3.0 || ^17.0.0"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"bpk-component-aria-live": "^2.1.15",
|
|
27
|
+
"bpk-component-text": "^7.0.4"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bpk-component-close-button",
|
|
3
|
+
"version": "3.1.11",
|
|
4
|
+
"description": "Backpack close button component.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git@github.com:Skyscanner/backpack.git"
|
|
9
|
+
},
|
|
10
|
+
"author": "Backpack Design System <backpack@skyscanner.net>",
|
|
11
|
+
"main": "index.js",
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"registry": "https://registry.npmjs.org/"
|
|
14
|
+
},
|
|
15
|
+
"gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"bpk-component-icon": "^9.2.11",
|
|
18
|
+
"bpk-mixins": "^31.1.1",
|
|
19
|
+
"bpk-react-utils": "^4.1.2",
|
|
20
|
+
"prop-types": "^15.7.2"
|
|
21
|
+
},
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"bpk-storybook-utils": "^1.1.9"
|
|
24
|
+
},
|
|
25
|
+
"peerDependencies": {
|
|
26
|
+
"react": "^16.3.0 || ^17.0.0"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bpk-component-code",
|
|
3
|
+
"version": "3.1.10",
|
|
4
|
+
"description": "Backpack code component.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git@github.com:Skyscanner/backpack.git"
|
|
9
|
+
},
|
|
10
|
+
"author": "Backpack Design System <backpack@skyscanner.net>",
|
|
11
|
+
"main": "index.js",
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"registry": "https://registry.npmjs.org/"
|
|
14
|
+
},
|
|
15
|
+
"gitHead": "5c156b97cb0ba5e75851d3c763334578714c895e",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"bpk-mixins": "^31.1.1",
|
|
18
|
+
"bpk-react-utils": "^4.1.2",
|
|
19
|
+
"prop-types": "^15.7.2"
|
|
20
|
+
},
|
|
21
|
+
"peerDependencies": {
|
|
22
|
+
"react": "^16.3.0 || ^17.0.0"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bpk-component-content-container",
|
|
3
|
+
"version": "5.0.4",
|
|
4
|
+
"description": "Backpack content container component.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git@github.com:Skyscanner/backpack.git"
|
|
9
|
+
},
|
|
10
|
+
"author": "Backpack Design System <backpack@skyscanner.net>",
|
|
11
|
+
"main": "index.js",
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"registry": "https://registry.npmjs.org/"
|
|
14
|
+
},
|
|
15
|
+
"gitHead": "5c156b97cb0ba5e75851d3c763334578714c895e",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"bpk-mixins": "^31.1.1",
|
|
18
|
+
"bpk-react-utils": "^4.1.2",
|
|
19
|
+
"prop-types": "^15.7.2"
|
|
20
|
+
},
|
|
21
|
+
"peerDependencies": {
|
|
22
|
+
"react": "^16.3.0 || ^17.0.0"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bpk-component-datatable",
|
|
3
|
+
"version": "4.1.11",
|
|
4
|
+
"description": "Backpack datatable component.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git@github.com:Skyscanner/backpack.git"
|
|
9
|
+
},
|
|
10
|
+
"author": "Backpack Design System <backpack@skyscanner.net>",
|
|
11
|
+
"main": "index.js",
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"registry": "https://registry.npmjs.org/"
|
|
14
|
+
},
|
|
15
|
+
"gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"bpk-component-icon": "^9.2.11",
|
|
18
|
+
"bpk-mixins": "^31.1.1",
|
|
19
|
+
"bpk-react-utils": "^4.1.2",
|
|
20
|
+
"lodash": "^4.17.20",
|
|
21
|
+
"prop-types": "^15.7.2",
|
|
22
|
+
"react-virtualized": "^9.22.3"
|
|
23
|
+
},
|
|
24
|
+
"peerDependencies": {
|
|
25
|
+
"react": "^16.3.0 || ^17.0.0"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@skyscanner/bpk-foundations-web": "^8.0.0"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bpk-component-datepicker",
|
|
3
|
+
"version": "15.2.15",
|
|
4
|
+
"description": "Backpack datepicker component.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git@github.com:Skyscanner/backpack.git"
|
|
9
|
+
},
|
|
10
|
+
"author": "Backpack Design System <backpack@skyscanner.net>",
|
|
11
|
+
"main": "index.js",
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"registry": "https://registry.npmjs.org/"
|
|
14
|
+
},
|
|
15
|
+
"gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"bpk-component-breakpoint": "^4.0.2",
|
|
18
|
+
"bpk-component-calendar": "^11.1.15",
|
|
19
|
+
"bpk-component-input": "^6.1.13",
|
|
20
|
+
"bpk-component-modal": "^3.1.12",
|
|
21
|
+
"bpk-component-popover": "^5.0.0",
|
|
22
|
+
"bpk-mixins": "^31.1.1",
|
|
23
|
+
"bpk-react-utils": "^4.1.2",
|
|
24
|
+
"prop-types": "^15.7.2"
|
|
25
|
+
},
|
|
26
|
+
"peerDependencies": {
|
|
27
|
+
"react": "^16.3.0 || ^17.0.0"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@skyscanner/bpk-foundations-web": "^8.0.0",
|
|
31
|
+
"bpk-storybook-utils": "^1.1.9"
|
|
32
|
+
}
|
|
33
|
+
}
|