nectiasw 0.0.256 → 0.0.259

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.
Files changed (120) hide show
  1. package/README.md +30 -30
  2. package/dist/components/Alert/Alert.stories.d.ts +13 -0
  3. package/dist/components/Alert/index.d.ts +11 -0
  4. package/dist/components/Badge/Bagde.stories.d.ts +1 -2
  5. package/dist/components/Badge/index.d.ts +0 -1
  6. package/dist/components/Box/index.d.ts +0 -1
  7. package/dist/components/Box/styles.d.ts +0 -1
  8. package/dist/components/Box/types.d.ts +23 -23
  9. package/dist/components/Button/builder.d.ts +0 -1
  10. package/dist/components/Button/index.d.ts +0 -1
  11. package/dist/components/Button/styled.d.ts +1 -2
  12. package/dist/components/Button/types.d.ts +4 -5
  13. package/dist/components/Button/variants/Weekday/Weekday.stories.d.ts +0 -1
  14. package/dist/components/Button/variants/Weekday/index.d.ts +0 -1
  15. package/dist/components/Card/Card.stories.d.ts +0 -1
  16. package/dist/components/Card/index.d.ts +0 -1
  17. package/dist/components/Card/types.d.ts +1 -1
  18. package/dist/components/Card/variants/Schedule/index.d.ts +0 -1
  19. package/dist/components/Card/variants/Schedule/styled.d.ts +0 -1
  20. package/dist/components/Chart/index.d.ts +0 -1
  21. package/dist/components/Checkbox/index.d.ts +1 -2
  22. package/dist/components/Checkbox/styled.d.ts +0 -1
  23. package/dist/components/Col/index.d.ts +0 -1
  24. package/dist/components/Col/styled.d.ts +0 -1
  25. package/dist/components/Collapse/index.d.ts +0 -1
  26. package/dist/components/Container/index.d.ts +0 -1
  27. package/dist/components/Counter/index.d.ts +0 -1
  28. package/dist/components/Datepicker/index.d.ts +0 -1
  29. package/dist/components/Datepicker/styled.d.ts +0 -1
  30. package/dist/components/DeadlineChart/index.d.ts +0 -1
  31. package/dist/components/Detail/Detail.stories.d.ts +9 -0
  32. package/dist/components/Detail/index.d.ts +11 -12
  33. package/dist/components/Dragarea/index.d.ts +0 -1
  34. package/dist/components/Dragarea/styled.d.ts +0 -1
  35. package/dist/components/Dragarea/svg.d.ts +0 -1
  36. package/dist/components/Dropdown/index.d.ts +1 -2
  37. package/dist/components/Empty/index.d.ts +1 -2
  38. package/dist/components/FirstModal/index.d.ts +0 -1
  39. package/dist/components/FirstModal/styled.d.ts +0 -1
  40. package/dist/components/FirstModal/types.d.ts +1 -2
  41. package/dist/components/Flex/index.d.ts +7 -8
  42. package/dist/components/Flex/styles.d.ts +1 -2
  43. package/dist/components/Footer/index.d.ts +0 -1
  44. package/dist/components/Footer/svg.d.ts +0 -1
  45. package/dist/components/Grid/index.d.ts +0 -1
  46. package/dist/components/Input/index.d.ts +5 -6
  47. package/dist/components/Input/variants/InputTable.d.ts +0 -1
  48. package/dist/components/Layout/index.d.ts +2 -3
  49. package/dist/components/Loading/index.d.ts +0 -1
  50. package/dist/components/Modal/index.d.ts +0 -1
  51. package/dist/components/Modal/variant/TCModal.d.ts +0 -1
  52. package/dist/components/Modal/variant/TCModal.stories.d.ts +0 -1
  53. package/dist/components/Navbar/Navbar.stories.d.ts +0 -1
  54. package/dist/components/Navbar/index.d.ts +0 -1
  55. package/dist/components/Pagination/index.d.ts +0 -1
  56. package/dist/components/RadioButton/index.d.ts +0 -1
  57. package/dist/components/Row/index.d.ts +1 -2
  58. package/dist/components/Search/index.d.ts +0 -1
  59. package/dist/components/Search/styled.d.ts +1 -2
  60. package/dist/components/Search/types.d.ts +1 -2
  61. package/dist/components/Search/variants/ScrollSearch.d.ts +0 -1
  62. package/dist/components/Search/variants/styled.d.ts +0 -1
  63. package/dist/components/Select/Select.stories.d.ts +0 -1
  64. package/dist/components/Select/builder.d.ts +0 -1
  65. package/dist/components/Select/index.d.ts +3 -4
  66. package/dist/components/Sidebar/Sidebar.stories.d.ts +0 -1
  67. package/dist/components/Sidebar/index.d.ts +0 -1
  68. package/dist/components/Sidebar/types.d.ts +1 -2
  69. package/dist/components/Stepper/index.d.ts +0 -1
  70. package/dist/components/Switch/index.d.ts +0 -1
  71. package/dist/components/Table/Table.stories.d.ts +0 -1
  72. package/dist/components/Table/builder.d.ts +0 -1
  73. package/dist/components/Table/index.d.ts +0 -1
  74. package/dist/components/Table/styled.d.ts +0 -1
  75. package/dist/components/Table/types.d.ts +15 -16
  76. package/dist/components/Tableinput/index.d.ts +0 -1
  77. package/dist/components/Text/index.d.ts +4 -5
  78. package/dist/components/Textarea/TextArea.stories.d.ts +0 -1
  79. package/dist/components/Textarea/index.d.ts +0 -1
  80. package/dist/components/Textarea/styled.d.ts +0 -1
  81. package/dist/components/Timeline/index.d.ts +0 -1
  82. package/dist/components/Timeline/styled.d.ts +0 -1
  83. package/dist/components/Tooltip/index.d.ts +1 -2
  84. package/dist/components/Tooltip/styled.d.ts +2 -3
  85. package/dist/components/Totalhours/index.d.ts +0 -1
  86. package/dist/hooks/usecache/config.d.ts +0 -1
  87. package/dist/hooks/usecache/index.d.ts +2 -2
  88. package/dist/hooks/usecheckbox/index.d.ts +0 -1
  89. package/dist/index.d.ts +7 -8
  90. package/dist/index.es.js +18640 -18413
  91. package/dist/index.es.js.map +1 -1
  92. package/dist/index.umd.js +332 -359
  93. package/dist/index.umd.js.map +1 -1
  94. package/dist/main.d.ts +0 -1
  95. package/dist/providers/channel/index.d.ts +0 -1
  96. package/dist/providers/channel/types.d.ts +0 -1
  97. package/dist/providers/context/index.d.ts +0 -1
  98. package/dist/providers/context/types.d.ts +1 -2
  99. package/dist/providers/https/http.api.d.ts +3 -4
  100. package/dist/providers/https/index.d.ts +1 -2
  101. package/dist/providers/microfront/index.d.ts +0 -1
  102. package/dist/providers/microfront/types.d.ts +3 -4
  103. package/dist/providers/permissions/index.d.ts +0 -1
  104. package/dist/providers/permissions/types.d.ts +2 -3
  105. package/dist/providers/permissions/utils.d.ts +1 -2
  106. package/dist/providers/private/index.d.ts +1 -2
  107. package/dist/providers/storage/index.d.ts +0 -1
  108. package/dist/providers/storage/session/index.d.ts +2 -3
  109. package/dist/providers/storage/types.d.ts +1 -1
  110. package/dist/stories/Button.d.ts +1 -2
  111. package/dist/stories/Button.stories.d.ts +1 -2
  112. package/dist/stories/Header.d.ts +0 -1
  113. package/dist/stories/Header.stories.d.ts +3 -4
  114. package/dist/stories/Page.d.ts +0 -1
  115. package/dist/stories/Page.stories.d.ts +0 -1
  116. package/dist/style.css +1 -1
  117. package/dist/typings/index.d.ts +1 -1
  118. package/dist/utils/bearer/index.d.ts +4 -4
  119. package/dist/utils/sort/index.d.ts +1 -2
  120. package/package.json +108 -106
