@nextelco/common-ui 1.7.36 → 1.7.38

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.
@@ -4,6 +4,21 @@
4
4
  * Copyright 2024 Fonticons, Inc.
5
5
  */
6
6
 
7
+ /*! *****************************************************************************
8
+ Copyright (c) Microsoft Corporation. All rights reserved.
9
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
10
+ this file except in compliance with the License. You may obtain a copy of the
11
+ License at http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
15
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
16
+ MERCHANTABLITY OR NON-INFRINGEMENT.
17
+
18
+ See the Apache Version 2.0 License for specific language governing permissions
19
+ and limitations under the License.
20
+ ***************************************************************************** */
21
+
7
22
  /*! js-cookie v3.0.5 | MIT */
8
23
 
9
24
  /**
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { PropsWithChildren } from 'react';
3
3
  import { IconProp } from '@fortawesome/fontawesome-svg-core';
4
4
  import './ActionButton.scss';
5
- import { ActionButtonTheme } from '../../../../types/ButtonThemes';
5
+ import { ActionButtonTheme } from 'types/themes/ButtonThemes';
6
6
  type Props = PropsWithChildren<{
7
7
  icon?: IconProp;
8
8
  title: string;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { PropsWithChildren } from 'react';
3
3
  import { IconProp } from '@fortawesome/fontawesome-svg-core';
4
4
  import './IconButton.scss';
5
- import { IconButtonTheme } from '../../../../types/ButtonThemes';
5
+ import { IconButtonTheme } from 'types/themes/ButtonThemes';
6
6
  type Props = PropsWithChildren<{
7
7
  icon: IconProp;
8
8
  onClick: () => void;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { IconProp } from '@fortawesome/fontawesome-svg-core';
3
3
  import './IconText.scss';
4
- import { IconTextTheme } from '../../../types/IconTextTheme';
4
+ import { IconTextTheme } from 'types/themes/IconTextTheme';
5
5
  interface IconTextProps {
6
6
  icon: IconProp;
7
7
  text: string;
@@ -1,9 +1,11 @@
1
1
  import React from 'react';
2
+ import { CustomSwitchTheme } from 'types/themes/CustomSwitchThemes';
2
3
  import './CustomSwitch.scss';
3
4
  type CustomSwitchProps = {
4
5
  label: string;
5
6
  activated: boolean;
6
7
  onChange: () => void;
8
+ theme: CustomSwitchTheme;
7
9
  };
8
10
  declare const CustomSwitch: React.FC<CustomSwitchProps>;
9
11
  export default CustomSwitch;
@@ -5,3 +5,4 @@ export default meta;
5
5
  type Story = StoryObj<typeof meta>;
6
6
  export declare const Default: Story;
7
7
  export declare const Active: Story;
8
+ export declare const Large: Story;
File without changes
@@ -0,0 +1,20 @@
1
+ export { default as CustomSwitch } from 'components/atoms/Switch/CustomSwitch';
2
+ export { default as BreadCrumb } from 'components/atoms/BreadCrumb/BreadCrumb';
3
+ export { default as IconText } from 'components/atoms/IconText/IconText';
4
+ export { default as Acronym } from 'components/atoms/Acronym/Acronym';
5
+ export { default as Label } from 'components/atoms/Label/Label';
6
+ export { default as Field } from 'components/atoms/Field/Field';
7
+ export { default as Card1 } from 'components/atoms/Card/Card1';
8
+ export { default as Card2 } from 'components/atoms/Card/Card2';
9
+ export { default as Card3 } from 'components/atoms/Card/Card3';
10
+ export { default as Card4 } from 'components/atoms/Card/Card4';
11
+ export { default as Card5 } from 'components/atoms/Card/Card5';
12
+ export { default as Card6 } from 'components/atoms/Card/Card6';
13
+ export { default as Card7 } from 'components/atoms/Card/Card7';
14
+ export { default as Select } from 'components/atoms/Select/Select';
15
+ export { default as ActionButton } from 'components/atoms/Button/variants/ActionButton';
16
+ export { default as FilterButton } from 'components/atoms/Button/variants/FilterButton';
17
+ export { default as IconButton } from 'components/atoms/Button/variants/IconButton';
18
+ export { default as NavButton } from 'components/atoms/Button/variants/NavButton';
19
+ export { default as TabButton } from 'components/atoms/Button/variants/TabButton';
20
+ export { default as Stack } from 'components/atoms/Stack/Stack';
File without changes
@@ -0,0 +1,3 @@
1
+ export { useAuth, AuthProvider } from 'contexts/authContext';
2
+ export { useModal, ModalProvider } from 'contexts/modalContext';
3
+ export { ApiProvider } from 'contexts/apiContext';
@@ -0,0 +1,2 @@
1
+ export { useApi } from 'hooks/useApi';
2
+ export { RequestOptions } from 'hooks/useApi';
@@ -0,0 +1,4 @@
1
+ export { default as Header } from 'components/layout/Header/Header';
2
+ export { default as Footer } from 'components/layout/Footer/Footer';
3
+ export { default as Error } from 'components/layout/Error/Error';
4
+ export { default as Spinner } from 'components/layout/Spinner/Spinner';
@@ -0,0 +1,4 @@
1
+ export { default as Modal } from 'components/molecules/Modal/Modal';
2
+ export { default as FormItem } from 'components/molecules/FormItem/FormItem';
3
+ export { default as Sidebar } from 'components/molecules/Sidebar/Sidebar';
4
+ export { default as MultiTagPicker, Option } from 'components/molecules/MultiTagPicker/MultiTagPicker';
@@ -0,0 +1 @@
1
+ export { default as Profile } from 'components/organisms/Profile/Profile';
@@ -0,0 +1,3 @@
1
+ export { default as LoadingPage } from 'pages/Loading/Loading';
2
+ export { default as ErrorPage } from 'pages/Error/ErrorPage';
3
+ export { default as NotFoundPage } from 'pages/NotFound/NotFound';
@@ -0,0 +1 @@
1
+ export { FontWeight } from 'constants/FontWeight';
@@ -0,0 +1,4 @@
1
+ export { LoggedUser } from 'types/LoggedUser';
2
+ export { ActionButtonTheme, IconButtonTheme, } from 'types/themes/ButtonThemes';
3
+ export { Menu, Submenu } from 'types/SidebarMenu';
4
+ export { IconTextTheme } from 'types/themes/IconTextTheme';
@@ -0,0 +1 @@
1
+ export { getAcronym, getFirstAndLastName, partialMatchWithUsername, } from 'utils/stringUtils';
@@ -1,43 +1,10 @@
1
- export { default as MultiTagPicker, Option } from './components/molecules/MultiTagPicker/MultiTagPicker';
2
- export { default as CustomSwitch } from './components/atoms/Switch/CustomSwitch';
3
- export { default as BreadCrumb } from './components/atoms/BreadCrumb/BreadCrumb';
4
- export { default as IconText } from './components/atoms/IconText/IconText';
5
- export { default as Acronym } from './components/atoms/Acronym/Acronym';
6
- export { default as Label } from './components/atoms/Label/Label';
7
- export { default as Field } from './components/atoms/Field/Field';
8
- export { default as Card1 } from './components/atoms/Card/Card1';
9
- export { default as Card2 } from './components/atoms/Card/Card2';
10
- export { default as Card3 } from './components/atoms/Card/Card3';
11
- export { default as Card4 } from './components/atoms/Card/Card4';
12
- export { default as Card5 } from './components/atoms/Card/Card5';
13
- export { default as Card6 } from './components/atoms/Card/Card6';
14
- export { default as Card7 } from './components/atoms/Card/Card7';
15
- export { default as Select } from './components/atoms/Select/Select';
16
- export { default as ActionButton } from './components/atoms/Button/variants/ActionButton';
17
- export { default as FilterButton } from './components/atoms/Button/variants/FilterButton';
18
- export { default as IconButton } from './components/atoms/Button/variants/IconButton';
19
- export { default as NavButton } from './components/atoms/Button/variants/NavButton';
20
- export { default as TabButton } from './components/atoms/Button/variants/TabButton';
21
- export { default as Stack } from './components/atoms/Stack/Stack';
22
- export { default as Modal } from './components/molecules/Modal/Modal';
23
- export { default as FormItem } from './components/molecules/FormItem/FormItem';
24
- export { default as Sidebar } from './components/molecules/Sidebar/Sidebar';
25
- export { default as Profile } from './components/organisms/Profile/Profile';
26
- export { default as Header } from './components/layout/Header/Header';
27
- export { default as Footer } from './components/layout/Footer/Footer';
28
- export { default as Error } from './components/layout/Error/Error';
29
- export { default as Spinner } from './components/layout/Spinner/Spinner';
30
- export { default as LoadingPage } from './pages/Loading/Loading';
31
- export { default as ErrorPage } from './pages/Error/ErrorPage';
32
- export { default as NotFoundPage } from './pages/NotFound/NotFound';
33
- export { useAuth, AuthProvider } from './contexts/authContext';
34
- export { useModal, ModalProvider } from './contexts/modalContext';
35
- export { ApiProvider } from './contexts/apiContext';
36
- export { useApi } from './hooks/useApi';
37
- export { LoggedUser } from './types/LoggedUser';
38
- export { ActionButtonTheme, IconButtonTheme } from './types/ButtonThemes';
39
- export { Menu, Submenu } from './types/SidebarMenu';
40
- export { IconTextTheme } from './types/IconTextTheme';
41
- export { RequestOptions } from './hooks/useApi';
42
- export { FontWeight } from './constants/FontWeight';
43
- export { getAcronym, getFirstAndLastName, partialMatchWithUsername } from './utils/stringUtils';
1
+ export * from './exports/atoms';
2
+ export * from './exports/molecules';
3
+ export * from './exports/organisms';
4
+ export * from './exports/layout';
5
+ export * from './exports/pages';
6
+ export * from './exports/contexts';
7
+ export * from './exports/hooks';
8
+ export * from './exports/types';
9
+ export * from './exports/styles';
10
+ export * from './exports/utils';
@@ -1,3 +1,3 @@
1
- import { ActionButtonTheme, IconButtonTheme } from '../../types/ButtonThemes';
1
+ import { ActionButtonTheme, IconButtonTheme } from 'types/themes/ButtonThemes';
2
2
  export declare const ActionButtonThemeStyled: ActionButtonTheme;
3
3
  export declare const IconButtonThemeStyled: IconButtonTheme;
@@ -1,4 +1,4 @@
1
- import { FontWeight } from '../constants/FontWeight';
1
+ import { FontWeight } from '../../constants/FontWeight';
2
2
  export interface ActionButtonTheme {
3
3
  backgroundColor: string;
4
4
  fontColor: string;
@@ -0,0 +1,3 @@
1
+ export interface CustomSwitchTheme {
2
+ size: 'default' | 'compact' | 'large';
3
+ }
@@ -1,4 +1,4 @@
1
- import { FontWeight } from '../constants/FontWeight';
1
+ import { FontWeight } from 'constants/FontWeight';
2
2
  export interface IconTextTheme {
3
3
  color: string;
4
4
  fontWeight?: FontWeight;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextelco/common-ui",
3
- "version": "1.7.36",
3
+ "version": "1.7.38",
4
4
  "description": "",
5
5
  "main": "dist/bundle.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -45,6 +45,7 @@
45
45
  "storybook": "^8.5.3",
46
46
  "style-loader": "^4.0.0",
47
47
  "ts-loader": "^9.5.2",
48
+ "tsconfig-paths-webpack-plugin": "^4.2.0",
48
49
  "typescript": "^5.7.3",
49
50
  "webpack": "^5.97.1",
50
51
  "webpack-cli": "^6.0.1"