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.
Files changed (73) hide show
  1. package/dist/assets/index.d.ts +8 -0
  2. package/dist/components/{Table → data/Table}/Table.d.ts +1 -1
  3. package/dist/components/data/index.d.ts +3 -0
  4. package/dist/components/{Dropdown → display/Dropdown}/Dropdown.d.ts +1 -9
  5. package/dist/components/display/Icon/Icon.d.ts +10 -0
  6. package/dist/components/display/OptionList/OptionList.d.ts +15 -0
  7. package/dist/components/display/SvgStyleWrapper/SvgStyleWrapper.d.ts +7 -0
  8. package/dist/components/{Typography → display/Typography}/Typography.d.ts +1 -1
  9. package/dist/components/display/index.d.ts +9 -0
  10. package/dist/components/{Modal → feedback/Modal}/Modal.d.ts +1 -1
  11. package/dist/components/{Modal → feedback/Modal}/Modal.stories.d.ts +3 -3
  12. package/dist/components/feedback/index.d.ts +6 -0
  13. package/dist/components/{FormItem → form/FormItem}/FormItemContext.d.ts +1 -0
  14. package/dist/components/{RadioButton → form/RadioButton}/RadioButton.d.ts +1 -0
  15. package/dist/components/form/index.d.ts +7 -0
  16. package/dist/components/index.d.ts +6 -32
  17. package/dist/components/{PageHeader → layout/PageHeader}/PageHeader.d.ts +1 -1
  18. package/dist/components/layout/index.d.ts +5 -0
  19. package/dist/components/{Collapse → navigation/Collapse}/Collapse.d.ts +1 -0
  20. package/dist/components/{CourseCollapse → navigation/CourseCollapse}/CourseCollapse.d.ts +1 -0
  21. package/dist/components/{NavigationItem → navigation/NavigationItem}/NavigationItem.d.ts +1 -1
  22. package/dist/components/navigation/index.d.ts +4 -0
  23. package/dist/index.d.ts +2 -2
  24. package/dist/stp-ui-kit.cjs.js +14 -14
  25. package/dist/stp-ui-kit.cjs.js.map +1 -1
  26. package/dist/stp-ui-kit.es.js +2516 -2478
  27. package/dist/stp-ui-kit.es.js.map +1 -1
  28. package/dist/style.css +1 -1
  29. package/dist/vite-env.d.ts +6 -1
  30. package/package.json +9 -19
  31. package/src/styles/_variables.scss +22 -17
  32. package/src/styles/main.scss +1 -0
  33. package/dist/shared/@types/resources.d.ts +0 -5
  34. package/dist/shared/i18n/config.d.ts +0 -2
  35. package/dist/shared/i18n/i18next.d.ts +0 -9
  36. package/dist/shared/i18n/locales/en/index.d.ts +0 -1
  37. package/dist/shared/i18n/locales/index.d.ts +0 -5
  38. package/dist/shared/i18n/locales/kz/index.d.ts +0 -1
  39. package/dist/shared/i18n/locales/ru/index.d.ts +0 -1
  40. package/dist/shared/i18n/locales/uz/index.d.ts +0 -1
  41. package/dist/shared/i18n/types.d.ts +0 -2
  42. /package/dist/components/{ProgressLine → data/ProgressLine}/ProgressLine.d.ts +0 -0
  43. /package/dist/components/{Table → data/Table}/Cell.d.ts +0 -0
  44. /package/dist/components/{Avatar → display/Avatar}/Avatar.d.ts +0 -0
  45. /package/dist/components/{Button → display/Button}/Button.d.ts +0 -0
  46. /package/dist/components/{Button → display/Button}/Button.stories.d.ts +0 -0
  47. /package/dist/components/{Empty → display/Empty}/Empty.d.ts +0 -0
  48. /package/dist/components/{Empty → display/Empty}/Empty.stories.d.ts +0 -0
  49. /package/dist/components/{IconButton → display/IconButton}/IconButton.d.ts +0 -0
  50. /package/dist/components/{IconButton → display/IconButton}/IconButton.stories.d.ts +0 -0
  51. /package/dist/components/{Message → feedback/Message}/CustomToaster.d.ts +0 -0
  52. /package/dist/components/{Message → feedback/Message}/Message.d.ts +0 -0
  53. /package/dist/components/{Message → feedback/Message}/Message.stories.d.ts +0 -0
  54. /package/dist/components/{Modal → feedback/Modal}/ModalApi.d.ts +0 -0
  55. /package/dist/components/{Spinner → feedback/Spinner}/Spinner.d.ts +0 -0
  56. /package/dist/components/{Tooltip → feedback/Tooltip}/Tooltip.d.ts +0 -0
  57. /package/dist/components/{Tooltip → feedback/Tooltip}/Tooltip.stories.d.ts +0 -0
  58. /package/dist/components/{Checkbox → form/Checkbox}/Checkbox.d.ts +0 -0
  59. /package/dist/components/{FormItem → form/FormItem}/FormItem.d.ts +0 -0
  60. /package/dist/components/{InlineError → form/InlineError}/InlineError.d.ts +0 -0
  61. /package/dist/components/{Input → form/Input}/BaseInputWrapper.d.ts +0 -0
  62. /package/dist/components/{Input → form/Input}/Input.d.ts +0 -0
  63. /package/dist/components/{Input → form/Input}/Input.stories.d.ts +0 -0
  64. /package/dist/components/{Input → form/Input}/TextArea.d.ts +0 -0
  65. /package/dist/components/{RadioButton → form/RadioButton}/CheckboxRadio.stories.d.ts +0 -0
  66. /package/dist/components/{Select → form/Select}/Select.d.ts +0 -0
  67. /package/dist/components/{Banner → layout/Banner}/Banner.d.ts +0 -0
  68. /package/dist/components/{Banner → layout/Banner}/Banner.stories.d.ts +0 -0
  69. /package/dist/components/{Banner → layout/Banner}/utils/utils.d.ts +0 -0
  70. /package/dist/components/{Drawer → layout/Drawer}/Drawer.d.ts +0 -0
  71. /package/dist/components/{SectionHeader → layout/SectionHeader}/SectionHeader.d.ts +0 -0
  72. /package/dist/components/{TopBar → layout/TopBar}/TopBar.d.ts +0 -0
  73. /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 '../ui/table';
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>>;
@@ -0,0 +1,3 @@
1
+ export * from './ProgressLine/ProgressLine';
2
+ export * from './Table/Table';
3
+ export * from './Table/Cell';
@@ -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';
@@ -1,5 +1,5 @@
1
1
  import { default as React, ReactNode } from 'react';