package/README.md CHANGED
@@ -1,30 +1,30 @@
1
- # React + TypeScript + Vite
2
-
3
- This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
4
-
5
- Currently, two official plugins are available:
6
-
7
- - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
8
- - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
9
-
10
- ## Expanding the ESLint configuration
11
-
12
- If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
13
-
14
- - Configure the top-level `parserOptions` property like this:
15
-
16
- ```js
17
- export default {
18
- // other rules...
19
- parserOptions: {
20
- ecmaVersion: 'latest',
21
- sourceType: 'module',
22
- project: ['./tsconfig.json', './tsconfig.node.json', './tsconfig.app.json'],
23
- tsconfigRootDir: __dirname,
24
- },
25
- }
26
- ```
27
-
28
- - Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked`
29
- - Optionally add `plugin:@typescript-eslint/stylistic-type-checked`
30
- - Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list
1
+ # React + TypeScript + Vite
2
+
3
+ This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
4
+
5
+ Currently, two official plugins are available:
6
+
7
+ - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
8
+ - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
9
+
10
+ ## Expanding the ESLint configuration
11
+
12
+ If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
13
+
14
+ - Configure the top-level `parserOptions` property like this:
15
+
16
+ ```js
17
+ export default {
18
+ // other rules...
19
+ parserOptions: {
20
+ ecmaVersion: 'latest',
21
+ sourceType: 'module',
22
+ project: ['./tsconfig.json', './tsconfig.node.json', './tsconfig.app.json'],
23
+ tsconfigRootDir: __dirname,
24
+ },
25
+ };
26
+ ```
27
+
28
+ - Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked`
29
+ - Optionally add `plugin:@typescript-eslint/stylistic-type-checked`
30
+ - Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list
@@ -0,0 +1,13 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Alert } from '.';
3
+ declare const meta: Meta<typeof Alert>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const WarningOutlined: Story;
8
+ export declare const WarningSolid: Story;
9
+ export declare const Info: Story;
10
+ export declare const Error: Story;
11
+ export declare const Success: Story;
12
+ export declare const WithoutIcon: Story;
13
+ export declare const ComplexContent: Story;
@@ -0,0 +1,11 @@
1
+ import { ReactNode, ComponentType, SVGProps } from 'react';
2
+ type AlertProps = {
3
+ icon?: ComponentType<SVGProps<SVGSVGElement>>;
4
+ iconSize?: number | string;
5
+ iconColor?: string;
6
+ iconTextColor?: string;
7
+ content?: ReactNode;
8
+ className?: string;
9
+ };
10
+ export declare const Alert: ({ icon: Icon, iconSize, iconColor, iconTextColor, content, className, }: AlertProps) => import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -1,5 +1,4 @@
1
1
  import { StoryObj } from '@storybook/react';
