@digigov/react-core 2.0.0-rc.11 → 2.0.0-rc.13

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.
@@ -3,7 +3,18 @@ import { NavListItemButtonProps } from '@digigov/react-core/NavListItemButton';
3
3
  import { NavListItemLinkProps } from '@digigov/react-core/NavListItemLink';
4
4
  export type LinkButtonJoinProps = NavListItemLinkProps & NavListItemButtonProps;
5
5
  export interface NavListItemActionProps extends LinkButtonJoinProps {
6
+ /**
7
+ * label is optional.
8
+ * The label for the NavListItemAction.
9
+ */
6
10
  label?: string;
11
+ /**
12
+ * arrow is optional.
13
+ * use arrow prop if you want to have arrow at the nav list item.
14
+ * @value true
15
+ * @value false
16
+ * @default false
17
+ */
7
18
  arrow?: boolean;
8
19
  }
9
20
  /**
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
- var _excluded = ["className", "children"];
3
+ var _excluded = ["label", "arrow", "href", "className", "children"];
4
4
  import React from 'react';
5
5
  import NavListItemActionContainer from '@digigov/react-core/NavListItemActionContainer';
6
6
  import NavListItemButton from '@digigov/react-core/NavListItemButton';
@@ -10,15 +10,20 @@ import NavListItemLink from '@digigov/react-core/NavListItemLink';
10
10
  * This component has a items of NavListItemLink component inside.
11
11
  */
12
12
  export var NavListItemAction = /*#__PURE__*/React.forwardRef(function NavListItemAction(_ref, ref) {
13
- var className = _ref.className,
13
+ var label = _ref.label,
14
+ _ref$arrow = _ref.arrow,
15
+ arrow = _ref$arrow === void 0 ? false : _ref$arrow,
16
+ href = _ref.href,
17
+ className = _ref.className,
14
18
  children = _ref.children,
15
19
  props = _objectWithoutProperties(_ref, _excluded);
16
- return /*#__PURE__*/React.createElement(NavListItemActionContainer, null, props.href ? /*#__PURE__*/React.createElement(NavListItemLink, _extends({}, props, {
20
+ return /*#__PURE__*/React.createElement(NavListItemActionContainer, null, href ? /*#__PURE__*/React.createElement(NavListItemLink, _extends({}, props, {
17
21
  className: className,
18
22
  ref: ref
19
- }), children || props.label) : /*#__PURE__*/React.createElement(NavListItemButton, _extends({}, props, {
23
+ }), children || label) : /*#__PURE__*/React.createElement(NavListItemButton, _extends({}, props, {
24
+ arrow: arrow,
20
25
  className: className,
21
26
  ref: ref
22
- }), children || props.label));
27
+ }), children || label));
23
28
  });
24
29
  export default NavListItemAction;
package/Skeleton/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
- var _excluded = ["width", "height", "fontSize", "variant", "animation", "className", "children"];
3
+ var _excluded = ["width", "height", "fontSize", "variant", "animation", "className", "children", "style"];
4
4
  import React from 'react';
5
5
  import clsx from 'clsx';
6
6
  import Base from '@digigov/react-core/Base';
