akku-kit 1.0.0-alpha.0 → 1.0.0-alpha.2
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/README.md +110 -0
- package/dist/arrowRightBlack.png +0 -0
- package/dist/assets/arrowRightBlack.png +0 -0
- package/dist/assets/images/arrowRightBlack.png +0 -0
- package/dist/assets/images/nodata.png +0 -0
- package/dist/assets/images/upload-cloud-10ca378ec1b464ed.png +0 -0
- package/dist/assets/nodata.png +0 -0
- package/dist/components/FileUploader/CloseIcon.d.ts +8 -0
- package/dist/components/FileUploader/FileUploader.d.ts +15 -0
- package/dist/components/FileUploader/FileUploader.stories.d.ts +9 -0
- package/dist/components/FileUploader/index.d.ts +1 -0
- package/dist/components/Form/RadioButtonField/RadioButtonField.d.ts +4 -0
- package/dist/components/Form/RadioButtonField/RadioButtonField.types.d.ts +14 -0
- package/dist/components/Form/RadioButtonField/index.d.ts +2 -0
- package/dist/components/Form/SwitchButtonField/SwitchButtonField.d.ts +1 -1
- package/dist/components/Tabs/Tabs.d.ts +4 -0
- package/dist/components/Tabs/Tabs.stories.d.ts +20 -0
- package/dist/components/Tabs/Tabs.types.d.ts +12 -0
- package/dist/components/Tabs/index.d.ts +2 -0
- package/dist/components/Typography/Display/Display.stories.d.ts +1 -1
- package/dist/components/Typography/Display/Display.types.d.ts +1 -1
- package/dist/components/Typography/Label/Label.d.ts +4 -0
- package/dist/components/Typography/Label/Label.types.d.ts +9 -0
- package/dist/components/Typography/Label/index.d.ts +2 -0
- package/dist/components/Typography/Label/label.stories.d.ts +50 -0
- package/dist/index.cjs.js +5 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.esm.js +5 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/nodata.png +0 -0
- package/dist/styles.css +1 -1
- package/package.json +23 -5
- package/dist/components/Input.d.ts +0 -1
- package/dist/components/Modal/Modal.d.ts +0 -5
- package/dist/components/Modal/Modal.stories.d.ts +0 -12
- package/dist/components/Modal/Modal.types.d.ts +0 -56
- package/dist/components/Modal/index.d.ts +0 -2
- package/dist/storybook/Button.d.ts +0 -15
- package/dist/storybook/Button.stories.d.ts +0 -23
- package/dist/storybook/Header.d.ts +0 -12
- package/dist/storybook/Header.stories.d.ts +0 -18
- package/dist/storybook/Page.d.ts +0 -3
- package/dist/storybook/Page.stories.d.ts +0 -12
package/dist/nodata.png
ADDED
Binary file
|
package/dist/styles.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
.
|
1
|
+
.Button-module_button__18Bed{align-items:center;border:none;border-radius:8px;cursor:pointer;display:inline-flex;font-size:14px;font-weight:600;gap:.5rem;height:40px;justify-content:center;line-height:20px;padding:.5rem 1rem;transition:all .3s ease}.Button-module_button__18Bed:disabled{cursor:not-allowed;opacity:.5}.Button-module_button__18Bed:active{transform:scale(.98)}.Button-module_button__18Bed:focus{outline:2px solid var(--color-btn-focus-border);outline-offset:2px}.Button-module_button__18Bed:hover{background-color:inherit}.Button-module_button__18Bed.Button-module_primary__st6yY{background-color:var(--color-btn-primary-bg);color:var(--color-btn-primary-text)}.Button-module_button__18Bed.Button-module_secondary__j-3rj{background:var(--color-btn-secondary-bg);border:1px solid var(--color-btn-secondary-border);color:var(--color-btn-secondary-text)}.Button-module_button__18Bed.Button-module_danger__Hxs5n{background-color:var(--color-btn-danger-bg);color:var(--color-btn-primary-text)}.Button-module_button__18Bed.Button-module_primary-outlined__P6wo5{background-color:var(--color-white);border:1px solid var(--color-btn-outlined-primary-border);color:var(--color-btn-primary-outlined)}.Button-module_button__18Bed.Button-module_tertiary__Nd7xM{background-color:var(--color-btn-tertiary-bg);color:var(--color-btn-tertiary-text)}.Button-module_button__18Bed.Button-module_warning__1voOb{background-color:var(--color-btn-warning-bg);color:var(--color-btn-warning-text)}.Button-module_button__18Bed.Button-module_outline__TFr94{background-color:var(--color-white);border:1px solid var(--color-btn-outline-border);color:var(--color-btn-outline-text)}.Button-module_button__18Bed:hover.Button-module_primary__st6yY{background-color:var(--color-btn-primary-bg-hover)}.Button-module_button__18Bed:hover.Button-module_secondary__j-3rj{background-color:var(--color-btn-secondary-bg-hover)}.Button-module_button__18Bed:hover.Button-module_danger__Hxs5n{background-color:var(--color-btn-danger-bg-hover)}.Button-module_button__18Bed:hover.Button-module_primary-outlined__P6wo5{background-color:var(--color-btn-primary-outlined-hover)}.Button-module_button__18Bed:hover.Button-module_tertiary__Nd7xM{background-color:var(--color-btn-tertiary-bg-hover)}.Button-module_button__18Bed:hover.Button-module_warning__1voOb{background-color:var(--color-btn-warning-bg-hover)}.Button-module_button__18Bed:hover.Button-module_outline__TFr94{background-color:var(--color-btn-outline-bg-hover)}.Button-module_button__18Bed:active.Button-module_primary__st6yY{background-color:var(--color-btn-primary-bg-active)}.Button-module_button__18Bed:active.Button-module_secondary__j-3rj{background-color:var(--color-btn-secondary-bg-active)}.Button-module_button__18Bed:active.Button-module_danger__Hxs5n{background-color:var(--color-btn-danger-bg-active)}.Button-module_button__18Bed:active.Button-module_primary-outlined__P6wo5{background-color:var(--color-btn-primary-outlined-active)}.Button-module_button__18Bed:active.Button-module_tertiary__Nd7xM{background-color:var(--color-btn-tertiary-bg-active)}.Button-module_button__18Bed:active.Button-module_warning__1voOb{background-color:var(--color-btn-warning-bg-active)}.Button-module_button__18Bed:active.Button-module_outline__TFr94{background-color:var(--color-btn-outline-bg-active)}.Button-module_button__18Bed:focus.Button-module_primary__st6yY{outline:2px solid var(--color-btn-primary-focus-border)}.Button-module_button__18Bed:focus.Button-module_secondary__j-3rj{outline:2px solid var(--color-btn-secondary-focus-border)}.Button-module_button__18Bed:focus.Button-module_danger__Hxs5n{outline:2px solid var(--color-btn-danger-focus-border)}.Button-module_button__18Bed:focus.Button-module_primary-outlined__P6wo5{outline:2px solid var(--color-btn-primary-outlined-focus)}.Button-module_button__18Bed:focus.Button-module_tertiary__Nd7xM{outline:2px solid var(--color-btn-tertiary-focus-border)}.Button-module_button__18Bed:focus.Button-module_warning__1voOb{outline:2px solid var(--color-btn-warning-focus-border)}.Button-module_button__18Bed:focus.Button-module_outline__TFr94{outline:2px solid var(--color-btn-outline-focus-border)}.ButtonV1-module_button__NVATw{align-items:center;border:none;border-radius:8px;cursor:pointer;display:inline-flex;font-size:14px;font-weight:600;gap:.5rem;height:40px;justify-content:center;line-height:20px;padding:.5rem 1rem;transition:all .3s ease}.ButtonV1-module_button__NVATw:disabled{cursor:not-allowed;opacity:.5}.ButtonV1-module_button__NVATw:active{transform:scale(.98)}.ButtonV1-module_button__NVATw:focus{outline:2px solid var(--color-btn-focus-border);outline-offset:2px}.ButtonV1-module_button__NVATw:hover{background-color:inherit}.ButtonV1-module_iconOnly__8uO1G{padding:.5rem}.ButtonV1-module_iconOnly__8uO1G.ButtonV1-module_small__VXuQn{padding:.25rem}.ButtonV1-module_iconOnly__8uO1G.ButtonV1-module_large__VBmZG{padding:.75rem}.ButtonV1-module_small__VXuQn{font-size:12px;height:32px;padding:.25rem .75rem}.ButtonV1-module_medium__Kbj6C{font-size:14px;height:40px;padding:.5rem 1rem}.ButtonV1-module_large__VBmZG{font-size:16px;height:48px;padding:.75rem 1.25rem}.ButtonV1-module_text__fsgIT{background:none;color:var(--color-primary)}.ButtonV1-module_contained__3odUU{background-color:var(--color-primary);color:#fff}.ButtonV1-module_contained__3odUU:hover{background-color:var(--color-primary-dark)}.ButtonV1-module_outlined__fBwOa{background:none;border:1px solid var(--color-primary);color:var(--color-primary)}.ButtonV1-module_outlined__fBwOa:hover{background-color:var(--color-primary-light)}.ButtonV1-module_fullWidth__3bzGN{width:100%}.ButtonV1-module_icon__E1hc4,.ButtonV1-module_loadingIndicator__MVbPU{align-items:center;display:inline-flex}.ButtonV1-module_loadingSpacing__J8D3p{display:inline-block;width:.5rem}.ButtonV1-module_label__bBH8v{display:inline-block}.ButtonV1-module_spinner__g--dg{animation:ButtonV1-module_spin__CxbXc .6s linear infinite;border:2px solid transparent;border-radius:50%;border-top-color:currentcolor;height:1rem;width:1rem}@keyframes ButtonV1-module_spin__CxbXc{to{transform:rotate(1turn)}}.ButtonV1-module_loading__q3Loz{pointer-events:none}.ButtonV1-module_primary__nfYsS{--color-primary:#1976d2;--color-primary-light:#e3f2fd;--color-primary-dark:#1565c0}.ButtonV1-module_secondary__HsFea{--color-primary:#9c27b0;--color-primary-light:#f3e5f5;--color-primary-dark:#7b1fa2}.ButtonV1-module_success__BngMC{--color-primary:#2e7d32;--color-primary-light:#e8f5e9;--color-primary-dark:#1b5e20}.ButtonV1-module_error__T-K4-{--color-primary:#d32f2f;--color-primary-light:#fcebea;--color-primary-dark:#c62828}.MultiSelectField-module_wrapper__RPcXA{display:flex;flex-direction:column;gap:4px;position:relative;width:100%}.MultiSelectField-module_wrapper__RPcXA:hover .MultiSelectField-module_custom-textfield-tooltip__3-u-E{opacity:1;visibility:visible}.MultiSelectField-module_label__QeAi9{color:#111827;font-family:Inter,sans-serif;font-size:14px;font-weight:500}.MultiSelectField-module_required__yysY5{color:#dc2626;font-family:Inter,sans-serif;font-size:14px;margin-left:2px}.MultiSelectField-module_input-container__MqPsg{border:1px solid #d1d5db;border-radius:8px;display:flex;overflow:hidden;transition:border-color .2s ease-in-out}.MultiSelectField-module_input-container__MqPsg:focus-within{border-color:#2563eb}.MultiSelectField-module_input-container__MqPsg.MultiSelectField-module_disabled__1jvI6{background-color:#f9fafb;border-color:#e5e7eb}.MultiSelectField-module_input-container__MqPsg.MultiSelectField-module_disabled__1jvI6 .MultiSelectField-module_custom-textfield-prefix__wC5Ll{background-color:#f3f4f6;color:#9ca3af}.MultiSelectField-module_field-error__4cOD8{border-color:#dc2626}.MultiSelectField-module_field-input__wiEx3{border:none;color:#111827;flex:1;font-family:Inter,sans-serif;font-size:14px;outline:none;padding:10px 14px;width:100%}.MultiSelectField-module_field-input__wiEx3:disabled{background-color:#f9fafb;color:#9ca3af;cursor:not-allowed;font-family:Inter,sans-serif}.MultiSelectField-module_dropdown-label__QZcNI{color:red!important;font-family:Inter,sans-serif;font-size:14px;font-weight:500}.PhoneField-module_wrapper__4RF-f{display:flex;flex-direction:column;gap:4px;position:relative;width:100%}.PhoneField-module_wrapper__4RF-f:hover .PhoneField-module_custom-textfield-tooltip__MXJzj{opacity:1;visibility:visible}.PhoneField-module_label__DOYhx{color:#111827;font-family:Inter,sans-serif;font-size:14px;font-weight:500}.PhoneField-module_required__P5Xoy{color:#dc2626;font-family:Inter,sans-serif;font-size:14px;margin-left:2px}.PhoneField-module_input-container__Lag-b{border:1px solid #d1d5db;border-radius:8px;display:flex;overflow:hidden;transition:border-color .2s ease-in-out}.PhoneField-module_input-container__Lag-b:focus-within{border-color:#2563eb}.PhoneField-module_input-container__Lag-b.PhoneField-module_disabled__4iC9k{background-color:#f9fafb;border-color:#e5e7eb}.PhoneField-module_input-container__Lag-b.PhoneField-module_disabled__4iC9k .PhoneField-module_custom-textfield-prefix__SPk5T{background-color:#f3f4f6;color:#9ca3af}.PhoneField-module_field-error__W8zll{border-color:#dc2626}.PhoneField-module_field-input__8mQ7h{border:none;color:#111827;flex:1;font-family:Inter,sans-serif;font-size:14px;outline:none;padding:10px 14px;width:100%}.PhoneField-module_field-input__8mQ7h:disabled{background-color:#f9fafb;color:#9ca3af;cursor:not-allowed;font-family:Inter,sans-serif}
|
package/package.json
CHANGED
@@ -1,6 +1,13 @@
|
|
1
1
|
{
|
2
2
|
"name": "akku-kit",
|
3
|
-
"version": "1.0.0-alpha.
|
3
|
+
"version": "1.0.0-alpha.2",
|
4
|
+
"description": "A modern UI framework built for Akku projects. Includes reusable components, form fields, charts, and utilities with full TypeScript support and Storybook integration.",
|
5
|
+
"repository": {
|
6
|
+
"type": "git",
|
7
|
+
"url": "git+https://bitbucket.org/cnw-bitbucket-ws/akku-ui-framework.git"
|
8
|
+
},
|
9
|
+
"author": "Akku Team",
|
10
|
+
"license": "MIT",
|
4
11
|
"main": "dist/index.cjs.js",
|
5
12
|
"module": "dist/index.esm.js",
|
6
13
|
"types": "dist/index.d.ts",
|
@@ -14,10 +21,21 @@
|
|
14
21
|
"start": "storybook dev -p 4002",
|
15
22
|
"build-storybook": "storybook build"
|
16
23
|
},
|
17
|
-
"keywords": [
|
18
|
-
|
19
|
-
|
20
|
-
|
24
|
+
"keywords": [
|
25
|
+
"akku",
|
26
|
+
"akku-kit",
|
27
|
+
"ui-framework",
|
28
|
+
"component-library",
|
29
|
+
"react-components",
|
30
|
+
"typescript",
|
31
|
+
"form-fields",
|
32
|
+
"charts",
|
33
|
+
"table",
|
34
|
+
"typography",
|
35
|
+
"skeleton-loader",
|
36
|
+
"storybook",
|
37
|
+
"design-system"
|
38
|
+
],
|
21
39
|
"peerDependencies": {
|
22
40
|
"react": "^18.0.0",
|
23
41
|
"react-dom": "^18.0.0"
|
@@ -1 +0,0 @@
|
|
1
|
-
export default function Input(): import("react/jsx-runtime").JSX.Element;
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
2
|
-
import Modal from './Modal';
|
3
|
-
declare const meta: Meta<typeof Modal>;
|
4
|
-
export default meta;
|
5
|
-
type Story = StoryObj<typeof Modal>;
|
6
|
-
export declare const Default: Story;
|
7
|
-
export declare const Centered: Story;
|
8
|
-
export declare const NotCentered: Story;
|
9
|
-
export declare const MaskClosable: Story;
|
10
|
-
export declare const NotDestroyOnClose: Story;
|
11
|
-
export declare const CustomContent: Story;
|
12
|
-
export declare const WithCustomClassName: Story;
|
@@ -1,56 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
/**
|
3
|
-
* Defines the props accepted by the Modal component.
|
4
|
-
*/
|
5
|
-
export interface ModalProps {
|
6
|
-
/**
|
7
|
-
* Controls the visibility of the modal.
|
8
|
-
*/
|
9
|
-
isOpen: boolean;
|
10
|
-
/**
|
11
|
-
* Callback function to close the modal.
|
12
|
-
*/
|
13
|
-
handleClose: () => void;
|
14
|
-
/**
|
15
|
-
* If true, the modal and its overlay will be unmounted from the DOM when closed.
|
16
|
-
* If false, it will remain in the DOM but hidden.
|
17
|
-
* @default true
|
18
|
-
*/
|
19
|
-
destroyOnClose?: boolean;
|
20
|
-
/**
|
21
|
-
* If true, the modal content will be vertically and horizontally centered.
|
22
|
-
* @default true
|
23
|
-
*/
|
24
|
-
centered?: boolean;
|
25
|
-
/**
|
26
|
-
* If true, clicking the modal mask (overlay) will close the modal.
|
27
|
-
* @default false
|
28
|
-
*/
|
29
|
-
maskClosable?: boolean;
|
30
|
-
/**
|
31
|
-
* Additional CSS class name for the modal overlay.
|
32
|
-
*/
|
33
|
-
className?: string;
|
34
|
-
/**
|
35
|
-
* The content to be displayed inside the modal.
|
36
|
-
*/
|
37
|
-
children: React.ReactNode;
|
38
|
-
/**
|
39
|
-
* Optional title for the modal. Used for accessibility labeling (aria-labelledby).
|
40
|
-
*/
|
41
|
-
title?: React.ReactNode;
|
42
|
-
/**
|
43
|
-
* Optional description for the modal. Used for accessibility labeling (aria-describedby).
|
44
|
-
*/
|
45
|
-
description?: React.ReactNode;
|
46
|
-
/**
|
47
|
-
* HTML ID for the modal title element if you want to provide one.
|
48
|
-
* If `title` prop is used and no `titleId` is given, a default ID will be generated.
|
49
|
-
*/
|
50
|
-
titleId?: string;
|
51
|
-
/**
|
52
|
-
* HTML ID for the modal description element if you want to provide one.
|
53
|
-
* If `description` prop is used and no `descriptionId` is given, a default ID will be generated.
|
54
|
-
*/
|
55
|
-
descriptionId?: string;
|
56
|
-
}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
import './button.css';
|
2
|
-
export interface ButtonProps {
|
3
|
-
/** Is this the principal call to action on the page? */
|
4
|
-
primary?: boolean;
|
5
|
-
/** What background color to use */
|
6
|
-
backgroundColor?: string;
|
7
|
-
/** How large should the button be? */
|
8
|
-
size?: 'small' | 'medium' | 'large';
|
9
|
-
/** Button contents */
|
10
|
-
label: string;
|
11
|
-
/** Optional click handler */
|
12
|
-
onClick?: () => void;
|
13
|
-
}
|
14
|
-
/** Primary UI component for user interaction */
|
15
|
-
export declare const Button: ({ primary, size, backgroundColor, label, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
@@ -1,23 +0,0 @@
|
|
1
|
-
import type { StoryObj } from '@storybook/react';
|
2
|
-
declare const meta: {
|
3
|
-
title: string;
|
4
|
-
component: ({ primary, size, backgroundColor, label, ...props }: import("./Button").ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
5
|
-
parameters: {
|
6
|
-
layout: string;
|
7
|
-
};
|
8
|
-
tags: string[];
|
9
|
-
argTypes: {
|
10
|
-
backgroundColor: {
|
11
|
-
control: "color";
|
12
|
-
};
|
13
|
-
};
|
14
|
-
args: {
|
15
|
-
onClick: import("@vitest/spy").Mock<(...args: any[]) => any>;
|
16
|
-
};
|
17
|
-
};
|
18
|
-
export default meta;
|
19
|
-
type Story = StoryObj<typeof meta>;
|
20
|
-
export declare const Primary: Story;
|
21
|
-
export declare const Secondary: Story;
|
22
|
-
export declare const Large: Story;
|
23
|
-
export declare const Small: Story;
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import './header.css';
|
2
|
-
type User = {
|
3
|
-
name: string;
|
4
|
-
};
|
5
|
-
export interface HeaderProps {
|
6
|
-
user?: User;
|
7
|
-
onLogin?: () => void;
|
8
|
-
onLogout?: () => void;
|
9
|
-
onCreateAccount?: () => void;
|
10
|
-
}
|
11
|
-
export declare const Header: ({ user, onLogin, onLogout, onCreateAccount }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
|
12
|
-
export {};
|
@@ -1,18 +0,0 @@
|
|
1
|
-
import type { StoryObj } from '@storybook/react';
|
2
|
-
declare const meta: {
|
3
|
-
title: string;
|
4
|
-
component: ({ user, onLogin, onLogout, onCreateAccount }: import("./Header").HeaderProps) => import("react/jsx-runtime").JSX.Element;
|
5
|
-
tags: string[];
|
6
|
-
parameters: {
|
7
|
-
layout: string;
|
8
|
-
};
|
9
|
-
args: {
|
10
|
-
onLogin: import("@vitest/spy").Mock<(...args: any[]) => any>;
|
11
|
-
onLogout: import("@vitest/spy").Mock<(...args: any[]) => any>;
|
12
|
-
onCreateAccount: import("@vitest/spy").Mock<(...args: any[]) => any>;
|
13
|
-
};
|
14
|
-
};
|
15
|
-
export default meta;
|
16
|
-
type Story = StoryObj<typeof meta>;
|
17
|
-
export declare const LoggedIn: Story;
|
18
|
-
export declare const LoggedOut: Story;
|
package/dist/storybook/Page.d.ts
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
import type { StoryObj } from '@storybook/react';
|
2
|
-
declare const meta: {
|
3
|
-
title: string;
|
4
|
-
component: import("react").FC<{}>;
|
5
|
-
parameters: {
|
6
|
-
layout: string;
|
7
|
-
};
|
8
|
-
};
|
9
|
-
export default meta;
|
10
|
-
type Story = StoryObj<typeof meta>;
|
11
|
-
export declare const LoggedOut: Story;
|
12
|
-
export declare const LoggedIn: Story;
|