blue-react 11.0.3 → 11.0.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/LICENSE CHANGED
@@ -1,165 +1,165 @@
1
- GNU LESSER GENERAL PUBLIC LICENSE
2
- Version 3, 29 June 2007
3
-
4
- Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
5
- Everyone is permitted to copy and distribute verbatim copies
6
- of this license document, but changing it is not allowed.
7
-
8
-
9
- This version of the GNU Lesser General Public License incorporates
10
- the terms and conditions of version 3 of the GNU General Public
11
- License, supplemented by the additional permissions listed below.
12
-
13
- 0. Additional Definitions.
14
-
15
- As used herein, "this License" refers to version 3 of the GNU Lesser
16
- General Public License, and the "GNU GPL" refers to version 3 of the GNU
17
- General Public License.
18
-
19
- "The Library" refers to a covered work governed by this License,
20
- other than an Application or a Combined Work as defined below.
21
-
22
- An "Application" is any work that makes use of an interface provided
23
- by the Library, but which is not otherwise based on the Library.
24
- Defining a subclass of a class defined by the Library is deemed a mode
25
- of using an interface provided by the Library.
26
-
27
- A "Combined Work" is a work produced by combining or linking an
28
- Application with the Library. The particular version of the Library
29
- with which the Combined Work was made is also called the "Linked
30
- Version".
31
-
32
- The "Minimal Corresponding Source" for a Combined Work means the
33
- Corresponding Source for the Combined Work, excluding any source code
34
- for portions of the Combined Work that, considered in isolation, are
35
- based on the Application, and not on the Linked Version.
36
-
37
- The "Corresponding Application Code" for a Combined Work means the
38
- object code and/or source code for the Application, including any data
39
- and utility programs needed for reproducing the Combined Work from the
40
- Application, but excluding the System Libraries of the Combined Work.
41
-
42
- 1. Exception to Section 3 of the GNU GPL.
43
-
44
- You may convey a covered work under sections 3 and 4 of this License
45
- without being bound by section 3 of the GNU GPL.
46
-
47
- 2. Conveying Modified Versions.
48
-
49
- If you modify a copy of the Library, and, in your modifications, a
50
- facility refers to a function or data to be supplied by an Application
51
- that uses the facility (other than as an argument passed when the
52
- facility is invoked), then you may convey a copy of the modified
53
- version:
54
-
55
- a) under this License, provided that you make a good faith effort to
56
- ensure that, in the event an Application does not supply the
57
- function or data, the facility still operates, and performs
58
- whatever part of its purpose remains meaningful, or
59
-
60
- b) under the GNU GPL, with none of the additional permissions of
61
- this License applicable to that copy.
62
-
63
- 3. Object Code Incorporating Material from Library Header Files.
64
-
65
- The object code form of an Application may incorporate material from
66
- a header file that is part of the Library. You may convey such object
67
- code under terms of your choice, provided that, if the incorporated
68
- material is not limited to numerical parameters, data structure
69
- layouts and accessors, or small macros, inline functions and templates
70
- (ten or fewer lines in length), you do both of the following:
71
-
72
- a) Give prominent notice with each copy of the object code that the
73
- Library is used in it and that the Library and its use are
74
- covered by this License.
75
-
76
- b) Accompany the object code with a copy of the GNU GPL and this license
77
- document.
78
-
79
- 4. Combined Works.
80
-
81
- You may convey a Combined Work under terms of your choice that,
82
- taken together, effectively do not restrict modification of the
83
- portions of the Library contained in the Combined Work and reverse
84
- engineering for debugging such modifications, if you also do each of
85
- the following:
86
-
87
- a) Give prominent notice with each copy of the Combined Work that
88
- the Library is used in it and that the Library and its use are
89
- covered by this License.
90
-
91
- b) Accompany the Combined Work with a copy of the GNU GPL and this license
92
- document.
93
-
94
- c) For a Combined Work that displays copyright notices during
95
- execution, include the copyright notice for the Library among
96
- these notices, as well as a reference directing the user to the
97
- copies of the GNU GPL and this license document.
98
-
99
- d) Do one of the following:
100
-
101
- 0) Convey the Minimal Corresponding Source under the terms of this
102
- License, and the Corresponding Application Code in a form
103
- suitable for, and under terms that permit, the user to
104
- recombine or relink the Application with a modified version of
105
- the Linked Version to produce a modified Combined Work, in the
106
- manner specified by section 6 of the GNU GPL for conveying
107
- Corresponding Source.
108
-
109
- 1) Use a suitable shared library mechanism for linking with the
110
- Library. A suitable mechanism is one that (a) uses at run time
111
- a copy of the Library already present on the user's computer
112
- system, and (b) will operate properly with a modified version
113
- of the Library that is interface-compatible with the Linked
114
- Version.
115
-
116
- e) Provide Installation Information, but only if you would otherwise
117
- be required to provide such information under section 6 of the
118
- GNU GPL, and only to the extent that such information is
119
- necessary to install and execute a modified version of the
120
- Combined Work produced by recombining or relinking the
121
- Application with a modified version of the Linked Version. (If
122
- you use option 4d0, the Installation Information must accompany
123
- the Minimal Corresponding Source and Corresponding Application
124
- Code. If you use option 4d1, you must provide the Installation
125
- Information in the manner specified by section 6 of the GNU GPL
126
- for conveying Corresponding Source.)
127
-
128
- 5. Combined Libraries.
129
-
130
- You may place library facilities that are a work based on the
131
- Library side by side in a single library together with other library
132
- facilities that are not Applications and are not covered by this
133
- License, and convey such a combined library under terms of your
134
- choice, if you do both of the following:
135
-
136
- a) Accompany the combined library with a copy of the same work based
137
- on the Library, uncombined with any other library facilities,
138
- conveyed under the terms of this License.
139
-
140
- b) Give prominent notice with the combined library that part of it
141
- is a work based on the Library, and explaining where to find the
142
- accompanying uncombined form of the same work.
143
-
144
- 6. Revised Versions of the GNU Lesser General Public License.
145
-
146
- The Free Software Foundation may publish revised and/or new versions
147
- of the GNU Lesser General Public License from time to time. Such new
148
- versions will be similar in spirit to the present version, but may
149
- differ in detail to address new problems or concerns.
150
-
151
- Each version is given a distinguishing version number. If the
152
- Library as you received it specifies that a certain numbered version
153
- of the GNU Lesser General Public License "or any later version"
154
- applies to it, you have the option of following the terms and
155
- conditions either of that published version or of any later version
156
- published by the Free Software Foundation. If the Library as you
157
- received it does not specify a version number of the GNU Lesser
158
- General Public License, you may choose any version of the GNU Lesser
159
- General Public License ever published by the Free Software Foundation.
160
-
161
- If the Library as you received it specifies that a proxy can decide
162
- whether future versions of the GNU Lesser General Public License shall
163
- apply, that proxy's public statement of acceptance of any version is
164
- permanent authorization for you to choose that version for the
1
+ GNU LESSER GENERAL PUBLIC LICENSE
2
+ Version 3, 29 June 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+
9
+ This version of the GNU Lesser General Public License incorporates
10
+ the terms and conditions of version 3 of the GNU General Public
11
+ License, supplemented by the additional permissions listed below.
12
+
13
+ 0. Additional Definitions.
14
+
15
+ As used herein, "this License" refers to version 3 of the GNU Lesser
16
+ General Public License, and the "GNU GPL" refers to version 3 of the GNU
17
+ General Public License.
18
+
19
+ "The Library" refers to a covered work governed by this License,
20
+ other than an Application or a Combined Work as defined below.
21
+
22
+ An "Application" is any work that makes use of an interface provided
23
+ by the Library, but which is not otherwise based on the Library.
24
+ Defining a subclass of a class defined by the Library is deemed a mode
25
+ of using an interface provided by the Library.
26
+
27
+ A "Combined Work" is a work produced by combining or linking an
28
+ Application with the Library. The particular version of the Library
29
+ with which the Combined Work was made is also called the "Linked
30
+ Version".
31
+
32
+ The "Minimal Corresponding Source" for a Combined Work means the
33
+ Corresponding Source for the Combined Work, excluding any source code
34
+ for portions of the Combined Work that, considered in isolation, are
35
+ based on the Application, and not on the Linked Version.
36
+
37
+ The "Corresponding Application Code" for a Combined Work means the
38
+ object code and/or source code for the Application, including any data
39
+ and utility programs needed for reproducing the Combined Work from the
40
+ Application, but excluding the System Libraries of the Combined Work.
41
+
42
+ 1. Exception to Section 3 of the GNU GPL.
43
+
44
+ You may convey a covered work under sections 3 and 4 of this License
45
+ without being bound by section 3 of the GNU GPL.
46
+
47
+ 2. Conveying Modified Versions.
48
+
49
+ If you modify a copy of the Library, and, in your modifications, a
50
+ facility refers to a function or data to be supplied by an Application
51
+ that uses the facility (other than as an argument passed when the
52
+ facility is invoked), then you may convey a copy of the modified
53
+ version:
54
+
55
+ a) under this License, provided that you make a good faith effort to
56
+ ensure that, in the event an Application does not supply the
57
+ function or data, the facility still operates, and performs
58
+ whatever part of its purpose remains meaningful, or
59
+
60
+ b) under the GNU GPL, with none of the additional permissions of
61
+ this License applicable to that copy.
62
+
63
+ 3. Object Code Incorporating Material from Library Header Files.
64
+
65
+ The object code form of an Application may incorporate material from
66
+ a header file that is part of the Library. You may convey such object
67
+ code under terms of your choice, provided that, if the incorporated
68
+ material is not limited to numerical parameters, data structure
69
+ layouts and accessors, or small macros, inline functions and templates
70
+ (ten or fewer lines in length), you do both of the following:
71
+
72
+ a) Give prominent notice with each copy of the object code that the
73
+ Library is used in it and that the Library and its use are
74
+ covered by this License.
75
+
76
+ b) Accompany the object code with a copy of the GNU GPL and this license
77
+ document.
78
+
79
+ 4. Combined Works.
80
+
81
+ You may convey a Combined Work under terms of your choice that,
82
+ taken together, effectively do not restrict modification of the
83
+ portions of the Library contained in the Combined Work and reverse
84
+ engineering for debugging such modifications, if you also do each of
85
+ the following:
86
+
87
+ a) Give prominent notice with each copy of the Combined Work that
88
+ the Library is used in it and that the Library and its use are
89
+ covered by this License.
90
+
91
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
92
+ document.
93
+
94
+ c) For a Combined Work that displays copyright notices during
95
+ execution, include the copyright notice for the Library among
96
+ these notices, as well as a reference directing the user to the
97
+ copies of the GNU GPL and this license document.
98
+
99
+ d) Do one of the following:
100
+
101
+ 0) Convey the Minimal Corresponding Source under the terms of this
102
+ License, and the Corresponding Application Code in a form
103
+ suitable for, and under terms that permit, the user to
104
+ recombine or relink the Application with a modified version of
105
+ the Linked Version to produce a modified Combined Work, in the
106
+ manner specified by section 6 of the GNU GPL for conveying
107
+ Corresponding Source.
108
+
109
+ 1) Use a suitable shared library mechanism for linking with the
110
+ Library. A suitable mechanism is one that (a) uses at run time
111
+ a copy of the Library already present on the user's computer
112
+ system, and (b) will operate properly with a modified version
113
+ of the Library that is interface-compatible with the Linked
114
+ Version.
115
+
116
+ e) Provide Installation Information, but only if you would otherwise
117
+ be required to provide such information under section 6 of the
118
+ GNU GPL, and only to the extent that such information is
119
+ necessary to install and execute a modified version of the
120
+ Combined Work produced by recombining or relinking the
121
+ Application with a modified version of the Linked Version. (If
122
+ you use option 4d0, the Installation Information must accompany
123
+ the Minimal Corresponding Source and Corresponding Application
124
+ Code. If you use option 4d1, you must provide the Installation
125
+ Information in the manner specified by section 6 of the GNU GPL
126
+ for conveying Corresponding Source.)
127
+
128
+ 5. Combined Libraries.
129
+
130
+ You may place library facilities that are a work based on the
131
+ Library side by side in a single library together with other library
132
+ facilities that are not Applications and are not covered by this
133
+ License, and convey such a combined library under terms of your
134
+ choice, if you do both of the following:
135
+
136
+ a) Accompany the combined library with a copy of the same work based
137
+ on the Library, uncombined with any other library facilities,
138
+ conveyed under the terms of this License.
139
+
140
+ b) Give prominent notice with the combined library that part of it
141
+ is a work based on the Library, and explaining where to find the
142
+ accompanying uncombined form of the same work.
143
+
144
+ 6. Revised Versions of the GNU Lesser General Public License.
145
+
146
+ The Free Software Foundation may publish revised and/or new versions
147
+ of the GNU Lesser General Public License from time to time. Such new
148
+ versions will be similar in spirit to the present version, but may
149
+ differ in detail to address new problems or concerns.
150
+
151
+ Each version is given a distinguishing version number. If the
152
+ Library as you received it specifies that a certain numbered version
153
+ of the GNU Lesser General Public License "or any later version"
154
+ applies to it, you have the option of following the terms and
155
+ conditions either of that published version or of any later version
156
+ published by the Free Software Foundation. If the Library as you
157
+ received it does not specify a version number of the GNU Lesser
158
+ General Public License, you may choose any version of the GNU Lesser
159
+ General Public License ever published by the Free Software Foundation.
160
+
161
+ If the Library as you received it specifies that a proxy can decide
162
+ whether future versions of the GNU Lesser General Public License shall
163
+ apply, that proxy's public statement of acceptance of any version is
164
+ permanent authorization for you to choose that version for the
165
165
  Library.
