@ausbom/in-page-anchor 0.3.10 → 0.3.11
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/lib/InPageAnchor.js +1 -1
- package/package.json +3 -3
- package/CHANGELOG.md +0 -165
package/lib/InPageAnchor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var _interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard");var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports["default"]=exports.AnchorListItem=void 0;var _classCallCheck2=_interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));var _createClass2=_interopRequireDefault(require("@babel/runtime/helpers/createClass"));var
|
|
1
|
+
"use strict";var _interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard");var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports["default"]=exports.AnchorListItem=void 0;var _classCallCheck2=_interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));var _createClass2=_interopRequireDefault(require("@babel/runtime/helpers/createClass"));var _inherits2=_interopRequireDefault(require("@babel/runtime/helpers/inherits"));var _possibleConstructorReturn2=_interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));var _getPrototypeOf2=_interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));var _defineProperty2=_interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));var _extends2=_interopRequireDefault(require("@babel/runtime/helpers/extends"));var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var _classnames=_interopRequireDefault(require("classnames"));var _react=_interopRequireWildcard(require("react"));function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=(0,_getPrototypeOf2["default"])(Derived),result;if(hasNativeReflectConstruct){var NewTarget=(0,_getPrototypeOf2["default"])(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else{result=Super.apply(this,arguments)}return(0,_possibleConstructorReturn2["default"])(this,result)}}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(e){return false}}var AnchorListItem=function AnchorListItem(_ref){var Tag=_ref.as,className=_ref.className,children=_ref.children,dark=_ref.dark,otherProps=(0,_objectWithoutProperties2["default"])(_ref,["as","className","children","dark"]);var classes=(0,_classnames["default"])(className,"bom-anchor-list-item ",{"bom-anchor-list-item--dark":dark});return/*#__PURE__*/_react["default"].createElement(Tag,(0,_extends2["default"])({},otherProps,{className:classes}),children)};exports.AnchorListItem=AnchorListItem;AnchorListItem.defaultProps={as:"a",dark:false};AnchorListItem.displayName="AnchorListItem";var InPageAnchor=/*#__PURE__*/function(_React$PureComponent){(0,_inherits2["default"])(InPageAnchor,_React$PureComponent);var _super=_createSuper(InPageAnchor);function InPageAnchor(){(0,_classCallCheck2["default"])(this,InPageAnchor);return _super.apply(this,arguments)}(0,_createClass2["default"])(InPageAnchor,[{key:"render",value:function render(){var _ref2=this.props,className=_ref2.className,children=_ref2.children,dark=_ref2.dark,title=_ref2.title,TitleTag=_ref2.titleTag,innerRef=_ref2.innerRef,restProps=(0,_objectWithoutProperties2["default"])(_ref2,["className","children","dark","title","titleTag","innerRef"]);var classes=(0,_classnames["default"])(className,"bom-anchor-list ",{"bom-anchor-list--dark":dark});return/*#__PURE__*/_react["default"].createElement("div",(0,_extends2["default"])({ref:innerRef,className:classes},restProps),title&&/*#__PURE__*/_react["default"].createElement(TitleTag,{className:"bom-anchor-list__title"},title),/*#__PURE__*/_react["default"].createElement("ol",{className:"bom-anchor-list__list"},_react.Children.map(children||[],function(child){return/*#__PURE__*/_react["default"].createElement("li",{key:child.props.id,className:"bom-anchor-list__item"},/*#__PURE__*/_react["default"].cloneElement(child,{dark:dark}))})))}}]);return InPageAnchor}(_react["default"].PureComponent);(0,_defineProperty2["default"])(InPageAnchor,"defaultProps",{as:"ol",titleTag:"h3"});var InPageAnchorWithRef=/*#__PURE__*/_react["default"].forwardRef(function(props,ref){return/*#__PURE__*/_react["default"].createElement(InPageAnchor,(0,_extends2["default"])({innerRef:ref},props))});InPageAnchorWithRef.displayName="InPageAnchor";var _default=InPageAnchorWithRef;exports["default"]=_default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ausbom/in-page-anchor",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.11",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"react": ">= 16.3.x"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@ausbom/styles": "^0.9.
|
|
40
|
+
"@ausbom/styles": "^0.9.2"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "2fd9ca72166e3172e7957a3c3ac942e05fb1dde2"
|
|
43
43
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
-
|
|
6
|
-
## [0.3.10](https://github.com/AusBOM/bom-design-system/compare/@ausbom/in-page-anchor@0.3.9...@ausbom/in-page-anchor@0.3.10) (2020-11-27)
|
|
7
|
-
|
|
8
|
-
**Note:** Version bump only for package @ausbom/in-page-anchor
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
## [0.3.9](https://github.com/AusBOM/bom-design-system/compare/@ausbom/in-page-anchor@0.3.8...@ausbom/in-page-anchor@0.3.9) (2020-09-29)
|
|
15
|
-
|
|
16
|
-
**Note:** Version bump only for package @ausbom/in-page-anchor
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
<a name="0.3.8"></a>
|
|
23
|
-
## [0.3.8](https://github.com/AusBOM/bom-design-system/compare/@ausbom/in-page-anchor@0.3.7...@ausbom/in-page-anchor@0.3.8) (2020-02-06)
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
### Bug Fixes
|
|
27
|
-
|
|
28
|
-
* adds underline to inpage anchors, - transition to be consistent ([8ee46e9](https://github.com/AusBOM/bom-design-system/commit/8ee46e9))
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
<a name="0.3.7"></a>
|
|
35
|
-
## [0.3.7](https://github.com/AusBOM/bom-design-system/compare/@ausbom/in-page-anchor@0.3.6...@ausbom/in-page-anchor@0.3.7) (2020-02-03)
|
|
36
|
-
|
|
37
|
-
**Note:** Version bump only for package @ausbom/in-page-anchor
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
<a name="0.3.6"></a>
|
|
44
|
-
## [0.3.6](https://github.com/AusBOM/bom-design-system/compare/@ausbom/in-page-anchor@0.3.5...@ausbom/in-page-anchor@0.3.6) (2020-01-16)
|
|
45
|
-
|
|
46
|
-
**Note:** Version bump only for package @ausbom/in-page-anchor
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
<a name="0.3.5"></a>
|
|
53
|
-
## [0.3.5](https://github.com/AusBOM/bom-design-system/compare/@ausbom/in-page-anchor@0.3.4...@ausbom/in-page-anchor@0.3.5) (2019-12-16)
|
|
54
|
-
|
|
55
|
-
**Note:** Version bump only for package @ausbom/in-page-anchor
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
<a name="0.3.4"></a>
|
|
62
|
-
## [0.3.4](https://github.com/AusBOM/bom-design-system/compare/@ausbom/in-page-anchor@0.3.3...@ausbom/in-page-anchor@0.3.4) (2019-12-05)
|
|
63
|
-
|
|
64
|
-
**Note:** Version bump only for package @ausbom/in-page-anchor
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
<a name="0.3.3"></a>
|
|
71
|
-
## [0.3.3](https://github.com/AusBOM/bom-design-system/compare/@ausbom/in-page-anchor@0.3.2...@ausbom/in-page-anchor@0.3.3) (2019-11-14)
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
### Bug Fixes
|
|
75
|
-
|
|
76
|
-
* fixes invalid markup and removes 'as' prop from anchor list ([ed00755](https://github.com/AusBOM/bom-design-system/commit/ed00755))
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
<a name="0.3.2"></a>
|
|
83
|
-
## [0.3.2](https://github.com/AusBOM/bom-design-system/compare/@ausbom/in-page-anchor@0.3.1...@ausbom/in-page-anchor@0.3.2) (2019-10-31)
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
### Bug Fixes
|
|
87
|
-
|
|
88
|
-
* add displayName prop to remaining components to render JSX names ([e75f520](https://github.com/AusBOM/bom-design-system/commit/e75f520))
|
|
89
|
-
* align docs to only include 'Demo' and 'API Docs' Tabs ([7a21dc3](https://github.com/AusBOM/bom-design-system/commit/7a21dc3))
|
|
90
|
-
* revert export method, add displayName to components, add ref tests ([af00edc](https://github.com/AusBOM/bom-design-system/commit/af00edc))
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
<a name="0.3.1"></a>
|
|
97
|
-
## [0.3.1](https://github.com/AusBOM/bom-design-system/compare/@ausbom/in-page-anchor@0.3.0...@ausbom/in-page-anchor@0.3.1) (2019-10-29)
|
|
98
|
-
|
|
99
|
-
**Note:** Version bump only for package @ausbom/in-page-anchor
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
<a name="0.3.0"></a>
|
|
106
|
-
# [0.3.0](https://github.com/AusBOM/bom-design-system/compare/@ausbom/in-page-anchor@0.2.1...@ausbom/in-page-anchor@0.3.0) (2019-10-28)
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
### Bug Fixes
|
|
110
|
-
|
|
111
|
-
* linter issues ([86c2a83](https://github.com/AusBOM/bom-design-system/commit/86c2a83))
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
### Features
|
|
115
|
-
|
|
116
|
-
* add focus states to in-page-anchor items ([6b192ca](https://github.com/AusBOM/bom-design-system/commit/6b192ca))
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
<a name="0.2.1"></a>
|
|
123
|
-
## [0.2.1](https://github.com/AusBOM/bom-design-system/compare/@ausbom/in-page-anchor@0.2.0...@ausbom/in-page-anchor@0.2.1) (2019-10-28)
|
|
124
|
-
|
|
125
|
-
**Note:** Version bump only for package @ausbom/in-page-anchor
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
<a name="0.2.0"></a>
|
|
132
|
-
# [0.2.0](https://github.com/AusBOM/bom-design-system/compare/@ausbom/in-page-anchor@0.1.1...@ausbom/in-page-anchor@0.2.0) (2019-10-22)
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
### Features
|
|
136
|
-
|
|
137
|
-
* adds in page anchors to template ([44e6a5b](https://github.com/AusBOM/bom-design-system/commit/44e6a5b))
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
<a name="0.1.1"></a>
|
|
144
|
-
## [0.1.1](https://github.com/AusBOM/bom-design-system/compare/@ausbom/in-page-anchor@0.1.0...@ausbom/in-page-anchor@0.1.1) (2019-10-22)
|
|
145
|
-
|
|
146
|
-
**Note:** Version bump only for package @ausbom/in-page-anchor
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
<a name="0.1.0"></a>
|
|
153
|
-
# 0.1.0 (2019-10-21)
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
### Bug Fixes
|
|
157
|
-
|
|
158
|
-
* change export method ([1a761f5](https://github.com/AusBOM/bom-design-system/commit/1a761f5))
|
|
159
|
-
* fixes in-page-anchor build ([05dac86](https://github.com/AusBOM/bom-design-system/commit/05dac86))
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
### Features
|
|
163
|
-
|
|
164
|
-
* add new component inPageAnchor list ([4a89451](https://github.com/AusBOM/bom-design-system/commit/4a89451))
|
|
165
|
-
* finished styling, wrote docs & all tests, check a11y & lint rules ([ef60a74](https://github.com/AusBOM/bom-design-system/commit/ef60a74))
|