@digigov/react-core 0.6.2 → 0.6.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/CHANGELOG.md CHANGED
@@ -1,6 +1,28 @@
1
1
  # Change Log - @digigov/react-core
2
2
 
3
- This log was last generated on Mon, 28 Feb 2022 15:04:49 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 09 Mar 2022 13:21:47 GMT and should not be manually modified.
4
+
5
+ ## 0.6.5
6
+ Wed, 09 Mar 2022 13:21:47 GMT
7
+
8
+ ### Patches
9
+
10
+ - add `bullet` as the default List style
11
+ - Deprecate Dropdown, moved permanently to @digigov/react-extensions/admin
12
+
13
+ ## 0.6.4
14
+ Fri, 04 Mar 2022 12:15:07 GMT
15
+
16
+ ### Patches
17
+
18
+ - create Dropdown DropdownButton and DropdownContent components for dropdown menu
19
+
20
+ ## 0.6.3
21
+ Tue, 01 Mar 2022 13:33:28 GMT
22
+
23
+ ### Patches
24
+
25
+ - Fix SvgIcon className prop
4
26
 
5
27
  ## 0.6.2
6
28
  Mon, 28 Feb 2022 15:04:49 GMT
package/List/index.d.ts CHANGED
@@ -4,7 +4,7 @@ export interface ListProps extends UlElementAttributes {
4
4
  /**
5
5
  * listStyle is optional. By default, the list style is none.
6
6
  */
7
- listStyle?: 'bullet' | 'number';
7
+ listStyle?: 'bullet' | 'number' | 'none';
8
8
  /**
9
9
  * spaced is optional. Use it to add space between the list items.
10
10
  */
package/List/index.js CHANGED
@@ -22,7 +22,8 @@ var _excluded = ["listStyle", "spaced", "className", "children"];
22
22
  * This component must contain ListItem component.
23
23
  */
24
24
  var List = /*#__PURE__*/_react["default"].forwardRef(function List(_ref, ref) {
25
- var listStyle = _ref.listStyle,
25
+ var _ref$listStyle = _ref.listStyle,
26
+ listStyle = _ref$listStyle === void 0 ? 'bullet' : _ref$listStyle,
26
27
  _ref$spaced = _ref.spaced,
27
28
  spaced = _ref$spaced === void 0 ? false : _ref$spaced,
28
29
  className = _ref.className,
package/SvgIcon/index.js CHANGED
@@ -29,7 +29,7 @@ var SvgIcon = /*#__PURE__*/_react["default"].forwardRef(function SvgIcon(_ref, r
29
29
  props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
30
30
  return /*#__PURE__*/_react["default"].createElement("svg", (0, _extends2["default"])({
31
31
  ref: ref,
32
- className: (0, _clsx["default"])(variant === 'success' && 'govgr-svg-icon--success', variant === 'primary' && 'govgr-svg-icon--primary', variant === 'warning' && 'govgr-svg-icon--warning', variant === 'light' && 'govgr-svg-icon--light', variant === 'error' && 'govgr-svg-icon--error', variant === 'focus' && 'govgr-svg-icon--focus', variant === 'dark' && 'govgr-svg-icon--dark', variant === 'gray' && 'govgr-svg-icon--gray', variant === 'link' && 'govgr-svg-icon--link', size === 'xl' && 'govgr-svg-icon--xl', size === 's' && 'govgr-svg-icon--s', size === 'm' && 'govgr-svg-icon--m', size === 'l' && 'govgr-svg-icon--l', className && className, true && 'govgr-svg-icon'),
32
+ className: (0, _clsx["default"])(className, variant === 'success' && 'govgr-svg-icon--success', variant === 'primary' && 'govgr-svg-icon--primary', variant === 'warning' && 'govgr-svg-icon--warning', variant === 'light' && 'govgr-svg-icon--light', variant === 'error' && 'govgr-svg-icon--error', variant === 'focus' && 'govgr-svg-icon--focus', variant === 'dark' && 'govgr-svg-icon--dark', variant === 'gray' && 'govgr-svg-icon--gray', variant === 'link' && 'govgr-svg-icon--link', size === 'xl' && 'govgr-svg-icon--xl', size === 's' && 'govgr-svg-icon--s', size === 'm' && 'govgr-svg-icon--m', size === 'l' && 'govgr-svg-icon--l', true && 'govgr-svg-icon'),
33
33
  focusable: "false",
34
34
  viewBox: "0 0 24 24",
35
35
  "aria-hidden": "true"
package/es/List/index.js CHANGED
@@ -9,7 +9,8 @@ import clsx from 'clsx';
9
9
  * This component must contain ListItem component.
10
10
  */
11
11
  export var List = /*#__PURE__*/React.forwardRef(function List(_ref, ref) {
12
- var listStyle = _ref.listStyle,
12
+ var _ref$listStyle = _ref.listStyle,
13
+ listStyle = _ref$listStyle === void 0 ? 'bullet' : _ref$listStyle,
13
14
  _ref$spaced = _ref.spaced,
14
15
  spaced = _ref$spaced === void 0 ? false : _ref$spaced,
15
16
  className = _ref.className,
@@ -17,7 +17,7 @@ export var SvgIcon = /*#__PURE__*/React.forwardRef(function SvgIcon(_ref, ref) {
17
17
 
18
18
  return /*#__PURE__*/React.createElement("svg", _extends({
19
19
  ref: ref,
20
- className: clsx(variant === 'success' && 'govgr-svg-icon--success', variant === 'primary' && 'govgr-svg-icon--primary', variant === 'warning' && 'govgr-svg-icon--warning', variant === 'light' && 'govgr-svg-icon--light', variant === 'error' && 'govgr-svg-icon--error', variant === 'focus' && 'govgr-svg-icon--focus', variant === 'dark' && 'govgr-svg-icon--dark', variant === 'gray' && 'govgr-svg-icon--gray', variant === 'link' && 'govgr-svg-icon--link', size === 'xl' && 'govgr-svg-icon--xl', size === 's' && 'govgr-svg-icon--s', size === 'm' && 'govgr-svg-icon--m', size === 'l' && 'govgr-svg-icon--l', className && className, true && 'govgr-svg-icon'),
20
+ className: clsx(className, variant === 'success' && 'govgr-svg-icon--success', variant === 'primary' && 'govgr-svg-icon--primary', variant === 'warning' && 'govgr-svg-icon--warning', variant === 'light' && 'govgr-svg-icon--light', variant === 'error' && 'govgr-svg-icon--error', variant === 'focus' && 'govgr-svg-icon--focus', variant === 'dark' && 'govgr-svg-icon--dark', variant === 'gray' && 'govgr-svg-icon--gray', variant === 'link' && 'govgr-svg-icon--link', size === 'xl' && 'govgr-svg-icon--xl', size === 's' && 'govgr-svg-icon--s', size === 'm' && 'govgr-svg-icon--m', size === 'l' && 'govgr-svg-icon--l', true && 'govgr-svg-icon'),
21
21
  focusable: "false",
22
22
  viewBox: "0 0 24 24",
23
23
  "aria-hidden": "true"
package/esm/List/index.js CHANGED
@@ -9,7 +9,8 @@ import clsx from 'clsx';
9
9
  * This component must contain ListItem component.
10
10
  */
11
11
  export var List = /*#__PURE__*/React.forwardRef(function List(_ref, ref) {
12
- var listStyle = _ref.listStyle,
12
+ var _ref$listStyle = _ref.listStyle,
13
+ listStyle = _ref$listStyle === void 0 ? 'bullet' : _ref$listStyle,
13
14
  _ref$spaced = _ref.spaced,
14
15
  spaced = _ref$spaced === void 0 ? false : _ref$spaced,
15
16
  className = _ref.className,
@@ -17,7 +17,7 @@ export var SvgIcon = /*#__PURE__*/React.forwardRef(function SvgIcon(_ref, ref) {
17
17
 
18
18
  return /*#__PURE__*/React.createElement("svg", _extends({
19
19
  ref: ref,
20
- className: clsx(variant === 'success' && 'govgr-svg-icon--success', variant === 'primary' && 'govgr-svg-icon--primary', variant === 'warning' && 'govgr-svg-icon--warning', variant === 'light' && 'govgr-svg-icon--light', variant === 'error' && 'govgr-svg-icon--error', variant === 'focus' && 'govgr-svg-icon--focus', variant === 'dark' && 'govgr-svg-icon--dark', variant === 'gray' && 'govgr-svg-icon--gray', variant === 'link' && 'govgr-svg-icon--link', size === 'xl' && 'govgr-svg-icon--xl', size === 's' && 'govgr-svg-icon--s', size === 'm' && 'govgr-svg-icon--m', size === 'l' && 'govgr-svg-icon--l', className && className, true && 'govgr-svg-icon'),
20
+ className: clsx(className, variant === 'success' && 'govgr-svg-icon--success', variant === 'primary' && 'govgr-svg-icon--primary', variant === 'warning' && 'govgr-svg-icon--warning', variant === 'light' && 'govgr-svg-icon--light', variant === 'error' && 'govgr-svg-icon--error', variant === 'focus' && 'govgr-svg-icon--focus', variant === 'dark' && 'govgr-svg-icon--dark', variant === 'gray' && 'govgr-svg-icon--gray', variant === 'link' && 'govgr-svg-icon--link', size === 'xl' && 'govgr-svg-icon--xl', size === 's' && 'govgr-svg-icon--s', size === 'm' && 'govgr-svg-icon--m', size === 'l' && 'govgr-svg-icon--l', true && 'govgr-svg-icon'),
21
21
  focusable: "false",
22
22
  viewBox: "0 0 24 24",
23
23
  "aria-hidden": "true"
package/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Digigov v0.6.2
1
+ /** @license Digigov v0.6.5
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digigov/react-core",
3
- "version": "0.6.2",
3
+ "version": "0.6.5",
4
4
  "description": "@digigov react core components",
5
5
  "author": "GRNET Developers <devs@lists.grnet.gr>",
6
6
  "license": "MIT",
@@ -11,7 +11,7 @@
11
11
  "directory": "dist"
12
12
  },
13
13
  "peerDependencies": {
14
- "@digigov/css": "0.11.0",
14
+ "@digigov/css": "0.14.0",
15
15
  "clsx": "1.1.1",
16
16
  "react": "16.14.0",
17
17
  "react-dom": "16.14.0"