stp-ui-kit 0.0.74 → 0.0.77
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/dist/assets/index.d.ts +8 -0
- package/dist/components/{Table → data/Table}/Table.d.ts +1 -1
- package/dist/components/data/index.d.ts +3 -0
- package/dist/components/{Dropdown → display/Dropdown}/Dropdown.d.ts +1 -9
- package/dist/components/display/Icon/Icon.d.ts +10 -0
- package/dist/components/display/OptionList/OptionList.d.ts +15 -0
- package/dist/components/display/SvgStyleWrapper/SvgStyleWrapper.d.ts +7 -0
- package/dist/components/{Typography → display/Typography}/Typography.d.ts +1 -1
- package/dist/components/display/index.d.ts +9 -0
- package/dist/components/{Modal → feedback/Modal}/Modal.d.ts +1 -1
- package/dist/components/{Modal → feedback/Modal}/Modal.stories.d.ts +3 -3
- package/dist/components/feedback/index.d.ts +6 -0
- package/dist/components/{FormItem → form/FormItem}/FormItemContext.d.ts +1 -0
- package/dist/components/{RadioButton → form/RadioButton}/RadioButton.d.ts +1 -0
- package/dist/components/form/index.d.ts +7 -0
- package/dist/components/index.d.ts +6 -32
- package/dist/components/{PageHeader → layout/PageHeader}/PageHeader.d.ts +1 -1
- package/dist/components/layout/index.d.ts +5 -0
- package/dist/components/{Collapse → navigation/Collapse}/Collapse.d.ts +1 -0
- package/dist/components/{CourseCollapse → navigation/CourseCollapse}/CourseCollapse.d.ts +1 -0
- package/dist/components/{NavigationItem → navigation/NavigationItem}/NavigationItem.d.ts +1 -1
- package/dist/components/navigation/index.d.ts +4 -0
- package/dist/index.d.ts +2 -2
- package/dist/stp-ui-kit.cjs.js +14 -14
- package/dist/stp-ui-kit.cjs.js.map +1 -1
- package/dist/stp-ui-kit.es.js +2516 -2478
- package/dist/stp-ui-kit.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/vite-env.d.ts +6 -1
- package/package.json +9 -19
- package/src/styles/_variables.scss +22 -17
- package/src/styles/main.scss +1 -0
- package/dist/shared/@types/resources.d.ts +0 -5
- package/dist/shared/i18n/config.d.ts +0 -2
- package/dist/shared/i18n/i18next.d.ts +0 -9
- package/dist/shared/i18n/locales/en/index.d.ts +0 -1
- package/dist/shared/i18n/locales/index.d.ts +0 -5
- package/dist/shared/i18n/locales/kz/index.d.ts +0 -1
- package/dist/shared/i18n/locales/ru/index.d.ts +0 -1
- package/dist/shared/i18n/locales/uz/index.d.ts +0 -1
- package/dist/shared/i18n/types.d.ts +0 -2
- /package/dist/components/{ProgressLine → data/ProgressLine}/ProgressLine.d.ts +0 -0
- /package/dist/components/{Table → data/Table}/Cell.d.ts +0 -0
- /package/dist/components/{Avatar → display/Avatar}/Avatar.d.ts +0 -0
- /package/dist/components/{Button → display/Button}/Button.d.ts +0 -0
- /package/dist/components/{Button → display/Button}/Button.stories.d.ts +0 -0
- /package/dist/components/{Empty → display/Empty}/Empty.d.ts +0 -0
- /package/dist/components/{Empty → display/Empty}/Empty.stories.d.ts +0 -0
- /package/dist/components/{IconButton → display/IconButton}/IconButton.d.ts +0 -0
- /package/dist/components/{IconButton → display/IconButton}/IconButton.stories.d.ts +0 -0
- /package/dist/components/{Message → feedback/Message}/CustomToaster.d.ts +0 -0
- /package/dist/components/{Message → feedback/Message}/Message.d.ts +0 -0
- /package/dist/components/{Message → feedback/Message}/Message.stories.d.ts +0 -0
- /package/dist/components/{Modal → feedback/Modal}/ModalApi.d.ts +0 -0
- /package/dist/components/{Spinner → feedback/Spinner}/Spinner.d.ts +0 -0
- /package/dist/components/{Tooltip → feedback/Tooltip}/Tooltip.d.ts +0 -0
- /package/dist/components/{Tooltip → feedback/Tooltip}/Tooltip.stories.d.ts +0 -0
- /package/dist/components/{Checkbox → form/Checkbox}/Checkbox.d.ts +0 -0
- /package/dist/components/{FormItem → form/FormItem}/FormItem.d.ts +0 -0
- /package/dist/components/{InlineError → form/InlineError}/InlineError.d.ts +0 -0
- /package/dist/components/{Input → form/Input}/BaseInputWrapper.d.ts +0 -0
- /package/dist/components/{Input → form/Input}/Input.d.ts +0 -0
- /package/dist/components/{Input → form/Input}/Input.stories.d.ts +0 -0
- /package/dist/components/{Input → form/Input}/TextArea.d.ts +0 -0
- /package/dist/components/{RadioButton → form/RadioButton}/CheckboxRadio.stories.d.ts +0 -0
- /package/dist/components/{Select → form/Select}/Select.d.ts +0 -0
- /package/dist/components/{Banner → layout/Banner}/Banner.d.ts +0 -0
- /package/dist/components/{Banner → layout/Banner}/Banner.stories.d.ts +0 -0
- /package/dist/components/{Banner → layout/Banner}/utils/utils.d.ts +0 -0
- /package/dist/components/{Drawer → layout/Drawer}/Drawer.d.ts +0 -0
- /package/dist/components/{SectionHeader → layout/SectionHeader}/SectionHeader.d.ts +0 -0
- /package/dist/components/{TopBar → layout/TopBar}/TopBar.d.ts +0 -0
- /package/dist/components/{Link → navigation/Link}/Link.d.ts +0 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { default as AcademicCap } from './icons/AcademicCap.svg?react';
|
|
2
|
+
export { default as CrownMinimalistic } from './icons/CrownMinimalistic.svg?react';
|
|
3
|
+
export { default as CupStar } from './icons/CupStar.svg?react';
|
|
4
|
+
export { default as Fire } from './icons/Fire.svg?react';
|
|
5
|
+
export { default as Hourglass } from './icons/Hourglass.svg?react';
|
|
6
|
+
export { default as StarCircle } from './icons/StarCircle.svg?react';
|
|
7
|
+
export { default as StarFall } from './icons/StarFall.svg?react';
|
|
8
|
+
export { default as UserRounded } from './icons/UserRounded.svg?react';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from 'react';
|
|
2
|
-
import { Table as ShadcnTable, TableBody as ShadcnTableBody, TableCaption as ShadcnTableCaption, TableCell as ShadcnTableCell, TableHead as ShadcnTableHead, TableHeader as ShadcnTableHeader, TableRow as ShadcnTableRow } from '
|
|
2
|
+
import { Table as ShadcnTable, TableBody as ShadcnTableBody, TableCaption as ShadcnTableCaption, TableCell as ShadcnTableCell, TableHead as ShadcnTableHead, TableHeader as ShadcnTableHeader, TableRow as ShadcnTableRow } from '../../ui/table';
|
|
3
3
|
export declare const Table: React.FC<React.ComponentProps<typeof ShadcnTable>>;
|
|
4
4
|
export declare const TableBody: React.FC<React.ComponentProps<typeof ShadcnTableBody>>;
|
|
5
5
|
export declare const TableCaption: React.FC<React.ComponentProps<typeof ShadcnTableCaption>>;
|
|
@@ -1,17 +1,9 @@
|
|
|
1
1
|
import { default as React, ReactNode } from 'react';
|
|
2
|
-
export interface DropdownItem {
|
|
3
|
-
label: string;
|
|
4
|
-
icon?: React.ReactNode;
|
|
5
|
-
onClick?: () => void;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
}
|
|
8
2
|
interface DropdownProps {
|
|
9
|
-
items: DropdownItem[];
|
|
10
3
|
children: ReactNode;
|
|
4
|
+
trigger: ReactNode;
|
|
11
5
|
className?: string;
|
|
12
|
-
disabled?: boolean;
|
|
13
6
|
align?: "left" | "right";
|
|
14
|
-
extraContent?: ReactNode;
|
|
15
7
|
}
|
|
16
8
|
export declare const Dropdown: React.FC<DropdownProps>;
|
|
17
9
|
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type IconType = React.FC<React.SVGProps<SVGSVGElement>> | React.ReactElement<React.SVGProps<SVGSVGElement>>;
|
|
3
|
+
interface IconProps extends React.SVGAttributes<SVGElement> {
|
|
4
|
+
icon: IconType;
|
|
5
|
+
size?: number | string;
|
|
6
|
+
strokeWidth?: number;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const Icon: ({ icon, size, strokeWidth, className, ...rest }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type ShadowLevel = "lower" | "higher";
|
|
3
|
+
export interface OptionListItem {
|
|
4
|
+
label: string;
|
|
5
|
+
icon?: React.ReactNode;
|
|
6
|
+
onClick?: () => void;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface OptionListProps {
|
|
10
|
+
items: OptionListItem[];
|
|
11
|
+
onSelect?: (item: OptionListItem, index: number) => void;
|
|
12
|
+
className?: string;
|
|
13
|
+
shadow?: ShadowLevel;
|
|
14
|
+
}
|
|
15
|
+
export declare const OptionList: ({ items, onSelect, className, shadow, }: OptionListProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface SvgStyleWrapperProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const SvgStyleWrapper: ({ children, className, }: SvgStyleWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
export interface TypographyProps {
|
|
3
|
-
variant?: "heading-xl" | "heading-lg" | "heading-md" | "heading-sm" | "heading-xs" | "body-lg" | "body-md" | "body-sm";
|
|
3
|
+
variant?: "heading-xl" | "heading-lg" | "heading-md" | "heading-sm" | "heading-xs" | "body-lg" | "body-md" | "body-sm" | "display";
|
|
4
4
|
className?: string;
|
|
5
5
|
children: ReactNode;
|
|
6
6
|
weight?: "regular" | "semibold" | "bold" | "medium";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './Avatar/Avatar';
|
|
2
|
+
export * from './Button/Button';
|
|
3
|
+
export * from './Dropdown/Dropdown';
|
|
4
|
+
export * from './Empty/Empty';
|
|
5
|
+
export * from './IconButton/IconButton';
|
|
6
|
+
export * from './Typography/Typography';
|
|
7
|
+
export * from './SvgStyleWrapper/SvgStyleWrapper';
|
|
8
|
+
export * from './Icon/Icon';
|
|
9
|
+
export * from './OptionList/OptionList';
|
|
@@ -2,6 +2,6 @@ import { Meta } from '@storybook/react';
|
|
|
2
2
|
import { Modal } from './Modal';
|
|
3
3
|
declare const meta: Meta<typeof Modal>;
|
|
4
4
|
export default meta;
|
|
5
|
-
export declare const Default: import('@storybook/core/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('
|
|
6
|
-
export declare const Critical: import('@storybook/core/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('
|
|
7
|
-
export declare const Warning: import('@storybook/core/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('
|
|
5
|
+
export declare const Default: import('@storybook/core/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../..').ModalProps>;
|
|
6
|
+
export declare const Critical: import('@storybook/core/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../..').ModalProps>;
|
|
7
|
+
export declare const Warning: import('@storybook/core/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../..').ModalProps>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './Checkbox/Checkbox';
|
|
2
|
+
export * from './FormItem/FormItem';
|
|
3
|
+
export * from './InlineError/InlineError';
|
|
4
|
+
export * from './Input/Input';
|
|
5
|
+
export * from './Input/TextArea';
|
|
6
|
+
export * from './RadioButton/RadioButton';
|
|
7
|
+
export * from './Select/Select';
|
|
@@ -1,32 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import { Drawer } from './Drawer/Drawer';
|
|
8
|
-
import { Dropdown } from './Dropdown/Dropdown';
|
|
9
|
-
import { Empty } from './Empty/Empty';
|
|
10
|
-
import { FormItem } from './FormItem/FormItem';
|
|
11
|
-
import { IconButton } from './IconButton/IconButton';
|
|
12
|
-
import { InlineError } from './InlineError/InlineError';
|
|
13
|
-
import { Input } from './Input/Input';
|
|
14
|
-
import { TextArea } from './Input/TextArea';
|
|
15
|
-
import { Link } from './Link/Link';
|
|
16
|
-
import { CustomToaster } from './Message/CustomToaster';
|
|
17
|
-
import { message } from './Message/Message';
|
|
18
|
-
import { ModalAPI } from './Modal/ModalApi';
|
|
19
|
-
import { NavigationItem } from './NavigationItem/NavigationItem';
|
|
20
|
-
import { PageHeader } from './PageHeader/PageHeader';
|
|
21
|
-
import { ProgressLine } from './ProgressLine/ProgressLine';
|
|
22
|
-
import { RadioButton } from './RadioButton/RadioButton';
|
|
23
|
-
import { SectionHeader } from './SectionHeader/SectionHeader';
|
|
24
|
-
import { Select } from './Select/Select';
|
|
25
|
-
import { Spinner } from './Spinner/Spinner';
|
|
26
|
-
import { Cell } from './Table/Cell';
|
|
27
|
-
import { Table, TableBody, TableCaption, TableCell, TableHead, TableHeader, TableRow } from './Table/Table';
|
|
28
|
-
import { Tooltip } from './Tooltip/Tooltip';
|
|
29
|
-
import { TopBar } from './TopBar/TopBar';
|
|
30
|
-
import { Typography } from './Typography/Typography';
|
|
31
|
-
import { Modal } from './Modal/Modal';
|
|
32
|
-
export { Banner, Button, Collapse, CourseCollapse, Empty, FormItem, IconButton, Modal, Tooltip, NavigationItem, PageHeader, ProgressLine, SectionHeader, TopBar, Typography, message, CustomToaster, ModalAPI, Table, TableBody, TableHead, TableHeader, TableCaption, TableCell, TableRow, Cell, InlineError, Checkbox, Input, RadioButton, Dropdown, Select, Spinner, Link, Avatar, TextArea, Drawer, };
|
|
1
|
+
export * from './form';
|
|
2
|
+
export * from './layout';
|
|
3
|
+
export * from './navigation';
|
|
4
|
+
export * from './feedback';
|
|
5
|
+
export * from './display';
|
|
6
|
+
export * from './data';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
1
|
+
export * from './components';
|
|
2
|
+
export * from './assets';
|