2
-
3
2
  declare const meta: {
4
3
  title: string;
5
4
  component: import('react').FunctionComponent<import('.').BadgeProps>;
@@ -9,7 +8,7 @@ declare const meta: {
9
8
  tags: string[];
10
9
  argTypes: {};
11
10
  args: {
12
- onClick: import('@vitest/spy').Mock<[], void>;
11
+ onClick: import('@vitest/spy').Mock<(...args: any[]) => any>;
13
12
  };
14
13
  };
15
14
  export default meta;
@@ -1,6 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { BadgeStatus } from './types';
3
-
4
3
  export type BadgeProps = {
5
4
  color?: string;
6
5
  error?: number;
@@ -1,4 +1,3 @@
1
1
  import { default as React } from 'react';
2
2
  import { BoxProps } from './types';
3
-
4
3
  export declare const Box: React.FC<BoxProps>;
@@ -1,5 +1,4 @@
1
1
  import { BoxProps } from './types';
2
-
3
2
  type ContainerArgs = Partial<BoxProps>;
4
3
  export declare const classes: (props: ContainerArgs) => string;
5
4
  /**
@@ -3,21 +3,21 @@ export declare enum Rule {
3
3
  PIXELS = "px"
4
4
  }
5
5
  type RotateDegree = '0' | '1' | '2' | '3' | '6' | '12' | '45' | '90' | '180';
6
- type BrightnessLevel = "0" | "50" | "75" | "90" | "95" | "100" | "105" | "110" | "125" | "150" | "200";
7
- type ScaleLevel = "0" | "50" | "75" | "90" | "95" | "100";
8
- type BorderWidth = "0" | "2" | "4" | "8" | "x-0" | "x-2" | "x-4" | "x-8" | "x" | "y-0" | "y-2" | "y-4" | "y-8" | "y" | "s-0" | "s-2" | "s-4" | "s-8" | "s" | "e-0" | "e-2" | "e-4" | "e-8" | "e" | "t-0" | "t-2" | "t-4" | "t-8" | "t" | "r-0" | "r-2" | "r-4" | "r-8" | "r" | "b-0" | "b-2" | "b-4" | "b-8" | "b" | "l-0" | "l-2" | "l-4" | "l-8" | "l";
9
- type Radius = "none" | "sm" | "full" | "md" | "lg" | "xl" | "2xl" | "3xl";
6
+ type BrightnessLevel = '0' | '50' | '75' | '90' | '95' | '100' | '105' | '110' | '125' | '150' | '200';
7
+ type ScaleLevel = '0' | '50' | '75' | '90' | '95' | '100';
8
+ type BorderWidth = '0' | '2' | '4' | '8' | 'x-0' | 'x-2' | 'x-4' | 'x-8' | 'x' | 'y-0' | 'y-2' | 'y-4' | 'y-8' | 'y' | 's-0' | 's-2' | 's-4' | 's-8' | 's' | 'e-0' | 'e-2' | 'e-4' | 'e-8' | 'e' | 't-0' | 't-2' | 't-4' | 't-8' | 't' | 'r-0' | 'r-2' | 'r-4' | 'r-8' | 'r' | 'b-0' | 'b-2' | 'b-4' | 'b-8' | 'b' | 'l-0' | 'l-2' | 'l-4' | 'l-8' | 'l';
9
+ type Radius = 'none' | 'sm' | 'full' | 'md' | 'lg' | 'xl' | '2xl' | '3xl';
10
10
  type OpacityValue = '0' | '5' | '10' | '20' | '25' | '30' | '40' | '50' | '60' | '70' | '75' | '80' | '90' | '95' | '100';
11
11
  type BorderRadius = Radius | `s-${Radius}` | `e-${Radius}` | `t-${Radius}` | `r-${Radius}` | `b-${Radius}` | `ss-${Radius}` | `se-${Radius}` | `ee-${Radius}` | `es-${Radius}` | `tl-${Radius}` | `tr-${Radius}` | `bl-${Radius}` | `br-${Radius}`;
12
- type BreakTiming = "auto" | "avoid" | "all" | "avoid-page" | "page" | "left" | "right" | "column";
13
- type ScreenSize = "0" | "none" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "full" | "min" | "max" | "fit" | "prose";
14
- type BlurLevel = "none" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl";
15
- type SelectProperties = "none" | "text" | "all" | "auto";
16
- type TextOverflowProperties = "truncate" | "ellipsis" | "clip";
17
- type DisplayProperties = "block" | "inline" | "inline-block" | string;
18
- type PositionProperties = "static" | "relative" | "absolute" | "sticky" | "fixed";
19
- type OverflowProperties = "auto" | "hidden" | "clip" | "visible" | "scroll" | "x-auto" | "y-auto" | "x-hidden" | "y-hidden" | "x-clip" | "y-visible" | "x-scroll" | "y-scroll";
20
- type whiteSpaceProperties = "normal" | "nowrap" | "pre" | "pre-line" | "pre-wrap" | "break-spaces";
12
+ type BreakTiming = 'auto' | 'avoid' | 'all' | 'avoid-page' | 'page' | 'left' | 'right' | 'column';
13
+ type ScreenSize = '0' | 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | '7xl' | 'full' | 'min' | 'max' | 'fit' | 'prose';
14
+ type BlurLevel = 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl';
15
+ type SelectProperties = 'none' | 'text' | 'all' | 'auto';
16
+ type TextOverflowProperties = 'truncate' | 'ellipsis' | 'clip';
17
+ type DisplayProperties = 'block' | 'inline' | 'inline-block' | string;
18
+ type PositionProperties = 'static' | 'relative' | 'absolute' | 'sticky' | 'fixed';
19
+ type OverflowProperties = 'auto' | 'hidden' | 'clip' | 'visible' | 'scroll' | 'x-auto' | 'y-auto' | 'x-hidden' | 'y-hidden' | 'x-clip' | 'y-visible' | 'x-scroll' | 'y-scroll';
20
+ type whiteSpaceProperties = 'normal' | 'nowrap' | 'pre' | 'pre-line' | 'pre-wrap' | 'break-spaces';
21
21
  export type BoxProps = {
22
22
  id?: string;
23
23
  as?: string;
@@ -76,17 +76,17 @@ export type BoxProps = {
76
76
  breakAfter?: BreakTiming;
77
77
  breakInside?: BreakTiming;
78
78
  breakBefore?: BreakTiming;
79
- float?: "left" | "right";
80
- borderBox?: "border" | "content";
81
- clear?: "left" | "right" | "both" | "none";
79
+ float?: 'left' | 'right';
80
+ borderBox?: 'border' | 'content';
81
+ clear?: 'left' | 'right' | 'both' | 'none';
82
82
  borders?: string[];
83
- wordBreak?: "normal" | "words" | "all" | "keep";
84
- borderStyle?: "solid" | "dashed";
83
+ wordBreak?: 'normal' | 'words' | 'all' | 'keep';
84
+ borderStyle?: 'solid' | 'dashed';
85
85
  borderColor?: string;
86
- visibility?: "visibile" | "invisible" | "collapse";
87
- textAlign?: "left" | "center" | "right" | "justify" | "start" | "end";
88
- textTransform?: "uppercase" | "lowercase" | "capitalize" | "normal-case";
89
- textDecoration?: "underline" | "overline" | "line-through" | "no-underline";
86
+ visibility?: 'visibile' | 'invisible' | 'collapse';
87
+ textAlign?: 'left' | 'center' | 'right' | 'justify' | 'start' | 'end';
88
+ textTransform?: 'uppercase' | 'lowercase' | 'capitalize' | 'normal-case';
89
+ textDecoration?: 'underline' | 'overline' | 'line-through' | 'no-underline';
90
90
  lineHeight?: number | string;
91
91
  ringColor?: string | number;
92
92
  ringWidth?: string | number;
@@ -99,7 +99,7 @@ export type BoxProps = {
99
99
  rotate?: RotateDegree;
100
100
  select?: SelectProperties;
101
101
  whiteSpace?: whiteSpaceProperties;
102
- onHover?: Partial<BoxProps> & Exclude<BoxProps, "hover">;
102
+ onHover?: Partial<BoxProps> & Exclude<BoxProps, 'hover'>;
103
103
  opacity?: OpacityValue;
104
104
  } & React.DetailedHTMLProps<React.HtmlHTMLAttributes<HTMLDivElement>, HTMLDivElement>;
105
105
  export {};
@@ -1,5 +1,4 @@
1
1
  import { ButtonProps } from './types';
2
-
3
2
  export type Override<T, U> = Omit<T, keyof U> & U;
4
3
  export type OverrideBuilder = Override<Builder, {
5
4
  backgrounds: typeof Builder.prototype.backgrounds;
@@ -1,6 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { ButtonProps } from './types';
3
-
4
3
  /**
5
4
  * @description
6
5
  * Button component with TailwindCSS support and default props for size and variant.
@@ -1,5 +1,4 @@
1
1
  import { ButtonProps } from './types';
2
-
3
- type ButtonStyledProps = Pick<ButtonProps, "fullWidth" | "tabWithHover" | "visuallyDisabled">;
2
+ type ButtonStyledProps = Pick<ButtonProps, 'fullWidth' | 'tabWithHover' | 'visuallyDisabled'>;
4
3
  export declare const StyledButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ButtonStyledProps>> & string;
5
4
  export {};
@@ -1,13 +1,12 @@
1
1
  import { default as React } from 'react';
2
2
  import { OverrideBuilder } from './builder';
3
-
4
- export type Variant = "primary" | "secondary" | "outline" | "tertiary" | "quaternary" | "quinary" | "senary" | "secondarymuted" | "danger" | "info-outline" | "danger-outline" | "primary-outline" | "darkened-outline" | "secondary-outline";
3
+ export type Variant = 'primary' | 'secondary' | 'outline' | 'tertiary' | 'quaternary' | 'quinary' | 'senary' | 'secondarymuted' | 'danger' | 'info-outline' | 'danger-outline' | 'primary-outline' | 'darkened-outline' | 'secondary-outline';
5
4
  export type ButtonProps = {
6
5
  disabled?: boolean;
7
6
  variant: Variant;
8
7
  children?: React.ReactNode;
9
- size: "xs" | "sm" | "base" | "lg" | "xl" | "xxl" | "circle";
10
- fontSize?: "xs" | "sm" | "base" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl";
8
+ size: 'xs' | 'sm' | 'base' | 'lg' | 'xl' | 'xxl' | 'circle';
9
+ fontSize?: 'xs' | 'sm' | 'base' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl';
11
10
  onClick?: () => void;
12
11
  disabledStyle?: string | Record<string, string>;
13
12
  Icon?: JSX.Element;
@@ -17,7 +16,7 @@ export type ButtonProps = {
17
16
  fullWidth?: boolean;
18
17
  tabWithHover?: boolean;
19
18
  visuallyDisabled?: boolean;
20
- orientationIcon?: "right" | "left";
19
+ orientationIcon?: 'right' | 'left';
21
20
  };
22
21
  export type ButtonStyledProps = {
23
22
  fullWidth?: boolean;
@@ -1,6 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react';
2
2
  import { WeekdayBarProps } from './types';
3
-
4
3
  declare const meta: Meta<WeekdayBarProps>;
5
4
  export default meta;
6
5
  type Story = StoryObj<WeekdayBarProps>;
@@ -1,4 +1,3 @@
1
1
  import { default as React } from 'react';
2
2
  import { WeekdayBarProps } from './types';
3
-
4
3
  export declare const WeekdayBar: React.FunctionComponent<WeekdayBarProps>;
@@ -1,5 +1,4 @@
1
1
  import { StoryObj } from '@storybook/react';
2
-
3
2
  declare const meta: {
4
3
  title: string;
5
4
  component: import('react').FunctionComponent<import('./types').CardProps>;
@@ -1,6 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { CardProps, CardTitleProps } from './types';
3
-
4
3
  export declare const Card: React.FunctionComponent<CardProps>;
5
4
  export declare const DangerTitle: React.FC<CardTitleProps>;
6
5
  export declare const CheckTitle: React.FC<CardTitleProps>;
@@ -5,6 +5,6 @@ export type CardProps = {
5
5
  state?: number;
6
6
  };
7
7
  export type CardTitleProps = {
8
- title?: "Pendientes de Carga" | "Pendientes de Validación" | "Validados";
8
+ title?: 'Pendientes de Carga' | 'Pendientes de Validación' | 'Validados';
9
9
  Icon?: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
10
10
  };
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
2
  import { ScheduleCardProps, HeaderProps } from './types';
3
-
4
3
  export declare const ScheduleCard: React.FC<ScheduleCardProps>;
5
4
  export declare const ScheduleHeader: React.FC<HeaderProps>;
@@ -1,4 +1,3 @@
1
1
  import { ScheduleCardProps, HeaderProps } from './types';
2
-
3
2
  export declare const Card: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ScheduleCardProps>> & string;
4
3
  export declare const Header: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, HeaderProps>> & string;
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  /**
4
3
  * @description
5
4
  * Chart componnet for rendering content based on stages.
@@ -1,8 +1,7 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export type CheckboxIconProps = {
4
3
  status?: boolean;
5
- } & Pick<CheckboxProps, "left" | "top" | "right">;
4
+ } & Pick<CheckboxProps, 'left' | 'top' | 'right'>;
6
5
  export type CheckboxProps = {
7
6
  id?: string;
8
7
  top?: string;
@@ -1,5 +1,4 @@
1
1
  import { CheckboxIconProps } from '.';
2
-
3
2
  export declare const StyledCheckbox: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, Omit<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
4
3
  ref?: ((instance: HTMLInputElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLInputElement> | null | undefined;
5
4
  }>, never>, never>> & string;
@@ -1,4 +1,3 @@
1
1
  import { default as React } from 'react';
2
2
  import { ColProps } from './types.ts';
3
-
4
3
  export declare const Col: React.FunctionComponent<ColProps>;
@@ -1,3 +1,2 @@
1
1
  import { ColProps } from './types';
2
-
3
2
  export declare const StyledCol: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ColProps>> & string;
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export declare const Collapse: React.FunctionComponent<CollapseProps>;
4
3
  export declare const StyledCollapse: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
5
4
  width?: string;
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  /**
4
3
  * @description
5
4
  * Col grid container for tailwind dynamic grid.
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export declare const Counter: React.FunctionComponent<CounterProps>;
4
3
  export declare const Circle: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
5
4
  export declare const PassedDays: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  /**
4
3
  * @description
5
4
  * Handle date and sync dates.
@@ -1,6 +1,5 @@
1
1
  import { default as Datepicker } from 'react-datepicker';
2
2
  import { DatepickerProps } from '.';
3
-
4
3
  export declare const StyledDatepicker: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<(import('react-datepicker').DatePickerProps & import('react').RefAttributes<Datepicker>) & import('styled-components/dist/types').BaseObject, DatepickerProps>> & string & Omit<typeof Datepicker, keyof import('react').Component<any, {}, any>>;
5
4
  export declare const StyledTableInput: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, DatepickerProps>> & string;
6
5
  export declare const StyledInput: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, DatepickerProps>> & string;
@@ -1,5 +1,4 @@
1
1
  import { default as React, ReactNode } from 'react';
2
-
3
2
  export declare const SingleDeadlineChart: React.FC<SingleDeadlineChartProps>;
4
3
  export declare const Container: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
5
4
  export declare const Workline: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -0,0 +1,9 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Menu } from '.';
3
+ declare const meta: Meta<typeof Menu>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const CollapsedByDefault: Story;
8
+ export declare const NoCollapseOnTitle: Story;
9
+ export declare const HoldingExample: Story;
@@ -1,18 +1,17 @@
1
1
  import { default as React } from 'react';
2
- import { CommonTextProps } from '@nectiasw/components/Text';
3
-
2
+ import { CommonTextProps } from '../Text';
4
3
  export declare const Menu: React.FC<DetailProps & {
5
4
  children?: React.ReactNode;
6
- size?: CommonTextProps["size"];
7
- color?: CommonTextProps["color"];
5
+ size?: CommonTextProps['size'];
6
+ color?: CommonTextProps['color'];
8
7
  }>;
9
8
  export declare const Section: React.FC<SectionProps & {
10
- labelSize?: CommonTextProps["size"];
11
- valueSize?: CommonTextProps["size"];
12
- labelFont?: CommonTextProps["font"];
13
- valueFont?: CommonTextProps["font"];
14
- labelColor?: CommonTextProps["color"];
15
- valueColor?: CommonTextProps["color"];
9
+ labelSize?: CommonTextProps['size'];
10
+ valueSize?: CommonTextProps['size'];
11
+ labelFont?: CommonTextProps['font'];
12
+ valueFont?: CommonTextProps['font'];
13
+ labelColor?: CommonTextProps['color'];
14
+ valueColor?: CommonTextProps['color'];
16
15
  }>;
17
16
  export declare const Container: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
18
17
  export declare const Row: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -32,7 +31,7 @@ export type DetailProps = {
32
31
  export type SectionProps = {
33
32
  label?: string;
34
33
  color?: string;
35
- formatAs?: "CLP" | "Hours" | "Default";
36
- orientation?: "right" | "left" | "bottom" | "top";
34
+ formatAs?: 'CLP' | 'Hours' | 'Default';
35
+ orientation?: 'right' | 'left' | 'bottom' | 'top';
37
36
  value?: string | number;
38
37
  };
@@ -1,4 +1,3 @@
1
1
  import { default as React } from 'react';
2
2
  import { DragareaProps } from './types';
3
-
4
3
  export declare const Dragarea: React.FunctionComponent<DragareaProps>;
@@ -1,5 +1,4 @@
1
1
  import { DragareaProps } from './types';
2
-
3
2
  export declare const Dropzone: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, DragareaProps>> & string;
4
3
  export declare const Message: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
5
4
  export declare const Input: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>> & string;
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export declare const CloudArrowUpIcon: React.FC<JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement>>;
4
3
  export declare const ExclamationTriangleIcon: React.FC<JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement>>;
5
4
  export declare const DocumentTextIcon: React.FC<JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement>>;
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  /**
4
3
  * @description
5
4
  * A dropdown component that uses Tailwind CSS for styling.
@@ -31,7 +30,7 @@ export type DropdownProps = {
31
30
  disabled?: boolean;
32
31
  onChange?: (value: string) => void;
33
32
  uncontrollable?: boolean;
34
- orientation?: "left" | "right" | "top" | "bottom";
33
+ orientation?: 'left' | 'right' | 'top' | 'bottom';
35
34
  search?: boolean;
36
35
  icon?: React.ReactNode;
37
36
  itemColor?: string;
@@ -1,6 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { CommonTextProps } from '@nectiasw/components/Text';
3
-
2
+ import { CommonTextProps } from '../Text';
4
3
  /**
5
4
  * @description
6
5
  * Empty state for containers.
@@ -1,4 +1,3 @@
1
1
  import { default as React } from 'react';
2
2
  import { FirstModalProps } from './types.ts';
3
-
4
3
  export declare const FirstModal: React.FunctionComponent<FirstModalProps>;
@@ -1,5 +1,4 @@
1
1
  import { FirstModalProps } from './types';
2
-
3
2
  export declare const ModalBackground: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
4
3
  export declare const ModalContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, FirstModalProps>> & string;
5
4
  export declare const Title: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>> & string;
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export type FirstModalProps = {
4
3
  title?: string;
5
4
  isOpen?: boolean;
@@ -11,5 +10,5 @@ export type FirstModalProps = {
11
10
  Icon?: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
12
11
  width?: number;
13
12
  height?: number;
14
- unit?: "rem" | "%" | "px";
13
+ unit?: 'rem' | '%' | 'px';
15
14
  };
@@ -1,26 +1,25 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export declare const Flex: React.FC<FlexProps>;
4
3
  export declare const FlexItem: React.FC<FlexItemProps>;
5
4
  export type FlexProps = {
6
5
  gap?: number;
7
6
  display?: boolean;
8
7
  className?: string;
9
- direction?: "col" | "row" | "col-reverse" | "row-reverse";
10
- alignItems?: "center" | "start" | "end";
11
- justifyContent?: "center" | "start" | "end" | "around" | "between";
8
+ direction?: 'col' | 'row' | 'col-reverse' | 'row-reverse';
9
+ alignItems?: 'center' | 'start' | 'end';
10
+ justifyContent?: 'center' | 'start' | 'end' | 'around' | 'between';
12
11
  spaceX?: number;
13
12
  spaceY?: number;
14
13
  children?: React.ReactNode;
15
- wrap?: "wrap" | "nowrap" | "wrap-reverse";
14
+ wrap?: 'wrap' | 'nowrap' | 'wrap-reverse';
16
15
  };
17
16
  export type FlexItemProps = {
18
17
  grow?: 1 | 0;
19
18
  shrink?: 1 | 0;
20
19
  children?: React.ReactNode;
21
- self?: "start" | "center" | "end" | "stretch" | "baseline" | "auto";
20
+ self?: 'start' | 'center' | 'end' | 'stretch' | 'baseline' | 'auto';
22
21
  basis?: number | string;
23
- justifySelf?: "auto" | "start" | "end" | "center" | "stretch";
24
- order?: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "first" | "last" | "none";
22
+ justifySelf?: 'auto' | 'start' | 'end' | 'center' | 'stretch';
23
+ order?: '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12' | 'first' | 'last' | 'none';
25
24
  className?: string;
26
25
  };
@@ -1,9 +1,8 @@
1
1
  import { FlexProps, FlexItemProps } from '.';
2
-
3
2
  type ParentArgs = Partial<FlexProps>;
4
3
  type ChildArgs = Partial<FlexItemProps>;
5
4
  export declare const classes: {
6
- child: ({ self, grow, basis, order, shrink, className, justifySelf, }: ChildArgs) => string;
5
+ child: ({ self, grow, basis, order, shrink, className, justifySelf }: ChildArgs) => string;
7
6
  parent: ({ gap, wrap, spaceX, spaceY, display, direction, className, alignItems, justifyContent, }: ParentArgs) => string;
8
7
  };
9
8
  export {};
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  declare global {
4
3
  interface Window {
5
4
  gtag: (...args: any) => void;
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export declare const LogoSVG: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
4
3
  export declare const WorldSVG: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
5
4
  export declare const LinkedinSVG: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  /**
4
3
  * @description
5
4
  * Grid view system for CCC components.