@alphakits/ui 2.4.3 → 2.4.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.
Files changed (41) hide show
  1. package/dist/calendar/component.js +32 -31
  2. package/dist/calendar/components/months-table/component.js +22 -23
  3. package/dist/calendar/components/months-table/index.css +1 -1
  4. package/dist/calendar/components/months-table/index.module.css.js +4 -6
  5. package/dist/calendar/components/select-button/index.css +1 -1
  6. package/dist/calendar/index.css +1 -1
  7. package/dist/calendar-input/component.js +124 -121
  8. package/dist/checkbox-lists/mock.data.d.ts +81 -0
  9. package/dist/checkbox-lists/mock.data.js +207 -0
  10. package/dist/collapsable-row/fixtures.data.d.ts +99 -0
  11. package/dist/collapsable-row/fixtures.data.js +196 -0
  12. package/dist/confirm-popup/component.d.ts +21 -0
  13. package/dist/confirm-popup/component.js +138 -0
  14. package/dist/confirm-popup/index.css +1 -0
  15. package/dist/confirm-popup/index.d.ts +1 -0
  16. package/dist/confirm-popup/index.js +6 -0
  17. package/dist/confirm-popup/index.module.css.js +23 -0
  18. package/dist/form/component.js +16 -16
  19. package/dist/form/templates/filters-form/index.js +17 -17
  20. package/dist/form/templates/rest-form/form.d.ts +1 -1
  21. package/dist/form/templates/rest-form/form.js +72 -67
  22. package/dist/form/templates/rest-form/index.d.ts +1 -0
  23. package/dist/index.d.ts +1 -0
  24. package/dist/index.js +298 -293
  25. package/dist/modal/components/modals/modal.js +50 -40
  26. package/dist/modal/hooks/use-modal.js +11 -11
  27. package/dist/modal/types.d.ts +2 -1
  28. package/dist/popover/component.js +72 -55
  29. package/dist/radio-groups/mock.data.d.ts +9 -0
  30. package/dist/radio-groups/mock.data.js +82 -0
  31. package/dist/select/components/base-select/component.js +73 -73
  32. package/dist/select/utils.js +23 -23
  33. package/dist/theme-provider/default-themes.d.ts +4 -0
  34. package/dist/theme-provider/default-themes.js +4 -0
  35. package/dist/toast-plate/component.js +47 -46
  36. package/dist/toast-plate/index.css +1 -1
  37. package/dist/toast-plate/index.module.css.js +26 -24
  38. package/dist/utils/index.js +26 -25
  39. package/dist/utils/show-toast/index.d.ts +1 -0
  40. package/dist/utils/show-toast/index.js +17 -9
  41. package/package.json +9 -27
@@ -1,40 +1,42 @@
1
1
  import * as __css from './index.css';
2
2
  export const __cssModule = __css;
