1mpacto-react-ui 0.2.0-beta.4 → 0.2.0-beta.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.
@@ -1,7 +1,7 @@
1
1
  declare const _default: {
2
2
  "name": "1mpacto-react-ui",
3
3
  "private": false,
4
- "version": "0.2.0-beta.4",
4
+ "version": "0.2.0-beta.5",
5
5
  "type": "module",
6
6
  "engines": {
7
7
  "node": ">=20.19.4",
@@ -9,12 +9,13 @@ declare const _default: {
9
9
  },
10
10
  "scripts": {
11
11
  "copy:toastify-css": "cp ./node_modules/react-toastify/dist/ReactToastify.css ./dist/assets/toast.css",
12
+ "copy:mixin-scss": "cp ./src/styles/_mixins.scss ./dist/assets/_mixins.scss",
12
13
  "dev": "vite",
13
- "transform:typography": "node -r ./src/utils/register-ts-node.js ./src/utils/generate-file-typography.js",
14
- "transform:color": "node -r ./src/utils/register-ts-node.js ./src/utils/generate-file-color.js",
14
+ "transform:style": "node -r ./src/utils/register-ts-node.js ./src/utils/generate-file-style.js",
15
15
  "postProcess:fontfamily": "node ./src/utils/post-process-css.js",
16
- "process:transformStyle": "npm run transform:color && npm run postProcess:fontfamily && npm run transform:typography",
17
- "build": "tsc -b && vite build && npm run build:css && npm run copy:toastify-css && npm run build:fontfamily && npm run process:transformStyle",
16
+ "process:transformStyle": "npm run postProcess:fontfamily && npm run transform:style",
17
+ "process:copyStyle": "npm run copy:mixin-scss && npm run copy:toastify-css",
18
+ "build": "tsc -b && vite build && npm run build:css && npm run build:fontfamily && npm run process:copyStyle && npm run process:transformStyle",
18
19
  "build:css": "tailwindcss -i ./src/styles/index.scss -o ./dist/assets/core.css --minify",
19
20
  "build:fontfamily": "sass ./src/styles/fontfamily.scss ./dist/assets/fontfamily.css --no-source-map --style=compressed",
20
21
  "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
@@ -87,7 +88,10 @@ declare const _default: {
87
88
  "./dist/assets/colors.css": "./dist/assets/colors.css",
88
89
  "./dist/assets/_colors.scss": "./dist/assets/_colors.scss",
89
90
  "./dist/assets/typography.css": "./dist/assets/typography.css",
90
- "./dist/assets/_typography.scss": "./dist/assets/_typography.scss"
91
+ "./dist/assets/_typography.scss": "./dist/assets/_typography.scss",
92
+ "./dist/assets/screen.css": "./dist/assets/screen.css",
93
+ "./dist/assets/_screen.scss": "./dist/assets/_screen.scss",
94
+ "./dist/assets/_mixins.scss": "./dist/assets/_mixins.scss"
91
95
  },
92
96
  "files": [
93
97
  "/dist"
@@ -0,0 +1,3 @@
1
+ import { ICollapseV2 } from '../../interfaces/components/Collapse';
2
+ declare const CollapseV2: ({ children, open, className, id, classNameContainer }: ICollapseV2) => import("react/jsx-runtime").JSX.Element;
3
+ export default CollapseV2;
@@ -0,0 +1,18 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ declare const meta: {
3
+ title: string;
4
+ component: ({ children, open, className, id, classNameContainer }: import('../../interfaces/components/Collapse').ICollapseV2) => import("react/jsx-runtime").JSX.Element;
5
+ parameters: {
6
+ layout: string;
7
+ };
8
+ tags: string[];
9
+ argTypes: {
10
+ className: {
11
+ type: "string";
12
+ };
13
+ };
14
+ render: (args: import('../../interfaces/components/Collapse').ICollapseV2) => import("react/jsx-runtime").JSX.Element;
15
+ };
16
+ export default meta;
17
+ type Story = StoryObj<typeof meta>;
18
+ export declare const Default: Story;
@@ -72,8 +72,9 @@ import { default as GradientBarChart } from './Chart/GradientBarChart';
72
72
  import { default as StepIndicator } from './Step/StepIndicator';
73
73
  import { default as TextEditor } from './TextEditor/TextEditor';
74
74
  import { ITextEditorProps } from '../interfaces/components/TextEditor';
75
+ import { default as CollapseV2 } from './Collapse/CollapseV2';
75
76
  import * as utilTable from '@tanstack/react-table';
76
77
  import type * as SelectDropdownContainerType from 'react-select';
77
78
  import type * as FilterContainerType from '../interfaces/components/FilterContainer';
78
- export { TPublish, Button, Popover, Calendar, CalendarRange, DatePicker, DateRangePicker, FilterDate, InputFloatingInner, InputReguler, Pagination, Tabs, TabPanel, Table, TableVirtualization, ListVirtualization, SelectDropdownContainer, utilTable, Switch, ButtonIcon, Badges, Chips, RadioCheckbox, RadioCheckboxLabel, Breadcrumbs, Sidebar, Collapse, ModalDialog, SelectDropdownContainerComponents, Timeline, FilterContainer, NumberFormat, PatternFormat, DefaultCheckedChecboxIcon, DefaultRadioChecboxIcon, ConfigTable, PortalComponent, AlertContainer, UploadFile, TruncateComponent, UploadImage, Textarea, DoughnutChart, MonthYearPicker, CheckboxTable, InputNative, UploadMultipleFile, ErrorMessage, TextareaFloatingInner, Step, LineChart, Tooltip, ButtonPopover, GradientLineChart, GradientBarChart, StepIndicator, TextEditor, };
79
+ export { TPublish, Button, Popover, Calendar, CalendarRange, DatePicker, DateRangePicker, FilterDate, InputFloatingInner, InputReguler, Pagination, Tabs, TabPanel, Table, TableVirtualization, ListVirtualization, SelectDropdownContainer, utilTable, Switch, ButtonIcon, Badges, Chips, RadioCheckbox, RadioCheckboxLabel, Breadcrumbs, Sidebar, Collapse, ModalDialog, SelectDropdownContainerComponents, Timeline, FilterContainer, NumberFormat, PatternFormat, DefaultCheckedChecboxIcon, DefaultRadioChecboxIcon, ConfigTable, PortalComponent, AlertContainer, UploadFile, TruncateComponent, UploadImage, Textarea, DoughnutChart, MonthYearPicker, CheckboxTable, InputNative, UploadMultipleFile, ErrorMessage, TextareaFloatingInner, Step, LineChart, Tooltip, ButtonPopover, GradientLineChart, GradientBarChart, StepIndicator, TextEditor, CollapseV2, };
79
80
  export type { ITableColumnDef, IRefPopover, IRefTableVirtualization, IRefListVirtualization, IRefSelectDropdownContainer, IChildrenSelectDropdownContainer, ISidebarModule, SelectDropdownContainerType, FilterContainerType, IInputReguler, IInputFloatingInner, ITableConfig, TButtonVariants, TButtonSize, ITabsList, ITextarea, IListVirtualization, ITableVirtualization, IRefSidebar, IChildrenIconCompany, ICloneElementSidebar, IDataDoughnutChart, IDataInnerLabelDoughnutChart, ISelectDropdownContainer, IDatePicker, IPopover, IInputNative, IUploadMultipleFileValue, IDataStepList, IDataLineChart, IChips, IRefButtonPopover, TGradientLineChartCustomTooltip, IGradientLineChart, IGradientLineChartDataSet, IGradientLineChartData, TGradientBarChartCustomTooltip, IGradientBarChart, IGradientBarChartDataSet, IGradientBarChartData, IFilterDateButtonList, TKeyFilterDateButtonListType, IMasonryLayout, IDataGradientBarChartCustomTooltip, IDataGradientLineChartCustomTooltip, ITextEditorProps, ICollapse, };
@@ -1,4 +1,4 @@
1
- export type Itypography = 'payhere-h1' | 'payhere-h2' | 'payhere-h3' | 'payhere-h4' | 'payhere-h5' | 'payhere-h6' | 'payhere-body-lr' | 'payhere-body-lm' | 'payhere-body-ls' | 'payhere-body-lb' | 'payhere-body-mr' | 'payhere-body-mm' | 'payhere-body-ms' | 'payhere-body-mb' | 'payhere-label-r' | 'payhere-label-m' | 'payhere-body-sr' | 'payhere-body-sm' | 'payhere-body-esr' | 'payhere-body-esm' | 'laba-h1' | 'laba-h2' | 'laba-base-rb' | 'laba-base-rs' | 'laba-base-rr' | 'laba-base-sb' | 'laba-base-ss' | 'laba-base-sr' | 'laba-subtitle-rb' | 'laba-subtitle-rs' | 'laba-subtitle-rr' | 'laba-subtitle-sb' | 'laba-subtitle-ss' | 'laba-subtitle-sr';
1
+ export type Itypography = 'payhere-h1' | 'payhere-h2' | 'payhere-h3' | 'payhere-h4' | 'payhere-h5' | 'payhere-h6' | 'payhere-body-lr' | 'payhere-body-lm' | 'payhere-body-ls' | 'payhere-body-lb' | 'payhere-body-mr' | 'payhere-body-mm' | 'payhere-body-ms' | 'payhere-body-mb' | 'payhere-label-r' | 'payhere-label-m' | 'payhere-body-sr' | 'payhere-body-sm' | 'payhere-body-esr' | 'payhere-body-esm' | 'laba-title-lb' | 'laba-title-ls' | 'laba-title-lr' | 'laba-title-mb' | 'laba-title-ms' | 'laba-title-mr' | 'laba-h1' | 'laba-h1-b' | 'laba-h1-sb' | 'laba-h1-r' | 'laba-h2' | 'laba-h2-b' | 'laba-h2-sb' | 'laba-h2-r' | 'laba-base-rb' | 'laba-base-rs' | 'laba-base-rr' | 'laba-base-sb' | 'laba-base-ss' | 'laba-base-sr' | 'laba-subtitle-rb' | 'laba-subtitle-rs' | 'laba-subtitle-rr' | 'laba-subtitle-sb' | 'laba-subtitle-ss' | 'laba-subtitle-sr';
2
2
  export declare const configtypography: {
3
3
  'payhere-h1': string;
4
4
  'payhere-h2': string;
@@ -20,8 +20,20 @@ export declare const configtypography: {
20
20
  'payhere-body-sm': string;
21
21
  'payhere-body-esr': string;
22
22
  'payhere-body-esm': string;
23
+ 'laba-title-lb': string;
24
+ 'laba-title-ls': string;
25
+ 'laba-title-lr': string;
26
+ 'laba-title-mb': string;
27
+ 'laba-title-ms': string;
28
+ 'laba-title-mr': string;
23
29
  'laba-h1': string;
30
+ 'laba-h1-b': string;
31
+ 'laba-h1-sb': string;
32
+ 'laba-h1-r': string;
24
33
  'laba-h2': string;
34
+ 'laba-h2-b': string;
35
+ 'laba-h2-sb': string;
36
+ 'laba-h2-r': string;
25
37
  'laba-base-rb': string;
26
38
  'laba-base-rs': string;
27
39
  'laba-base-rr': string;
@@ -9,3 +9,10 @@ export interface ICollapse {
9
9
  triggerCalCulateContainer?: number | string | boolean | object;
10
10
  delayTriggerCalculateHeight?: number;
11
11
  }
12
+ export interface ICollapseV2 {
13
+ children: ReactNode | ReactNode[];
14
+ open: boolean;
15
+ id: string;
16
+ className?: string;
17
+ classNameContainer?: string | undefined;
18
+ }
@@ -1,11 +1,9 @@
1
1
  export interface ITruncateComponent extends React.HTMLAttributes<HTMLDivElement> {
2
2
  children: React.ReactNode[] | React.ReactNode;
3
- initialVisibleCount: number;
4
3
  maxWidth?: string;
5
- moreElement: (count: number) => React.ReactNode | (() => React.ReactNode[]);
4
+ moreElement: (count: number) => React.ReactNode | React.ReactNode[];
6
5
  style?: React.CSSProperties;
7
6
  className?: string;
8
7
  gap?: number;
9
8
  gapStyle?: string;
10
- triggerCalCulateContainer?: number | string | boolean | object;
11
9
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "1mpacto-react-ui",
3
3
  "private": false,
4
- "version": "0.2.0-beta.4",
4
+ "version": "0.2.0-beta.5",
5
5
  "type": "module",
6
6
  "engines": {
7
7
  "node": ">=20.19.4",
@@ -9,12 +9,13 @@
9
9
  },
10
10
  "scripts": {
11
11
  "copy:toastify-css": "cp ./node_modules/react-toastify/dist/ReactToastify.css ./dist/assets/toast.css",
12
+ "copy:mixin-scss": "cp ./src/styles/_mixins.scss ./dist/assets/_mixins.scss",
12
13
  "dev": "vite",
13
- "transform:typography": "node -r ./src/utils/register-ts-node.js ./src/utils/generate-file-typography.js",
14
- "transform:color": "node -r ./src/utils/register-ts-node.js ./src/utils/generate-file-color.js",
14
+ "transform:style": "node -r ./src/utils/register-ts-node.js ./src/utils/generate-file-style.js",
15
15
  "postProcess:fontfamily": "node ./src/utils/post-process-css.js",
16
- "process:transformStyle": "npm run transform:color && npm run postProcess:fontfamily && npm run transform:typography",
17
- "build": "tsc -b && vite build && npm run build:css && npm run copy:toastify-css && npm run build:fontfamily && npm run process:transformStyle",
16
+ "process:transformStyle": "npm run postProcess:fontfamily && npm run transform:style",
17
+ "process:copyStyle": "npm run copy:mixin-scss && npm run copy:toastify-css",
18
+ "build": "tsc -b && vite build && npm run build:css && npm run build:fontfamily && npm run process:copyStyle && npm run process:transformStyle",
18
19
  "build:css": "tailwindcss -i ./src/styles/index.scss -o ./dist/assets/core.css --minify",
19
20
  "build:fontfamily": "sass ./src/styles/fontfamily.scss ./dist/assets/fontfamily.css --no-source-map --style=compressed",
20
21
  "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
@@ -87,7 +88,10 @@
87
88
  "./dist/assets/colors.css": "./dist/assets/colors.css",
88
89
  "./dist/assets/_colors.scss": "./dist/assets/_colors.scss",
89
90
  "./dist/assets/typography.css": "./dist/assets/typography.css",
90
- "./dist/assets/_typography.scss": "./dist/assets/_typography.scss"
91
+ "./dist/assets/_typography.scss": "./dist/assets/_typography.scss",
92
+ "./dist/assets/screen.css": "./dist/assets/screen.css",
93
+ "./dist/assets/_screen.scss": "./dist/assets/_screen.scss",
94
+ "./dist/assets/_mixins.scss": "./dist/assets/_mixins.scss"
91
95
  },
92
96
  "files": [
93
97
  "/dist"