@@ -17,17 +17,18 @@ export var Skeleton = /*#__PURE__*/React.forwardRef(function Skeleton(_ref, ref)
17
17
  animation = _ref$animation === void 0 ? true : _ref$animation,
18
18
  className = _ref.className,
19
19
  children = _ref.children,
20
+ style = _ref.style,
20
21
  props = _objectWithoutProperties(_ref, _excluded);
21
22
  return /*#__PURE__*/React.createElement(Base, _extends({
22
23
  as: "span",
23
24
  ref: ref,
24
25
  className: clsx(className, (!children || typeof children === 'string') && !!variant && "ds-skeleton--".concat(variant), fontSize !== undefined && variant === 'text' && "ds-skeleton--font-".concat(fontSize), !!animation && 'ds-skeleton--animate', !!children && !width && 'ds-skeleton--width-fit-content', true && 'ds-skeleton')
25
26
  }, props, {
26
- style: {
27
+ style: _extends({
27
28
  width: typeof children === 'string' ? Math.ceil(children.length * 0.5) + 'em' : width,
28
29
  maxWidth: !!width ? '100%' : undefined,
29
30
  height: height
30
- }
31
+ }, style)
31
32
  }), variant === 'button' && /*#__PURE__*/React.createElement("span", {
32
33
  className: clsx(height === undefined && width === undefined && 'ds-skeleton__line--size-default', true && 'ds-skeleton__line')
33
34
  }), typeof children != 'string' && children);
@@ -11,21 +11,26 @@ var _react = _interopRequireDefault(require("react"));
11
11
  var _NavListItemActionContainer = _interopRequireDefault(require("@digigov/react-core/NavListItemActionContainer"));
12
12
  var _NavListItemButton = _interopRequireDefault(require("@digigov/react-core/NavListItemButton"));
13
13
  var _NavListItemLink = _interopRequireDefault(require("@digigov/react-core/NavListItemLink"));
14
- var _excluded = ["className", "children"];
14
+ var _excluded = ["label", "arrow", "href", "className", "children"];
15
15
  /**
16
16
  * NavListItemAction must be inside the NavList.
17
17
  * This component has a items of NavListItemLink component inside.
18
18
  */
19
19
  var NavListItemAction = exports.NavListItemAction = /*#__PURE__*/_react["default"].forwardRef(function NavListItemAction(_ref, ref) {
20
- var className = _ref.className,
20
+ var label = _ref.label,
21
+ _ref$arrow = _ref.arrow,
22
+ arrow = _ref$arrow === void 0 ? false : _ref$arrow,
23
+ href = _ref.href,
24
+ className = _ref.className,
21
25
  children = _ref.children,
22
26
  props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
23
- return /*#__PURE__*/_react["default"].createElement(_NavListItemActionContainer["default"], null, props.href ? /*#__PURE__*/_react["default"].createElement(_NavListItemLink["default"], (0, _extends2["default"])({}, props, {
27
+ return /*#__PURE__*/_react["default"].createElement(_NavListItemActionContainer["default"], null, href ? /*#__PURE__*/_react["default"].createElement(_NavListItemLink["default"], (0, _extends2["default"])({}, props, {
24
28
  className: className,
25
29
  ref: ref
26
- }), children || props.label) : /*#__PURE__*/_react["default"].createElement(_NavListItemButton["default"], (0, _extends2["default"])({}, props, {
30
+ }), children || label) : /*#__PURE__*/_react["default"].createElement(_NavListItemButton["default"], (0, _extends2["default"])({}, props, {
31
+ arrow: arrow,
27
32
  className: className,
28
33
  ref: ref
29
- }), children || props.label));
34
+ }), children || label));
30
35
  });
31
36
  var _default = exports["default"] = NavListItemAction;
@@ -10,7 +10,7 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
10
10
  var _react = _interopRequireDefault(require("react"));
11
11
  var _clsx = _interopRequireDefault(require("clsx"));
12
12
  var _Base = _interopRequireDefault(require("@digigov/react-core/Base"));
13
- var _excluded = ["width", "height", "fontSize", "variant", "animation", "className", "children"];
13
+ var _excluded = ["width", "height", "fontSize", "variant", "animation", "className", "children", "style"];
14
14
  /**
15
15
  * Use Skeleton component while a page is loading.
16
16
  */
@@ -24,17 +24,18 @@ var Skeleton = exports.Skeleton = /*#__PURE__*/_react["default"].forwardRef(func
24
24
  animation = _ref$animation === void 0 ? true : _ref$animation,
25
25
  className = _ref.className,
26
26
  children = _ref.children,
27
+ style = _ref.style,
27
28
  props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
28
29
  return /*#__PURE__*/_react["default"].createElement(_Base["default"], (0, _extends2["default"])({
29
30
  as: "span",
30
31
  ref: ref,
31
32
  className: (0, _clsx["default"])(className, (!children || typeof children === 'string') && !!variant && "ds-skeleton--".concat(variant), fontSize !== undefined && variant === 'text' && "ds-skeleton--font-".concat(fontSize), !!animation && 'ds-skeleton--animate', !!children && !width && 'ds-skeleton--width-fit-content', true && 'ds-skeleton')
32
33
  }, props, {
33
- style: {
34
+ style: (0, _extends2["default"])({
34
35
  width: typeof children === 'string' ? Math.ceil(children.length * 0.5) + 'em' : width,
35
36
  maxWidth: !!width ? '100%' : undefined,
36
37
  height: height
37
- }
38
+ }, style)
38
39
  }), variant === 'button' && /*#__PURE__*/_react["default"].createElement("span", {
39
40
  className: (0, _clsx["default"])(height === undefined && width === undefined && 'ds-skeleton__line--size-default', true && 'ds-skeleton__line')
40
41
  }), typeof children != 'string' && children);
package/cjs/lazy/index.js CHANGED
@@ -2151,5 +2151,14 @@ var _default = exports["default"] = {
2151
2151
  "default": module['PanelTitle']
2152
2152
  };
2153
2153
  });