2
- import { ButtonProps } from '../Button/Button';
2
+ import { ButtonProps } from '../..';
3
3
  export interface ModalProps {
4
4
  activator?: ReactNode;
5
5
  open: boolean;
@@ -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('./Modal').ModalProps>;
6
- export declare const Critical: import('@storybook/core/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('./Modal').ModalProps>;
7
- export declare const Warning: import('@storybook/core/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('./Modal').ModalProps>;
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,6 @@
1
+ export * from './Message/CustomToaster';
2
+ export * from './Message/Message';
3
+ export * from './Modal/Modal';
4
+ export * from './Modal/ModalApi';
5
+ export * from './Spinner/Spinner';
6
+ export * from './Tooltip/Tooltip';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export type FormItemState = "default" | "error" | "disabled" | "readOnly";
2
3
  export interface FormItemContextValue {
3
4
  state: FormItemState;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface RadioButtonProps extends React.InputHTMLAttributes<HTMLInputElement> {
2
3
  label?: string;
3
4
  error?: string;
@@ -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
- import { Avatar } from './Avatar/Avatar';
2
- import { Banner } from './Banner/Banner';
3
- import { Button } from './Button/Button';
4
- import { Checkbox } from './Checkbox/Checkbox';
5
- import { Collapse } from './Collapse/Collapse';
6
- import { CourseCollapse } from './CourseCollapse/CourseCollapse';
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';
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- import { TopBarProps } from '../TopBar/TopBar';
2
+ import { TopBarProps } from '../..';
3
3
  export interface PageHeaderProps {
4
4
  title: string | ReactNode;
5
5
  sections?: TopBarProps["sections"];
@@ -0,0 +1,5 @@
1
+ export * from './Banner/Banner';
2
+ export * from './Drawer/Drawer';
3
+ export * from './PageHeader/PageHeader';
4
+ export * from './SectionHeader/SectionHeader';
5
+ export * from './TopBar/TopBar';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface NavItem {
2
3
  id: string;
3
4
  name: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface CourseNavItem {
2
3
  id: string;
3
4
  name: string;
@@ -1,7 +1,7 @@
1
1
  import { default as React } from 'react';
2
2
  export interface NavigationItemProps {
3
3
  icon?: React.ReactNode;
4
- label: string;
4
+ label?: string;
5
5
  secondaryIcon?: React.ReactNode;
6
6
  collapsed?: boolean;
7
7
  active?: boolean;
@@ -0,0 +1,4 @@
1
+ export * from './Collapse/Collapse';
2
+ export * from './CourseCollapse/CourseCollapse';
3
+ export * from './Link/Link';
4
+ export * from './NavigationItem/NavigationItem';
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { Avatar, Banner, Button, Cell, Checkbox, Collapse, CourseCollapse, CustomToaster, Drawer, Dropdown, Empty, FormItem, IconButton, InlineError, Input, Link, message, Modal, ModalAPI, NavigationItem, PageHeader, ProgressLine, RadioButton, SectionHeader, Select, Spinner, Table, TableBody, TableCaption, TableCell, TableHead, TableHeader, TableRow, TextArea, Tooltip, TopBar, Typography } from './components';
2
- export { Banner, Button, Collapse, CourseCollapse, Empty, FormItem, IconButton, Modal, Tooltip, NavigationItem, PageHeader, ProgressLine, SectionHeader, TopBar, Typography, message, ModalAPI, Table, TableBody, TableHead, TableHeader, TableCaption, TableCell, TableRow, Cell, InlineError, Input, RadioButton, Checkbox, TextArea, CustomToaster, Dropdown, Select, Avatar, Link, Spinner, Drawer, };
1
+ export * from './components';
2
+ export * from './assets';