@ausbom/accordion 0.6.4 → 0.6.7
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.
|
@@ -1 +1,2 @@
|
|
|
1
|
-
"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports["default"]=void 0;var _extends2=_interopRequireDefault(require("@babel/runtime/helpers/extends"));var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));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 _body=_interopRequireDefault(require("@ausbom/body"));var _classnames=_interopRequireDefault(require("classnames"));var _react=_interopRequireDefault(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 AccordionPanel=/*#__PURE__*/function(_React$PureComponent){(0,_inherits2["default"])(AccordionPanel,_React$PureComponent);var _super=_createSuper(AccordionPanel);function AccordionPanel(){(0,_classCallCheck2["default"])(this,AccordionPanel);return _super.apply(this,arguments)}(0,_createClass2["default"])(AccordionPanel,[{key:"render",value:function render(){var _ref=this.props,children=_ref.children,className=_ref.className,isOpen=_ref.isOpen,dark=_ref.dark,innerRef=_ref.innerRef,Wrapper=_ref.wrapper,rest=(0,_objectWithoutProperties2["default"])(_ref,["children","className","isOpen","dark","innerRef","wrapper"]);var classes=(0,_classnames["default"])(className,"bom-accordion-panel",{"bom-accordion-panel--open":isOpen,"bom-accordion-panel--dark":dark});
|
|
1
|
+
"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports["default"]=void 0;var _extends2=_interopRequireDefault(require("@babel/runtime/helpers/extends"));var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));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 _body=_interopRequireDefault(require("@ausbom/body"));var _classnames=_interopRequireDefault(require("classnames"));var _react=_interopRequireDefault(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 AccordionPanel=/*#__PURE__*/function(_React$PureComponent){(0,_inherits2["default"])(AccordionPanel,_React$PureComponent);var _super=_createSuper(AccordionPanel);function AccordionPanel(){(0,_classCallCheck2["default"])(this,AccordionPanel);return _super.apply(this,arguments)}(0,_createClass2["default"])(AccordionPanel,[{key:"render",value:function render(){var _ref=this.props,children=_ref.children,className=_ref.className,isOpen=_ref.isOpen,dark=_ref.dark,innerRef=_ref.innerRef,Wrapper=_ref.wrapper,rest=(0,_objectWithoutProperties2["default"])(_ref,["children","className","isOpen","dark","innerRef","wrapper"]);var classes=(0,_classnames["default"])(className,"bom-accordion-panel",{"bom-accordion-panel--open":isOpen,"bom-accordion-panel--dark":dark});var wrapperProps={};// Only add the dark prop if the Wrapper its the @ausbom/body component
|
|
2
|
+
if(Wrapper.displayName==="Body"){wrapperProps={dark:dark}}return/*#__PURE__*/_react["default"].createElement("div",(0,_extends2["default"])({ref:innerRef,className:classes},rest),/*#__PURE__*/_react["default"].createElement(Wrapper,wrapperProps,children))}}]);return AccordionPanel}(_react["default"].PureComponent);(0,_defineProperty2["default"])(AccordionPanel,"defaultProps",{dark:false,wrapper:_body["default"]});var AccordionPanelWithRef=/*#__PURE__*/_react["default"].forwardRef(function(props,ref){return/*#__PURE__*/_react["default"].createElement(AccordionPanel,(0,_extends2["default"])({innerRef:ref},props))});AccordionPanelWithRef.displayName="AccordionPanel";var _default=AccordionPanelWithRef;exports["default"]=_default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ausbom/accordion",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.7",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "",
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
"react": ">= 16.3.x"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@ausbom/body": "^0.3.
|
|
41
|
-
"@ausbom/icon": "^0.
|
|
42
|
-
"@ausbom/styles": "^0.
|
|
40
|
+
"@ausbom/body": "^0.3.1",
|
|
41
|
+
"@ausbom/icon": "^0.16.0",
|
|
42
|
+
"@ausbom/styles": "^0.9.2"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "2fd9ca72166e3172e7957a3c3ac942e05fb1dde2"
|
|
45
45
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,290 +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.6.4](https://github.com/AusBOM/bom-design-system/compare/@ausbom/accordion@0.6.3...@ausbom/accordion@0.6.4) (2021-05-20)
|
|
7
|
-
|
|
8
|
-
**Note:** Version bump only for package @ausbom/accordion
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
## [0.6.3](https://github.com/AusBOM/bom-design-system/compare/@ausbom/accordion@0.6.2...@ausbom/accordion@0.6.3) (2021-05-18)
|
|
15
|
-
|
|
16
|
-
**Note:** Version bump only for package @ausbom/accordion
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
## [0.6.2](https://github.com/AusBOM/bom-design-system/compare/@ausbom/accordion@0.6.1...@ausbom/accordion@0.6.2) (2021-05-17)
|
|
23
|
-
|
|
24
|
-
**Note:** Version bump only for package @ausbom/accordion
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
## [0.6.1](https://github.com/AusBOM/bom-design-system/compare/@ausbom/accordion@0.6.0...@ausbom/accordion@0.6.1) (2021-04-16)
|
|
31
|
-
|
|
32
|
-
**Note:** Version bump only for package @ausbom/accordion
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
# [0.6.0](https://github.com/AusBOM/bom-design-system/compare/@ausbom/accordion@0.5.3...@ausbom/accordion@0.6.0) (2021-03-10)
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
### Features
|
|
42
|
-
|
|
43
|
-
* can now wrap the content of the Accordion with other HTML/React components ([d249d09](https://github.com/AusBOM/bom-design-system/commit/d249d09a7b4cab9c9b2be56ea4600c93bbc9d75e))
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
## [0.5.3](https://github.com/AusBOM/bom-design-system/compare/@ausbom/accordion@0.5.2...@ausbom/accordion@0.5.3) (2021-02-24)
|
|
50
|
-
|
|
51
|
-
**Note:** Version bump only for package @ausbom/accordion
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
## [0.5.2](https://github.com/AusBOM/bom-design-system/compare/@ausbom/accordion@0.5.1...@ausbom/accordion@0.5.2) (2020-11-27)
|
|
58
|
-
|
|
59
|
-
**Note:** Version bump only for package @ausbom/accordion
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
## [0.5.1](https://github.com/AusBOM/bom-design-system/compare/@ausbom/accordion@0.5.0...@ausbom/accordion@0.5.1) (2020-09-29)
|
|
66
|
-
|
|
67
|
-
**Note:** Version bump only for package @ausbom/accordion
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
# [0.5.0](https://github.com/AusBOM/bom-design-system/compare/@ausbom/accordion@0.4.14...@ausbom/accordion@0.5.0) (2020-09-14)
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
### Features
|
|
77
|
-
|
|
78
|
-
* added new optional prop subtitle to accordion item ([8b3f735](https://github.com/AusBOM/bom-design-system/commit/8b3f73543b3d2d718174b906ce5786b3bd9f8e4a))
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
## [0.4.14](https://github.com/AusBOM/bom-design-system/compare/@ausbom/accordion@0.4.13...@ausbom/accordion@0.4.14) (2020-09-09)
|
|
85
|
-
|
|
86
|
-
**Note:** Version bump only for package @ausbom/accordion
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
## [0.4.13](https://github.com/AusBOM/bom-design-system/compare/@ausbom/accordion@0.4.12...@ausbom/accordion@0.4.13) (2020-08-12)
|
|
93
|
-
|
|
94
|
-
**Note:** Version bump only for package @ausbom/accordion
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
<a name="0.4.12"></a>
|
|
101
|
-
## [0.4.12](https://github.com/AusBOM/bom-design-system/compare/@ausbom/accordion@0.4.11...@ausbom/accordion@0.4.12) (2020-06-26)
|
|
102
|
-
|
|
103
|
-
**Note:** Version bump only for package @ausbom/accordion
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
<a name="0.4.11"></a>
|
|
110
|
-
## [0.4.11](https://github.com/AusBOM/bom-design-system/compare/@ausbom/accordion@0.4.10...@ausbom/accordion@0.4.11) (2020-04-14)
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
### Bug Fixes
|
|
114
|
-
|
|
115
|
-
* text size and spacing adjusted for mobile breakpoint ([#296](https://github.com/AusBOM/bom-design-system/issues/296)) ([c2c0e79](https://github.com/AusBOM/bom-design-system/commit/c2c0e79))
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
<a name="0.4.10"></a>
|
|
122
|
-
## [0.4.10](https://github.com/AusBOM/bom-design-system/compare/@ausbom/accordion@0.4.9...@ausbom/accordion@0.4.10) (2020-03-31)
|
|
123
|
-
|
|
124
|
-
**Note:** Version bump only for package @ausbom/accordion
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
<a name="0.4.9"></a>
|
|
131
|
-
## [0.4.9](https://github.com/AusBOM/bom-design-system/compare/@ausbom/accordion@0.4.8...@ausbom/accordion@0.4.9) (2020-03-26)
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
### Bug Fixes
|
|
135
|
-
|
|
136
|
-
* **accordion:** added a bottom border to the accordion component ([45876c8](https://github.com/AusBOM/bom-design-system/commit/45876c8))
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
<a name="0.4.8"></a>
|
|
143
|
-
## [0.4.8](https://github.com/AusBOM/bom-design-system/compare/@ausbom/accordion@0.4.7...@ausbom/accordion@0.4.8) (2020-03-17)
|
|
144
|
-
|
|
145
|
-
**Note:** Version bump only for package @ausbom/accordion
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
<a name="0.4.7"></a>
|
|
152
|
-
## [0.4.7](https://github.com/AusBOM/bom-design-system/compare/@ausbom/accordion@0.4.6...@ausbom/accordion@0.4.7) (2020-03-13)
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
### Bug Fixes
|
|
156
|
-
|
|
157
|
-
* a11y [#45](https://github.com/AusBOM/bom-design-system/issues/45) fix text align for accordion in IE11 ([89e1593](https://github.com/AusBOM/bom-design-system/commit/89e1593))
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
<a name="0.4.6"></a>
|
|
164
|
-
## [0.4.6](https://github.com/AusBOM/bom-design-system/compare/@ausbom/accordion@0.4.5...@ausbom/accordion@0.4.6) (2020-03-13)
|
|
165
|
-
|
|
166
|
-
**Note:** Version bump only for package @ausbom/accordion
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
<a name="0.4.5"></a>
|
|
173
|
-
## [0.4.5](https://github.com/AusBOM/bom-design-system/compare/@ausbom/accordion@0.4.4...@ausbom/accordion@0.4.5) (2020-02-07)
|
|
174
|
-
|
|
175
|
-
**Note:** Version bump only for package @ausbom/accordion
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
<a name="0.4.4"></a>
|
|
182
|
-
## [0.4.4](https://github.com/AusBOM/bom-design-system/compare/@ausbom/accordion@0.4.3...@ausbom/accordion@0.4.4) (2020-02-06)
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
### Bug Fixes
|
|
186
|
-
|
|
187
|
-
* a11y[#5](https://github.com/AusBOM/bom-design-system/issues/5) add focusable false toicons,add ariahidden to decorative svg ([4321224](https://github.com/AusBOM/bom-design-system/commit/4321224))
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
<a name="0.4.3"></a>
|
|
194
|
-
## [0.4.3](https://github.com/AusBOM/bom-design-system/compare/@ausbom/accordion@0.4.2...@ausbom/accordion@0.4.3) (2020-02-03)
|
|
195
|
-
|
|
196
|
-
**Note:** Version bump only for package @ausbom/accordion
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
<a name="0.4.2"></a>
|
|
203
|
-
## [0.4.2](https://github.com/AusBOM/bom-design-system/compare/@ausbom/accordion@0.4.1...@ausbom/accordion@0.4.2) (2020-01-16)
|
|
204
|
-
|
|
205
|
-
**Note:** Version bump only for package @ausbom/accordion
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
<a name="0.4.1"></a>
|
|
212
|
-
## [0.4.1](https://github.com/AusBOM/bom-design-system/compare/@ausbom/accordion@0.4.0...@ausbom/accordion@0.4.1) (2019-12-20)
|
|
213
|
-
|
|
214
|
-
**Note:** Version bump only for package @ausbom/accordion
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
<a name="0.4.0"></a>
|
|
221
|
-
# [0.4.0](https://github.com/AusBOM/bom-design-system/compare/@ausbom/accordion@0.3.1...@ausbom/accordion@0.4.0) (2019-12-16)
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
### Bug Fixes
|
|
225
|
-
|
|
226
|
-
* reverts bad merge ([ebbde06](https://github.com/AusBOM/bom-design-system/commit/ebbde06))
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
### Features
|
|
230
|
-
|
|
231
|
-
* changes based on design feedback ([288bd2b](https://github.com/AusBOM/bom-design-system/commit/288bd2b))
|
|
232
|
-
* refactors location template ([843845c](https://github.com/AusBOM/bom-design-system/commit/843845c))
|
|
233
|
-
* second pass at location template ([73efa52](https://github.com/AusBOM/bom-design-system/commit/73efa52))
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
<a name="0.3.1"></a>
|
|
240
|
-
## [0.3.1](https://github.com/AusBOM/bom-design-system/compare/@ausbom/accordion@0.3.0...@ausbom/accordion@0.3.1) (2019-12-13)
|
|
241
|
-
|
|
242
|
-
**Note:** Version bump only for package @ausbom/accordion
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
<a name="0.3.0"></a>
|
|
249
|
-
# [0.3.0](https://github.com/AusBOM/bom-design-system/compare/@ausbom/accordion@0.2.1...@ausbom/accordion@0.3.0) (2019-12-10)
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
### Features
|
|
253
|
-
|
|
254
|
-
* adds dark styles and tests to accordion ([d7fe49a](https://github.com/AusBOM/bom-design-system/commit/d7fe49a))
|
|
255
|
-
* commits accordion updates from template branch ([cf30486](https://github.com/AusBOM/bom-design-system/commit/cf30486))
|
|
256
|
-
* makes accordion package public ([f291006](https://github.com/AusBOM/bom-design-system/commit/f291006))
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
<a name="0.2.1"></a>
|
|
263
|
-
## [0.2.1](https://github.com/AusBOM/bom-design-system/compare/@ausbom/accordion@0.2.0...@ausbom/accordion@0.2.1) (2019-12-05)
|
|
264
|
-
|
|
265
|
-
**Note:** Version bump only for package @ausbom/accordion
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
<a name="0.2.0"></a>
|
|
272
|
-
# [0.2.0](https://github.com/AusBOM/bom-design-system/compare/@ausbom/accordion@0.1.0...@ausbom/accordion@0.2.0) (2019-12-04)
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
### Features
|
|
276
|
-
|
|
277
|
-
* **accordion:** can now keep track of each accordionItem state ([24e2541](https://github.com/AusBOM/bom-design-system/commit/24e2541))
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
<a name="0.1.0"></a>
|
|
284
|
-
# 0.1.0 (2019-11-28)
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
### Features
|
|
288
|
-
|
|
289
|
-
* new accordion component ([e8219ea](https://github.com/AusBOM/bom-design-system/commit/e8219ea))
|
|
290
|
-
* new accordion component ([ac0841a](https://github.com/AusBOM/bom-design-system/commit/ac0841a))
|