2154
+ }),
2155
+ 'Skeleton': /*#__PURE__*/(0, _react.lazy)(function () {
2156
+ return Promise.resolve().then(function () {
2157
+ return _interopRequireWildcard(require('@digigov/react-core/Skeleton'));
2158
+ }).then(function (module) {
2159
+ return {
2160
+ "default": module['Skeleton']
2161
+ };
2162
+ });
2154
2163
  })
2155
2164
  };
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Digigov v2.0.0-rc.11
1
+ /** @license Digigov v2.0.0-rc.13
2
2
  *
3
3
  * This source code is licensed under the BSD-2-Clause license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/lazy/index.js CHANGED
@@ -1665,5 +1665,12 @@ export default {
1665
1665
  "default": module['PanelTitle']
1666
1666
  };
1667
1667
  });
1668
+ }),
1669
+ 'Skeleton': /*#__PURE__*/lazy(function () {
1670
+ return import('@digigov/react-core/Skeleton').then(function (module) {
1671
+ return {
1672
+ "default": module['Skeleton']
1673
+ };
1674
+ });
1668
1675
  })
1669
1676
  };
package/lazy.d.ts CHANGED
@@ -237,5 +237,6 @@ declare namespace _default {
237
237
  let KitchenSinkLetterContent: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<Pick<import("@digigov/react-core/KitchenSinkLetterContent").KitchenSinkLetterContentProps, "p" | "slot" | "style" | "title" | "as" | "className" | "color" | "id" | "lang" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "margin" | "marginTop" | "marginBottom" | "marginLeft" | "marginRight" | "m" | "mt" | "mb" | "ml" | "mr" | "mx" | "my" | "padding" | "paddingTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "pt" | "pb" | "pl" | "pr" | "px" | "py" | "printHidden" | "printVisible" | "xsUpHidden" | "smUpHidden" | "mdUpHidden" | "lgUpHidden" | "xlUpHidden" | "xsHidden" | "smHidden" | "mdHidden" | "lgHidden" | "xlHidden"> & import("react").RefAttributes<HTMLDivElement>>>;
238
238
  let MastheadLogo: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<Pick<import("@digigov/react-core/MastheadLogo").MastheadLogoProps, "p" | "slot" | "style" | "title" | "as" | "className" | "color" | "height" | "id" | "lang" | "width" | "role" | "tabIndex" | "crossOrigin" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "useMap" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "referrerPolicy" | "alt" | "src" | "loading" | "decoding" | "sizes" | "srcSet" | "margin" | "marginTop" | "marginBottom" | "marginLeft" | "marginRight" | "m" | "mt" | "mb" | "ml" | "mr" | "mx" | "my" | "padding" | "paddingTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "pt" | "pb" | "pl" | "pr" | "px" | "py" | "printHidden" | "printVisible" | "xsUpHidden" | "smUpHidden" | "mdUpHidden" | "lgUpHidden" | "xlUpHidden" | "xsHidden" | "smHidden" | "mdHidden" | "lgHidden" | "xlHidden"> & import("react").RefAttributes<HTMLImageElement>>>;
239
239
  let PanelTitle: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<Pick<import("@digigov/react-core/PanelTitle").PanelTitleProps, "p" | "slot" | "style" | "title" | "as" | "className" | "color" | "id" | "lang" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "margin" | "marginTop" | "marginBottom" | "marginLeft" | "marginRight" | "m" | "mt" | "mb" | "ml" | "mr" | "mx" | "my" | "padding" | "paddingTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "pt" | "pb" | "pl" | "pr" | "px" | "py" | "printHidden" | "printVisible" | "xsUpHidden" | "smUpHidden" | "mdUpHidden" | "lgUpHidden" | "xlUpHidden" | "xsHidden" | "smHidden" | "mdHidden" | "lgHidden" | "xlHidden"> & import("react").RefAttributes<HTMLHeadingElement>>>;
240
+ let Skeleton: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<Pick<import("@digigov/react-core/Skeleton").SkeletonProps, "p" | "slot" | "style" | "title" | "as" | "className" | "color" | "height" | "id" | "lang" | "width" | "role" | "tabIndex" | "fontSize" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "margin" | "marginTop" | "marginBottom" | "marginLeft" | "marginRight" | "m" | "mt" | "mb" | "ml" | "mr" | "mx" | "my" | "padding" | "paddingTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "pt" | "pb" | "pl" | "pr" | "px" | "py" | "printHidden" | "printVisible" | "xsUpHidden" | "smUpHidden" | "mdUpHidden" | "lgUpHidden" | "xlUpHidden" | "xsHidden" | "smHidden" | "mdHidden" | "lgHidden" | "xlHidden" | "variant" | "animation"> & import("react").RefAttributes<HTMLSpanElement>>>;
240
241
  }