package/README.md CHANGED
@@ -1,85 +1,85 @@
1
- <p align="center">
2
- <img src="https://raw.githubusercontent.com/bruegmann/blue-react/master/public/blue-readme-cover.png" alt="React component library based on Bootstrap">
3
- </p>
4
-
5
- # Blue React
6
-
7
- [![npm version](https://img.shields.io/npm/v/blue-react)](https://www.npmjs.com/package/blue-react)
8
-
9
- [Checkout the docs](https://bruegmann.github.io/blue-react) to find out how to
10
- use Blue React.
11
-
12
- ## Breaking changes between v10 and v11
13
-
14
- ### Fundamental changes in `MenuItem`
15
-
16
- - Removed props
17
- - onClickAttached
18
- - iconClassName
19
- - labelClassName
20
- - caretClassName
21
- - caretStyle
22
- - isHome
23
- - dropdownClassName
24
- - dropdownStyle
25
- - showDropdown
26
- - onShowDropdown
27
- - supportOutside
28
- - outsideIgnoreClasses
29
- - Renamed
30
- - iconForActive -> iconForCurrent
31
- - isActive -> current
32
- - highlighted -> active
33
- - Changed behviour. Menu item no longer has built in styling if `draggable`. But since Menu item extends HTML Button or A element, props `draggable`, `onDragStart` etc. should still work.
34
- - Added
35
- - sm
36
- - lg
37
- - iconBefore
38
- - iconAfter
39
- - labelHidden
40
- - busy
41
- - success
42
- - defaultDisplay
43
- - buttonContent
44
- - as
45
-
46
- The previous Menu Item with the older API is still available as `LegacyMenuItem`, but will be removed in a future release. Because of styling changes in Blue Web, it might not behave the same.
47
-
48
- ### Removed deprecated components
49
-
50
- - Body
51
- - Page
52
- - SidebarToggler
53
-
54
- ## Developing
55
-
56
- This project is built with [CRA](https://create-react-app.dev/). To start
57
- developing, just and install everything with `npm i` and run:
58
-
59
- ```
60
- npm start
61
- ```
62
-
63
- ## Create a new release
64
-
65
- This is how to manually create a release:\
66
- By running
67
-
68
- ```
69
- npm publish
70
- ```
71
-
72
- the missing files in `./dist` will be created, the docs will be generated and
73
- the NPM package will be released.
74
-
75
- To publish changes on the documentary, run:
76
-
77
- ```
78
- npm run deploy
79
- ```
80
-
81
- To run both of them:
82
-
83
- ```
84
- npm run release
85
- ```
1
+ <p align="center">
2
+ <img src="https://raw.githubusercontent.com/bruegmann/blue-react/master/public/blue-readme-cover.png" alt="React component library based on Bootstrap">
3
+ </p>
4
+
5
+ # Blue React
6
+
7
+ [![npm version](https://img.shields.io/npm/v/blue-react)](https://www.npmjs.com/package/blue-react)
8
+
9
+ [Checkout the docs](https://bruegmann.github.io/blue-react) to find out how to
10
+ use Blue React.
11
+
12
+ ## Breaking changes between v10 and v11
13
+
14
+ ### Fundamental changes in `MenuItem`
15
+
16
+ - Removed props
17
+ - onClickAttached
18
+ - iconClassName
19
+ - labelClassName
20
+ - caretClassName
21
+ - caretStyle
22
+ - isHome
23
+ - dropdownClassName
24
+ - dropdownStyle
25
+ - showDropdown
26
+ - onShowDropdown
27
+ - supportOutside
28
+ - outsideIgnoreClasses
29
+ - Renamed
30
+ - iconForActive -> iconForCurrent
31
+ - isActive -> current
32
+ - highlighted -> active
33
+ - Changed behviour. Menu item no longer has built in styling if `draggable`. But since Menu item extends HTML Button or A element, props `draggable`, `onDragStart` etc. should still work.
34
+ - Added
35
+ - sm
36
+ - lg
37
+ - iconBefore
38
+ - iconAfter
39
+ - labelHidden
40
+ - busy
41
+ - success
42
+ - defaultDisplay
43
+ - buttonContent
44
+ - as
45
+
46
+ The previous Menu Item with the older API is still available as `LegacyMenuItem`, but will be removed in a future release. Because of styling changes in Blue Web, it might not behave the same.
47
+
48
+ ### Removed deprecated components
49
+
50
+ - Body
51
+ - Page
52
+ - SidebarToggler
53
+
54
+ ## Developing
55
+
56
+ This project is built with [CRA](https://create-react-app.dev/). To start
57
+ developing, just and install everything with `npm i` and run:
58
+
59
+ ```
60
+ npm start
61
+ ```
62
+
63
+ ## Create a new release
64
+
65
+ This is how to manually create a release:\
66
+ By running
67
+
68
+ ```
69
+ npm publish
70
+ ```
71
+
72
+ the missing files in `./dist` will be created, the docs will be generated and
73
+ the NPM package will be released.
74
+
75
+ To publish changes on the documentary, run:
76
+
77
+ ```
78
+ npm run deploy
79
+ ```
80
+
81
+ To run both of them:
82
+
83
+ ```
84
+ npm run release
85
+ ```
@@ -9,10 +9,10 @@ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i
9
9
  function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
10
10
  import React from "react";
11
11
  import { jsx as _jsx } from "react/jsx-runtime";
12
- /**
13
- * The `<a>` element automatically sets `rel="noreferrer"` for external links with `target="_blank"`.\
14
- * `A` allows all props of the `<a>` element.\
15
- * `<A href="https://example.com" target="_blank">Example</A>` ➡️ `<a href="https://example.com" target="_blank" rel="noreferrer">Example</a>`
12
+ /**
13
+ * The `<a>` element automatically sets `rel="noreferrer"` for external links with `target="_blank"`.\
14
+ * `A` allows all props of the `<a>` element.\
15
+ * `<A href="https://example.com" target="_blank">Example</A>` ➡️ `<a href="https://example.com" target="_blank" rel="noreferrer">Example</a>`
16
16
  */
17
17
  export default function A(_ref) {
18
18
  var children = _ref.children,
@@ -11,9 +11,9 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
11
  export var ActionMenuContext = /*#__PURE__*/createContext({
12
12
  breakOption: "lg"
13
13
  });
14
- /**
15
- * @deprecated Use the new `Actions` instead, which is more flexible.
16
- * The Action Menu on the top right of a page. You can place Actions here which are in context of the current page.
14
+ /**
15
+ * @deprecated Use the new `Actions` instead, which is more flexible.
16
+ * The Action Menu on the top right of a page. You can place Actions here which are in context of the current page.
17
17
  */
18
18
  export default function ActionMenu(props) {
19
19
  var hideToggleAction = props.hideToggleAction,
@@ -9,10 +9,10 @@ import { getPhrase } from "./shared.js";
9
9
  import clsx from "clsx";
10
10
  import { init } from "blue-web/dist/js/actions.js";
11
11
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
12
- /**
13
- * Combination of toolbar and a dropdown menu. Items in toolbar will only be shown if there is enough space.
14
- * Otherwise they will be visible in the dropdown menu. JavaScript detects if space is changing and rearranges.
15
- * IMPORTANT: As of right now, children you pass will be rendered twice. Once in the toolbar and once in the dropdown.
12
+ /**
13
+ * Combination of toolbar and a dropdown menu. Items in toolbar will only be shown if there is enough space.
14
+ * Otherwise they will be visible in the dropdown menu. JavaScript detects if space is changing and rearranges.
15
+ * IMPORTANT: As of right now, children you pass will be rendered twice. Once in the toolbar and once in the dropdown.
16
16
  */
17
17
  export default function Actions(_ref) {
18
18
  var children = _ref.children,
@@ -15,6 +15,9 @@ export type ButtonProps = ComponentProps<"a"> & ComponentProps<"button"> & {
15
15
  /** Button will be displayed as successful for 3 seconds. */
16
16
  success?: boolean;
17
17
  active?: boolean;
18
+ /** Button's width and height should be equal. Useful, if you want your body only to have one symbol.
19
+ * When your body only has an icon and hidden label, this will be set automatically. */
20
+ square?: boolean;
18
21
  } & {
19
22
  /**
20
23
  * For compatibility with React Router NavLink
@@ -25,4 +28,4 @@ export type ButtonProps = ComponentProps<"a"> & ComponentProps<"button"> & {
25
28
  */
26
29
  exact?: boolean;
27
30
  };
28
- export default function Button({ elementType, className, type, variant, color, sm, lg, iconBefore, iconAfter, label, labelHidden, busy: busyProp, success: successProp, active, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
31
+ export default function Button({ elementType, className, type, variant, color, sm, lg, iconBefore, iconAfter, label, labelHidden, busy: busyProp, success: successProp, active, square, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- var _excluded = ["elementType", "className", "type", "variant", "color", "sm", "lg", "iconBefore", "iconAfter", "label", "labelHidden", "busy", "success", "active"];
2
+ var _excluded = ["elementType", "className", "type", "variant", "color", "sm", "lg", "iconBefore", "iconAfter", "label", "labelHidden", "busy", "success", "active", "square"];
3
3
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
4
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
5
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
@@ -50,6 +50,7 @@ export default function Button(_ref) {
50
50
  busyProp = _ref.busy,
51
51
  successProp = _ref.success,
52
52
  active = _ref.active,
53
+ square = _ref.square,
53
54
  props = _objectWithoutProperties(_ref, _excluded);
54
55
  var Comp = elementType || (props.href ? "a" : "button");
55
56
  var _useState = useState(false),
@@ -67,7 +68,7 @@ export default function Button(_ref) {
67
68
  var variantClass = getButtonVariantClass(variant, color);
68
69
  return /*#__PURE__*/_jsx(Comp, _objectSpread(_objectSpread({
69
70
  type: Comp === "button" && type === undefined ? "button" : type,
70
- className: clsx("btn", _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, variantClass, !success), "btn-success", success), "btn-sm", sm), "btn-lg", lg), "icon-link", busyProp || iconBefore !== undefined || iconAfter !== undefined), "active", active), className)
71
+ className: clsx("btn", _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, variantClass, !success), "btn-success", success), "btn-sm", sm), "btn-lg", lg), "icon-link", busyProp || iconBefore !== undefined || iconAfter !== undefined), "active", active), "blue-btn-square", square), className)
71
72
  }, props), {}, {
72
73
  children: busyProp ? /*#__PURE__*/_jsxs(_Fragment, {
73
74
  children: [/*#__PURE__*/_jsx("span", {
@@ -6,8 +6,8 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
6
6
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
7
  import React from "react";
8
8
  import { jsx as _jsx } from "react/jsx-runtime";
9
- /**
10
- * Chevron icon component with open state.
9
+ /**
10
+ * Chevron icon component with open state.
11
11
  */
12
12
  export default function Chevron(_ref) {
13
13
  var open = _ref.open,