3
- const t = "component_2FCo", o = "hasCloser_ig0b", n = "block_aZI2", e = "positive_k8le", c = "checkmark_Uk-P", s = "attention_qo9d", l = "negative_rdTB", a = "neutral_KAat", d = "black_c7gB", i = "closeButton_mFhA", r = "contentWrap_-P3J", _ = "content_ING2", k = "leftAddons_Odkd", b = "title_QZFU", h = "children_tKSv", m = "bottomAddons_ixVc", p = {
3
+ const t = "component_2FCo", o = "hasCloser_ig0b", n = "block_aZI2", c = "positive_k8le", e = "checkmark_Uk-P", s = "attention_qo9d", a = "negative_rdTB", l = "neutral_KAat", d = "black_c7gB", i = "compact_hOwR", _ = "contentWrap_-P3J", r = "content_ING2", k = "title_QZFU", m = "children_tKSv", p = "bottomAddons_ixVc", h = "closeButton_mFhA", b = "leftAddons_Odkd", u = {
4
4
  component: t,
5
5
  hasCloser: o,
6
6
  block: n,
7
- positive: e,
8
- checkmark: c,
7
+ positive: c,
8
+ checkmark: e,
9
9
  attention: s,
10
- negative: l,
10
+ negative: a,
11
11
  default: "default_yyLQ",
12
- neutral: a,
12
+ neutral: l,
13
13
  black: d,
14
- closeButton: i,
15
- contentWrap: r,
16
- content: _,
17
- leftAddons: k,
18
- title: b,
19
- children: h,
20
- bottomAddons: m
14
+ compact: i,
15
+ contentWrap: _,
16
+ content: r,
17
+ title: k,
18
+ children: m,
19
+ bottomAddons: p,
20
+ closeButton: h,
21
+ leftAddons: b
21
22
  };
22
23
  export {
23
24
  s as attention,
24
25
  d as black,
25
26
  n as block,
26
- m as bottomAddons,
27
- c as checkmark,
28
- h as children,
29
- i as closeButton,
27
+ p as bottomAddons,
28
+ e as checkmark,
29
+ m as children,
30
+ h as closeButton,
31
+ i as compact,
30
32
  t as component,
31
- _ as content,
32
- r as contentWrap,
33
- p as default,
33
+ r as content,
34
+ _ as contentWrap,
35
+ u as default,
34
36
  o as hasCloser,
35
- k as leftAddons,
36
- l as negative,
37
- a as neutral,
38
- e as positive,
39
- b as title
37
+ b as leftAddons,
38
+ a as negative,
39
+ l as neutral,
40
+ c as positive,
41
+ k as title
40
42
  };
@@ -1,20 +1,20 @@
1
- import { add as r, addDays as t, addMonths as s, addYears as o, eachDayOfInterval as f, eachMonthOfInterval as n, eachYearOfInterval as i, endOfDay as O, endOfISOWeek as m, endOfWeek as h, endOfYear as d, format as p, isAfter as S, isBefore as y, isEqual as M, isLastDayOfMonth as l, isSameDay as D, isSameMonth as u, isSameYear as x, isThisMonth as I, isThisYear as c, isToday as A, isWithinInterval as T, lastDayOfMonth as Y, max as k, min as W, parse as b, parseISO as R, startOfDay as v, startOfISOWeek as _, startOfMonth as w, startOfWeek as E, startOfYear as N, subDays as P, subMonths as g, subWeeks as q, subYears as z, weekDaysShort as B } from "./date/index.js";
2
- import { debounce as J } from "./debounce.js";
3
- import { AMOUNT_MAJOR_MINOR_PARTS_SEPARATOR as U, THINSP as j, formatAmount as C } from "./format-amount/util.js";
1
+ import { add as t, addDays as r, addMonths as s, addYears as o, eachDayOfInterval as f, eachMonthOfInterval as n, eachYearOfInterval as i, endOfDay as O, endOfISOWeek as m, endOfWeek as h, endOfYear as d, format as p, isAfter as S, isBefore as c, isEqual as y, isLastDayOfMonth as M, isSameDay as l, isSameMonth as u, isSameYear as D, isThisMonth as x, isThisYear as I, isToday as A, isWithinInterval as T, lastDayOfMonth as Y, max as k, min as W, parse as b, parseISO as R, startOfDay as v, startOfISOWeek as w, startOfMonth as _, startOfWeek as E, startOfYear as N, subDays as P, subMonths as g, subWeeks as q, subYears as z, weekDaysShort as B } from "./date/index.js";
2
+ import { debounce as H } from "./debounce.js";
3
+ import { AMOUNT_MAJOR_MINOR_PARTS_SEPARATOR as L, THINSP as U, formatAmount as j } from "./format-amount/util.js";
4
4
  import { formatDate as G, locales as K } from "./format-date/index.js";
5
5
  import { safeStringify as V } from "./safe-stringify.js";
6
- import { showError as Z, showSuccess as $ } from "./show-toast/index.js";
7
- import { splitAmount as ae } from "./split-amount/util.js";
8
- import { capitalize as te } from "./string.js";
6
+ import { showCompactSuccess as Z, showError as $, showSuccess as ee } from "./show-toast/index.js";
7
+ import { splitAmount as te } from "./split-amount/util.js";
8
+ import { capitalize as se } from "./string.js";
9
9
  export {
10
- U as AMOUNT_MAJOR_MINOR_PARTS_SEPARATOR,
11
- j as THINSP,
12
- r as add,
13
- t as addDays,
10
+ L as AMOUNT_MAJOR_MINOR_PARTS_SEPARATOR,
11
+ U as THINSP,
12
+ t as add,
13
+ r as addDays,
14
14
  s as addMonths,
15
15
  o as addYears,
16
- te as capitalize,
17
- J as debounce,
16
+ se as capitalize,
17
+ H as debounce,
18
18
  f as eachDayOfInterval,
19
19
  n as eachMonthOfInterval,
20
20
  i as eachYearOfInterval,
@@ -23,17 +23,17 @@ export {
23
23
  h as endOfWeek,
24
24
  d as endOfYear,
25
25
  p as format,
26
- C as formatAmount,
26
+ j as formatAmount,
27
27
  G as formatDate,
28
28
  S as isAfter,
29
- y as isBefore,
30
- M as isEqual,
31
- l as isLastDayOfMonth,
32
- D as isSameDay,
29
+ c as isBefore,
30
+ y as isEqual,
31
+ M as isLastDayOfMonth,
32
+ l as isSameDay,
33
33
  u as isSameMonth,
34
- x as isSameYear,
35
- I as isThisMonth,
36
- c as isThisYear,
34
+ D as isSameYear,
35
+ x as isThisMonth,
36
+ I as isThisYear,
37
37
  A as isToday,
38
38
  T as isWithinInterval,
39
39
  Y as lastDayOfMonth,
@@ -43,12 +43,13 @@ export {
43
43
  b as parse,
44
44
  R as parseISO,
45
45
  V as safeStringify,
46
- Z as showError,
47
- $ as showSuccess,
48
- ae as splitAmount,
46
+ Z as showCompactSuccess,
47
+ $ as showError,
48
+ ee as showSuccess,
49
+ te as splitAmount,
49
50
  v as startOfDay,
50
- _ as startOfISOWeek,
51
- w as startOfMonth,
51
+ w as startOfISOWeek,
52
+ _ as startOfMonth,
52
53
  E as startOfWeek,
53
54
  N as startOfYear,
54
55
  P as subDays,
@@ -1,2 +1,3 @@
1
1
  export declare const showSuccess: (text: string, title?: string, offset?: number) => void;
2
+ export declare const showCompactSuccess: (text: string, offset?: number) => void;
2
3
  export declare const showError: (text: string, title?: string, offset?: number) => void;
@@ -1,20 +1,28 @@
1
- import { ToastNotifier as e } from "../../toast-notifier/component.js";
2
- const t = (o, r = "Success", s = 30) => {
3
- e({
1
+ import { ToastNotifier as r } from "../../toast-notifier/component.js";
2
+ const t = (o, s = "Success", e = 30) => {
3
+ r({
4
4
  view: "positive",
5
- title: r,
5
+ title: s,
6
6
  text: o,
7
+ offset: e
8
+ });
9
+ }, i = (o, s = 30) => {
10
+ r({
11
+ view: "black",
12
+ text: o,
13
+ hasCloser: !0,
7
14
  offset: s
8
15
  });
9
- }, c = (o, r = "Error", s = 30) => {
10
- e({
16
+ }, w = (o, s = "Error", e = 30) => {
17
+ r({
11
18
  view: "negative",
12
- title: r,
19
+ title: s,
13
20
  text: o,
14
- offset: s
21
+ offset: e
15
22
  });
16
23
  };
17
24
  export {
18
- c as showError,
25
+ i as showCompactSuccess,
26
+ w as showError,
19
27
  t as showSuccess
20
28
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alphakits/ui",
3
- "version": "2.4.3",
3
+ "version": "2.4.5",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -23,8 +23,8 @@
23
23
  "build": "yarn build:clean && yarn build:index && yarn build:js && yarn build:vars",
24
24
  "test": "echo \"no tests\"",
25
25
  "start": "vite",
26
- "storybook": "NODE_OPTIONS=--openssl-legacy-provider start-storybook -p 6006 --ci",
27
- "build-storybook": "NODE_OPTIONS=--openssl-legacy-provider build-storybook -o storybook-static",
26
+ "storybook": "storybook dev -p 6006 --no-open",
27
+ "build-storybook": "STORYBOOK_DISABLE_TELEMETRY=1 storybook build -o storybook-static",
28
28
  "lint:css": "stylelint ./src/**/*.css",
29
29
  "lint:scripts": "biome lint",
30
30
  "lint": "yarn lint:css && yarn lint:scripts",
@@ -62,47 +62,32 @@
62
62
  },
63
63
  "devDependencies": {
64
64
  "@alphakits/icons": "1.25.0",
65
- "@babel/core": "^7.29.0",
66
- "@babel/plugin-transform-nullish-coalescing-operator": "^7.28.6",
67
- "@babel/plugin-transform-optional-chaining": "^7.28.6",
68
- "@babel/preset-env": "^7.29.3",
69
- "@babel/preset-react": "^7.28.5",
70
- "@babel/preset-typescript": "^7.28.5",
71
65
  "@biomejs/biome": "2.4.15",
72
66
  "@commitlint/cli": "8.3.5",
73
67
  "@commitlint/config-conventional": "8.3.4",
74
68
  "@semantic-release/git": "^10.0.0",
75
69
  "@semantic-release/gitlab": "^7.0.3",
76
70
  "@semantic-release/npm": "^8.0.2",
77
- "@storybook/addon-actions": "6.1.16",
78
- "@storybook/addon-contexts": "^5.3.21",
79
- "@storybook/addon-docs": "6.1.16",
80
- "@storybook/addon-essentials": "6.1.21",
81
- "@storybook/addon-knobs": "6.1.16",
82
- "@storybook/addon-links": "6.1.16",
83
- "@storybook/addon-storysource": "6.1.16",
84
- "@storybook/addons": "6.1.16",
85
- "@storybook/react": "6.1.16",
86
- "@storybook/source-loader": "^6.1.21",
71
+ "@storybook/addon-essentials": "^8.6.14",
72
+ "@storybook/addon-links": "^8.6.14",
73
+ "@storybook/react": "^8.6.14",
74
+ "@storybook/react-vite": "^8.6.14",
75
+ "@storybook/theming": "^8.6.14",
87
76
  "@testing-library/jest-dom": "^5.1.1",
88
77
  "@testing-library/react": "^10.0.1",
89
78
  "@testing-library/react-hooks": "3.2.1",
90
79
  "@testing-library/user-event": "^10.0.0",
91
80
  "@types/autosize": "3.0.7",
92
- "@types/babel__core": "^7",
93
- "@types/babel__preset-env": "^7",
94
81
  "@types/classnames": "^2.2.10",
95
82
  "@types/element-closest": "^3.0.0",
96
83
  "@types/jest": "^25.1.4",
97
84
  "@types/node": "^20.17.0",
98
- "@types/optimize-css-assets-webpack-plugin": "^5",
99
85
  "@types/react": "^19.0.0",
100
86
  "@types/react-dom": "^19.0.0",
101
87
  "@types/react-transition-group": "^4.4.1",
102
88
  "@types/react-window": "1.8.2",
103
89
  "@types/uuid": "8.3.0",
104
90
  "@vitejs/plugin-react-swc": "^3.7.2",
105
- "babel-loader": "8.4.1",
106
91
  "conventional-changelog-cli": "2.0.31",
107
92
  "cssnano": "4.1.11",
108
93
  "cz-conventional-changelog": "3.1.0",
@@ -110,21 +95,18 @@
110
95
  "glob": "^10.4.5",
111
96
  "husky": "^4.2.5",
112
97
  "lint-staged": "^10.2.13",
113
- "mini-css-extract-plugin": "1.6.2",
114
- "optimize-css-assets-webpack-plugin": "5.0.8",
115
98
  "postcss": "^8.4.47",
116
99
  "postcss-custom-media": "^10.0.0",
117
100
  "postcss-each": "^1.1.0",
118
101
  "postcss-for": "^2.1.1",
119
102
  "postcss-import": "^16.1.0",
120
- "postcss-loader": "4.3.0",
121
103
  "postcss-mixins": "^11.0.3",
122
104
  "postcss-preset-env": "^10.0.0",
123
105
  "react": "19.2.6",
124
- "react-docgen-typescript-loader": "^3.7.1",
125
106
  "react-dom": "19.2.6",
126
107
  "semantic-release": "^18.0.0",
127
108
  "standard-version": "7.1.0",
109
+ "storybook": "^8.6.14",
128
110
  "stylelint": "^13.6.1",
129
111
  "typescript": "~5.4.5",
130
112
  "typescript-plugin-css-modules": "^5.1.0",