241
242
  export default _default;
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@digigov/react-core",
3
- "version": "2.0.0-rc.11",
3
+ "version": "2.0.0-rc.13",
4
4
  "description": "@digigov react core components",
5
5
  "author": "GRNET Developers <devs@lists.grnet.gr>",
6
6
  "license": "BSD-2-Clause",
7
7
  "main": "./cjs/index.js",
8
8
  "module": "./index.js",
9
9
  "peerDependencies": {
10
- "@digigov/css": "2.0.0-rc.11",
11
- "@digigov/react-icons": "2.0.0-rc.11",
10
+ "@digigov/css": "2.0.0-rc.13",
11
+ "@digigov/react-icons": "2.0.0-rc.13",
12
12
  "clsx": "1.1.1",
13
13
  "react": "^16.8.0 || ^17.0.0",
14
14
  "react-dom": "^16.8.0 || ^17.0.0"
@@ -9,7 +9,19 @@ import NavListItemLink, {
9
9
 
10
10
  export type LinkButtonJoinProps = NavListItemLinkProps & NavListItemButtonProps;
11
11
  export interface NavListItemActionProps extends LinkButtonJoinProps {
12
+ /**
13
+ * label is optional.
14
+ * The label for the NavListItemAction.
15
+ */
12
16
  label?: string;
17
+
18
+ /**
19
+ * arrow is optional.
20
+ * use arrow prop if you want to have arrow at the nav list item.
21
+ * @value true
22
+ * @value false
23
+ * @default false
24
+ */
13
25
  arrow?: boolean;
14
26
  }
15
27
  /**
@@ -19,24 +31,28 @@ export interface NavListItemActionProps extends LinkButtonJoinProps {
19
31
  export const NavListItemAction = React.forwardRef<
20
32
  HTMLButtonElement | HTMLAnchorElement,
21
33
  NavListItemActionProps
22
- >(function NavListItemAction({ className, children, ...props }, ref) {
34
+ >(function NavListItemAction(
35
+ { label, arrow = false, href, className, children, ...props },
36
+ ref
37
+ ) {
23
38
  return (
24
39
  <NavListItemActionContainer>
25
- {props.href ? (
40
+ {href ? (
26
41
  <NavListItemLink
27
42
  {...props}
28
43
  className={className}
29
44
  ref={ref as ForwardedRef<HTMLAnchorElement>}
30
45
  >
31
- {children || props.label}
46
+ {children || label}
32
47
  </NavListItemLink>
33
48
  ) : (
34
49
  <NavListItemButton
35
50
  {...props}
51
+ arrow={arrow}
36
52
  className={className}
37
53
  ref={ref as ForwardedRef<HTMLButtonElement>}
38
54
  >
39
- {children || props.label}
55
+ {children || label}
40
56
  </NavListItemButton>
41
57
  )}
42
58
  </NavListItemActionContainer>
@@ -60,6 +60,7 @@ export const Skeleton = React.forwardRef<HTMLSpanElement, SkeletonProps>(
60
60
  animation = true,
61
61
  className,
62
62
  children,
63
+ style,
63
64
  ...props
64
65
  },
65
66
  ref
@@ -85,6 +86,7 @@ export const Skeleton = React.forwardRef<HTMLSpanElement, SkeletonProps>(
85
86
  : width,
86
87
  maxWidth: !!width ? '100%' : undefined,
87
88
  height: height,
89
+ ...style,
88
90
  }}
89
91
  >
90
92
  {variant === 'button' && (
package/src/lazy.js CHANGED
@@ -238,5 +238,6 @@ export default {
238
238
  'KitchenSinkLetterContent': lazy(() => import('@digigov/react-core/KitchenSinkLetterContent').then((module)=> ({default: module['KitchenSinkLetterContent']}))),
239
239
  'MastheadLogo': lazy(() => import('@digigov/react-core/MastheadLogo').then((module)=> ({default: module['MastheadLogo']}))),
240
240
  'PanelTitle': lazy(() => import('@digigov/react-core/PanelTitle').then((module)=> ({default: module['PanelTitle']}))),
241
+ 'Skeleton': lazy(() => import('@digigov/react-core/Skeleton').then((module)=> ({default: module['Skeleton']}))),
241
242
 
242
243
  }