@namuna-nur/ui-kit 1.7.1 → 1.9.3

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 (89) hide show
  1. package/lib/index.js +147 -136
  2. package/lib/molecules/index.js +113 -103
  3. package/lib/shared/Avatar.tokens.js +430 -451
  4. package/lib/shared/{CardPie.tokens.js → CardProgress.tokens.js} +14707 -13831
  5. package/lib/shared/TabDots.tokens.js +12 -12
  6. package/lib/src/_shared/ProgressBar.utils.d.ts +8 -0
  7. package/lib/src/_shared/index.d.ts +1 -0
  8. package/lib/src/assets/icons/index.d.ts +5 -1
  9. package/lib/src/atoms/Input/Input.d.ts +1 -2
  10. package/lib/src/atoms/Input/Input.tokens.d.ts +2 -21
  11. package/lib/src/atoms/Input/Input.types.d.ts +3 -5
  12. package/lib/src/atoms/Notification/Notification.stories.d.ts +1 -0
  13. package/lib/src/atoms/Select/Select.tokens.d.ts +3 -9
  14. package/lib/src/atoms/Textarea/Textarea.d.ts +1 -2
  15. package/lib/src/atoms/Textarea/Textarea.types.d.ts +3 -5
  16. package/lib/src/molecules/CardMonthly/CardMonthly.d.ts +2 -0
  17. package/lib/src/molecules/CardMonthly/CardMonthly.stories.d.ts +6 -0
  18. package/lib/src/molecules/CardMonthly/CardMonthly.tokens.d.ts +7 -0
  19. package/lib/src/molecules/CardMonthly/CardMonthly.types.d.ts +21 -0
  20. package/lib/src/molecules/CardMonthly/CardMonthly.utils.d.ts +45 -0
  21. package/lib/src/molecules/CardMonthly/index.d.ts +3 -0
  22. package/lib/src/molecules/CardPieChart/CardPieChart.d.ts +2 -0
  23. package/lib/src/molecules/CardPieChart/CardPieChart.stories.d.ts +7 -0
  24. package/lib/src/molecules/CardPieChart/CardPieChart.tokens.d.ts +20 -0
  25. package/lib/src/molecules/CardPieChart/CardPieChart.types.d.ts +45 -0
  26. package/lib/src/molecules/{CardPie/CardPie.utils.d.ts → CardPieChart/CardPieChart.utils.d.ts} +2 -2
  27. package/lib/src/molecules/CardPieChart/index.d.ts +3 -0
  28. package/lib/src/molecules/CardProgress/CardProgress.d.ts +2 -0
  29. package/lib/src/molecules/CardProgress/CardProgress.stories.d.ts +5 -0
  30. package/lib/src/molecules/CardProgress/CardProgress.test.d.ts +1 -0
  31. package/lib/src/molecules/CardProgress/CardProgress.tokens.d.ts +12 -0
  32. package/lib/src/molecules/CardProgress/CardProgress.types.d.ts +22 -0
  33. package/lib/src/molecules/CardProgress/index.d.ts +3 -0
  34. package/lib/src/molecules/CardRingChart/CardRingChart.d.ts +2 -0
  35. package/lib/src/molecules/CardRingChart/CardRingChart.stories.d.ts +5 -0
  36. package/lib/src/molecules/CardRingChart/CardRingChart.test.d.ts +1 -0
  37. package/lib/src/molecules/CardRingChart/CardRingChart.tokens.d.ts +16 -0
  38. package/lib/src/molecules/CardRingChart/CardRingChart.types.d.ts +33 -0
  39. package/lib/src/molecules/CardRingChart/CardRingChart.utils.d.ts +49 -0
  40. package/lib/src/molecules/CardRingChart/index.d.ts +3 -0
  41. package/lib/src/molecules/CardStat/CardStat.d.ts +2 -0
  42. package/lib/src/molecules/CardStat/CardStat.stories.d.ts +10 -0
  43. package/lib/src/molecules/CardStat/CardStat.test.d.ts +1 -0
  44. package/lib/src/molecules/CardStat/CardStat.tokens.d.ts +12 -0
  45. package/lib/src/molecules/CardStat/CardStat.types.d.ts +29 -0
  46. package/lib/src/molecules/CardStat/CardStat.utils.d.ts +38 -0
  47. package/lib/src/molecules/CardStat/index.d.ts +3 -0
  48. package/lib/src/molecules/CommentInput/CommentInput.tokens.d.ts +2 -9
  49. package/lib/src/molecules/CommentInput/CommentInput.types.d.ts +2 -0
  50. package/lib/src/molecules/DatePicker/DatePicker.d.ts +1 -1
  51. package/lib/src/molecules/DatePicker/DatePicker.stories.d.ts +1 -1
  52. package/lib/src/molecules/DatePicker/DatePicker.tokens.d.ts +6 -1
  53. package/lib/src/molecules/DatePicker/DatePicker.types.d.ts +2 -1
  54. package/lib/src/molecules/DateRangePicker/DateRangePicker.stories.d.ts +1 -0
  55. package/lib/src/molecules/DateRangePicker/DateRangePicker.types.d.ts +2 -0
  56. package/lib/src/molecules/InputGroup/InputGroup.d.ts +1 -1
  57. package/lib/src/molecules/InputGroup/InputGroup.stories.d.ts +1 -1
  58. package/lib/src/molecules/InputGroup/InputGroup.tokens.d.ts +0 -4
  59. package/lib/src/molecules/InputGroup/InputGroup.types.d.ts +2 -2
  60. package/lib/src/molecules/MultiSelect/MultiSelect.stories.d.ts +1 -0
  61. package/lib/src/molecules/MultiSelect/MultiSelect.types.d.ts +6 -1
  62. package/lib/src/molecules/PasswordInput/PasswordInput.stories.d.ts +1 -1
  63. package/lib/src/molecules/PhoneInput/PhoneInput.stories.d.ts +1 -1
  64. package/lib/src/molecules/PhoneInput/PhoneInput.types.d.ts +3 -4
  65. package/lib/src/molecules/Rating/Rating.d.ts +2 -0
  66. package/lib/src/molecules/Rating/Rating.stories.d.ts +6 -0
  67. package/lib/src/molecules/Rating/Rating.test.d.ts +1 -0
  68. package/lib/src/molecules/Rating/Rating.tokens.d.ts +12 -0
  69. package/lib/src/molecules/Rating/Rating.types.d.ts +13 -0
  70. package/lib/src/molecules/Rating/Rating.utils.d.ts +1 -0
  71. package/lib/src/molecules/Rating/index.d.ts +3 -0
  72. package/lib/src/molecules/SelectGroup/SelectGroup.stories.d.ts +1 -0
  73. package/lib/src/molecules/SelectList/SelectList.types.d.ts +6 -0
  74. package/lib/src/molecules/TextareaGroup/TextareaGroup.types.d.ts +1 -0
  75. package/lib/src/molecules/UploadInput/UploadInput.d.ts +1 -2
  76. package/lib/src/molecules/UploadInput/UploadInput.tokens.d.ts +3 -3
  77. package/lib/src/molecules/UploadInput/UploadInput.types.d.ts +2 -2
  78. package/lib/src/molecules/index.d.ts +6 -1
  79. package/lib/src/utils/index.d.ts +1 -0
  80. package/lib/src/utils/numberFormat.d.ts +1 -0
  81. package/lib/style.css +1 -1
  82. package/lib/utils/index.js +10 -8
  83. package/package.json +1 -1
  84. package/lib/src/molecules/CardPie/CardPie.d.ts +0 -2
  85. package/lib/src/molecules/CardPie/CardPie.stories.d.ts +0 -6
  86. package/lib/src/molecules/CardPie/CardPie.tokens.d.ts +0 -11
  87. package/lib/src/molecules/CardPie/CardPie.types.d.ts +0 -32
  88. package/lib/src/molecules/CardPie/index.d.ts +0 -3
  89. /package/lib/src/molecules/{CardPie/CardPie.test.d.ts → CardPieChart/CardPieChart.test.d.ts} +0 -0
