design-react-kit 5.0.0-3 → 5.0.0-4

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/package.json CHANGED
@@ -23,7 +23,7 @@
23
23
  "bugs": {
24
24
  "url": "https://github.com/italia/design-react-kit/issues"
25
25
  },
26
- "version": "5.0.0-3",
26
+ "version": "5.0.0-4",
27
27
  "license": "BSD-3",
28
28
  "module": "dist/esm/index.js",
29
29
  "main": "./src/index.tsx",
@@ -1,7 +1,7 @@
1
1
  import React, { FC, useState } from 'react';
2
2
  import { Navbar, NavbarBrand, NavbarProps, NavbarToggler } from 'reactstrap';
3
3
  import classNames from 'classnames';
4
- import { Collapse } from '../Collapse/Collapse';
4
+ import { Collapse } from './Collapse';
5
5
  import { Icon } from '../Icon/Icon';
6
6
  import { Nav } from '../Nav/Nav';
7
7
 
@@ -19,7 +19,7 @@ export const SkiplinkItem: FC<SkiplinkItemProps> = ({
19
19
  ...attributes
20
20
  }) => {
21
21
  const Tag = tag;
22
- const classes = classNames(className, 'visually-hidden', {
22
+ const classes = classNames(className, {
23
23
  'visually-hidden-focusable': focusable
24
24
  });
25
25
 
package/src/index.tsx CHANGED
@@ -87,7 +87,6 @@ export { CardTagsHeader } from './Card/CardTagsHeader';
87
87
  export { CardSignature } from './Card/CardSignature';
88
88
  export { CardFooterCTA } from './Card/CardFooterCTA';
89
89
  export { CardReadMore } from './Card/CardReadMore';
90
- export { Collapse } from './Collapse/Collapse';
91
90
  export { GridItem, GridItemText, GridItemTextWrapper, GridList, GridRow } from './Grid/index';
92
91
  export { Header } from './Header/Header';
93
92
  export { Headers } from './Header/Headers';
@@ -127,9 +126,6 @@ export { BottomNav } from './BottomNav/BottomNav';
127
126
  export { BottomNavItem } from './BottomNav/BottomNavItem';
128
127
  export { ThumbNav } from './ThumbNav/ThumbNav';
129
128
  export { ThumbNavItem } from './ThumbNav/ThumbNavItem';
130
- export { CookieBar } from './CookieBar/CookieBar';
131
- export { CookieBarButtons } from './CookieBar/CookieBarButtons';
132
- export { CookieBarButton } from './CookieBar/CookieBarButton';
133
129
  export { Chip } from './Chips/Chip';
134
130
  export { ChipLabel } from './Chips/ChipLabel';
135
131
  export { FontLoader, useFontLoader } from './FontLoader/FontLoader';
@@ -179,7 +175,6 @@ export type { CardTagsHeaderProps } from './Card/CardTagsHeader';
179
175
  export type { CardSignatureProps } from './Card/CardSignature';
180
176
  export type { CardFooterCTAProps } from './Card/CardFooterCTA';
181
177
  export type { CardReadMoreProps } from './Card/CardReadMore';
182
- export type { CollapseProps } from './Collapse/Collapse';
183
178
  export type {
184
179
  GridItemProps,
185
180
  GridItemTextProps,
@@ -232,9 +227,6 @@ export type { BottomNavProps } from './BottomNav/BottomNav';
232
227
  export type { BottomNavItemProps } from './BottomNav/BottomNavItem';
233
228
  export type { ThumbNavProps } from './ThumbNav/ThumbNav';
234
229
  export type { ThumbNavItemProps } from './ThumbNav/ThumbNavItem';
235
- export type { CookieBarProps } from './CookieBar/CookieBar';
236
- export type { CookieBarButtonsProps } from './CookieBar/CookieBarButtons';
237
- export type { CookieBarButtonProps } from './CookieBar/CookieBarButton';
238
230
  export type { ChipProps } from './Chips/Chip';
239
231
  export type { ChipLabelProps } from './Chips/ChipLabel';
240
232
  export type { FontLoaderProps } from './FontLoader/FontLoader';
@@ -1,9 +0,0 @@
1
- import { ElementType, FC, HTMLAttributes } from 'react';
2
- export interface CookieBarProps extends HTMLAttributes<HTMLElement> {
3
- /** Utilizzarlo in caso di utilizzo di componenti personalizzati */
4
- tag?: ElementType;
5
- /** Classi aggiuntive da usare per il componente Cookie */
6
- className?: string;
7
- testId?: string;
8
- }
9
- export declare const CookieBar: FC<CookieBarProps>;
@@ -1,9 +0,0 @@
1
- import { ElementType, FC, ButtonHTMLAttributes, AnchorHTMLAttributes } from 'react';
2
- export declare type CookieBarButtonProps = {
3
- /** Utilizzarlo in caso di utilizzo di componenti personalizzati */
4
- tag?: ElementType;
5
- /** Classi aggiuntive da usare per il componente CookieBarButton */
6
- className?: string;
7
- testId?: string;
8
- } & (ButtonHTMLAttributes<HTMLButtonElement> | AnchorHTMLAttributes<HTMLAnchorElement>);
9
- export declare const CookieBarButton: FC<CookieBarButtonProps>;
@@ -1,9 +0,0 @@
1
- import { ElementType, FC, HTMLAttributes } from 'react';
2
- export interface CookieBarButtonsProps extends HTMLAttributes<HTMLElement> {
3
- /** Utilizzarlo in caso di utilizzo di componenti personalizzati */
4
- tag?: ElementType;
5
- /** Classi aggiuntive da usare per il componente CookieBarButtons */
6
- className?: string;
7
- testId?: string;
8
- }
9
- export declare const CookieBarButtons: FC<CookieBarButtonsProps>;
@@ -1,16 +0,0 @@
1
- import React, { ElementType, FC, HTMLAttributes } from 'react';
2
- import classNames from 'classnames';
3
-
4
- export interface CookieBarProps extends HTMLAttributes<HTMLElement> {
5
- /** Utilizzarlo in caso di utilizzo di componenti personalizzati */
6
- tag?: ElementType;
7
- /** Classi aggiuntive da usare per il componente Cookie */
8
- className?: string;
9
- testId?: string;
10
- }
11
-
12
- export const CookieBar: FC<CookieBarProps> = ({ tag = 'div', className, testId, ...attributes }) => {
13
- const Tag = tag;
14
- const wrapperClasses = classNames('cookiebar show', className);
15
- return <Tag {...attributes} className={wrapperClasses} data-testid={testId} />;
16
- };
@@ -1,16 +0,0 @@
1
- import React, { ElementType, FC, ButtonHTMLAttributes, AnchorHTMLAttributes } from 'react';
2
- import classNames from 'classnames';
3
-
4
- export type CookieBarButtonProps = {
5
- /** Utilizzarlo in caso di utilizzo di componenti personalizzati */
6
- tag?: ElementType;
7
- /** Classi aggiuntive da usare per il componente CookieBarButton */
8
- className?: string;
9
- testId?: string;
10
- } & (ButtonHTMLAttributes<HTMLButtonElement> | AnchorHTMLAttributes<HTMLAnchorElement>);
11
-
12
- export const CookieBarButton: FC<CookieBarButtonProps> = ({ tag = 'button', className, testId, ...attributes }) => {
13
- const Tag = tag;
14
- const activeClass = classNames(className, 'cookiebar-btn');
15
- return <Tag className={activeClass} {...attributes} data-testid={testId} />;
16
- };
@@ -1,16 +0,0 @@
1
- import React, { ElementType, FC, HTMLAttributes } from 'react';
2
- import classNames from 'classnames';
3
-
4
- export interface CookieBarButtonsProps extends HTMLAttributes<HTMLElement> {
5
- /** Utilizzarlo in caso di utilizzo di componenti personalizzati */
6
- tag?: ElementType;
7
- /** Classi aggiuntive da usare per il componente CookieBarButtons */
8
- className?: string;
9
- testId?: string;
10
- }
11
-
12
- export const CookieBarButtons: FC<CookieBarButtonsProps> = ({ className, tag = 'div', testId, ...attributes }) => {
13
- const Tag = tag;
14
- const buttonClasses = classNames(className, 'cookiebar-buttons');
15
- return <Tag className={buttonClasses} {...attributes} data-testid={testId} />;
16
- };
File without changes
File without changes