@@ -1,11 +1,13 @@
1
- import { f as t } from "../shared/twMerge.js";
2
- import { a as c, c as m } from "../shared/twMerge.js";
3
- const r = "dd.MM.yyyy";
4
- function e(o) {
5
- return t(new Date(o), r);
1
+ import { f as r } from "../shared/twMerge.js";
2
+ import { a as u, c } from "../shared/twMerge.js";
3
+ const t = "dd.MM.yyyy";
4
+ function a(o) {
5
+ return r(new Date(o), t);
6
6
  }
7
+ const n = (o) => new Intl.NumberFormat("ru-RU").format(Number(o));
7
8
  export {
8
- c as cn,
9
- m as convertToGroupedFontSizes,
10
- e as formatDateToDayMonthYear
9
+ u as cn,
10
+ c as convertToGroupedFontSizes,
11
+ a as formatDateToDayMonthYear,
12
+ n as numberFormat
11
13
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@namuna-nur/ui-kit",
3
- "version": "1.7.1",
3
+ "version": "1.9.3",
4
4
  "description": "UI Kit for Namuna NUR",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -1,2 +0,0 @@
1
- import { CardPieProps } from '..';
2
- export declare const CardPie: import('react').ForwardRefExoticComponent<CardPieProps & import('react').RefAttributes<HTMLDivElement>>;
@@ -1,6 +0,0 @@
1
- import { Meta } from '@storybook/react';
2
- import { CardPieStory, CardPie } from '..';
3
- declare const meta: Meta<typeof CardPie>;
4
- export declare const PieChart: CardPieStory;
5
- export declare const DoughnutChart: CardPieStory;
6
- export default meta;
@@ -1,11 +0,0 @@
1
- export declare const cardPieTokens: {
2
- root: string;
3
- header: string;
4
- link: string;
5
- title: string;
6
- totalText: string;
7
- block: string;
8
- total: string;
9
- badge: string;
10
- percent: string;
11
- };
@@ -1,32 +0,0 @@
1
- import { StoryObj } from '@storybook/react-vite';
2
- import { CardPie } from '..';
3
- export type CardPieProps = {
4
- mode?: 'doughtnut' | 'pie';
5
- title: string;
6
- icon?: React.ReactNode;
7
- data: {
8
- total: number;
9
- growth: number;
10
- rented: number;
11
- sold: number;
12
- free: number;
13
- blocked?: number;
14
- };
15
- colors: string[];
16
- classNames?: {
17
- root?: string;
18
- header?: string;
19
- link?: string;
20
- totalText?: string;
21
- block?: string;
22
- total?: string;
23
- badge?: string;
24
- percent?: string;
25
- };
26
- };
27
- export type CardPieOptionsProps = {
28
- mode: CardPieProps['mode'];
29
- colors: CardPieProps['colors'];
30
- data: Omit<CardPieProps['data'], 'total' | 'growth'>;
31
- };
32
- export type CardPieStory = StoryObj<typeof CardPie>;
@@ -1,3 +0,0 @@
1
- export { CardPie } from './CardPie';
2
- export * from './CardPie.tokens';
3
- export type * from './CardPie.types';