@grandbazar/ui-baza 1.3.0 → 1.4.0

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/index.cjs CHANGED
@@ -51,23 +51,23 @@ function omit(object, ...keys) {
51
51
  return Object.fromEntries(filteredEntries);
52
52
  }
53
53
 
54
- const badge = "_badge_p5h5n_2";
55
- const primary$4 = "_primary_p5h5n_9";
56
- const secondary$5 = "_secondary_p5h5n_13";
57
- const accent$3 = "_accent_p5h5n_18";
58
- const violet = "_violet_p5h5n_23";
59
- const pink = "_pink_p5h5n_28";
60
- const red$1 = "_red_p5h5n_33";
61
- const orange = "_orange_p5h5n_38";
62
- const green = "_green_p5h5n_43";
63
- const neutral$3 = "_neutral_p5h5n_48";
64
- const lg$7 = "_lg_p5h5n_53";
65
- const md$a = "_md_p5h5n_60";
66
- const styles$x = {
54
+ const badge = "_badge_1s8y9_2";
55
+ const primary$4 = "_primary_1s8y9_9";
56
+ const secondary$5 = "_secondary_1s8y9_13";
57
+ const accent$4 = "_accent_1s8y9_18";
58
+ const violet = "_violet_1s8y9_23";
59
+ const pink = "_pink_1s8y9_28";
60
+ const red$1 = "_red_1s8y9_33";
61
+ const orange = "_orange_1s8y9_38";
62
+ const green = "_green_1s8y9_43";
63
+ const neutral$3 = "_neutral_1s8y9_48";
64
+ const lg$7 = "_lg_1s8y9_53";
65
+ const md$a = "_md_1s8y9_60";
66
+ const styles$y = {
67
67
  badge: badge,
68
68
  primary: primary$4,
69
69
  secondary: secondary$5,
70
- accent: accent$3,
70
+ accent: accent$4,
71
71
  violet: violet,
72
72
  pink: pink,
73
73
  red: red$1,
@@ -79,13 +79,13 @@ const styles$x = {
79
79
  };
80
80
 
81
81
  function Badge({ children, className, size = "lg", color = "accent", mode = "primary", ...props }) {
82
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$x.badge, styles$x[size], styles$x[color], styles$x[mode], className), ...props, children });
82
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$y.badge, styles$y[size], styles$y[color], styles$y[mode], className), ...props, children });
83
83
  }
84
84
 
85
85
  const badgeTabsItem = "_badgeTabsItem_10lit_2";
86
86
  const primary$3 = "_primary_10lit_18";
87
87
  const secondary$4 = "_secondary_10lit_36";
88
- const styles$w = {
88
+ const styles$x = {
89
89
  badgeTabsItem: badgeTabsItem,
90
90
  primary: primary$3,
91
91
  secondary: secondary$4
@@ -98,7 +98,7 @@ function BadgeTabsItem({ className, children, isActive, mode = "primary", ...pro
98
98
  type: "button",
99
99
  role: "tab",
100
100
  "aria-selected": Boolean(isActive),
101
- className: classNames(styles$w.badgeTabsItem, styles$w[mode], className),
101
+ className: classNames(styles$x.badgeTabsItem, styles$x[mode], className),
102
102
  ...props,
103
103
  children
104
104
  }
@@ -106,12 +106,12 @@ function BadgeTabsItem({ className, children, isActive, mode = "primary", ...pro
106
106
  }
107
107
 
108
108
  const badgeTabsRoot = "_badgeTabsRoot_1qkat_2";
109
- const styles$v = {
109
+ const styles$w = {
110
110
  badgeTabsRoot: badgeTabsRoot
111
111
  };
112
112
 
113
113
  function BadgeTabsRoot({ className, children, ...props }) {
114
- return /* @__PURE__ */ jsxRuntime.jsx("div", { role: "tablist", className: classNames(styles$v.badgeTabsRoot, className), ...props, children });
114
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { role: "tablist", className: classNames(styles$w.badgeTabsRoot, className), ...props, children });
115
115
  }
116
116
 
117
117
  function BadgeTabs(props) {
@@ -1068,7 +1068,7 @@ function IconXMarkCircle(props) {
1068
1068
  const breadcrumbs = "_breadcrumbs_1bfmb_2";
1069
1069
  const breadcrumbsItem = "_breadcrumbsItem_1bfmb_8";
1070
1070
  const defaultSeparator = "_defaultSeparator_1bfmb_14";
1071
- const styles$u = {
1071
+ const styles$v = {
1072
1072
  breadcrumbs: breadcrumbs,
1073
1073
  breadcrumbsItem: breadcrumbsItem,
1074
1074
  defaultSeparator: defaultSeparator
@@ -1117,7 +1117,7 @@ function Slot({
1117
1117
  }
1118
1118
 
1119
1119
  const breadcrumbItem = "_breadcrumbItem_cua4v_2";
1120
- const styles$t = {
1120
+ const styles$u = {
1121
1121
  breadcrumbItem: breadcrumbItem
1122
1122
  };
1123
1123
 
@@ -1128,7 +1128,7 @@ function BreadcrumbItem({ children, className, isActive, asChild, ...props }) {
1128
1128
  {
1129
1129
  "data-active": isActive,
1130
1130
  "data-disabled": props.disabled,
1131
- className: classNames(styles$t.breadcrumbItem, className),
1131
+ className: classNames(styles$u.breadcrumbItem, className),
1132
1132
  ...isActive && { "aria-current": "page" },
1133
1133
  ...!asChild && { type: "button" },
1134
1134
  ...props,
@@ -1140,19 +1140,19 @@ function BreadcrumbItem({ children, className, isActive, asChild, ...props }) {
1140
1140
  function Breadcrumbs({
1141
1141
  className,
1142
1142
  children,
1143
- separator = /* @__PURE__ */ jsxRuntime.jsx(IconChevron, { className: styles$u.defaultSeparator })
1143
+ separator = /* @__PURE__ */ jsxRuntime.jsx(IconChevron, { className: styles$v.defaultSeparator })
1144
1144
  }) {
1145
1145
  const childrenArray = Array.isArray(children) ? children : [children];
1146
1146
  const lastIndex = childrenArray.length - 1;
1147
- return /* @__PURE__ */ jsxRuntime.jsx("nav", { "aria-label": "breadcrumb", className, children: /* @__PURE__ */ jsxRuntime.jsx("ol", { className: styles$u.breadcrumbs, children: childrenArray.map((item, index) => /* @__PURE__ */ jsxRuntime.jsxs(React.Fragment, { children: [
1148
- /* @__PURE__ */ jsxRuntime.jsx("li", { className: styles$u.breadcrumbsItem, children: item }),
1149
- index < lastIndex && /* @__PURE__ */ jsxRuntime.jsx("li", { className: styles$u.breadcrumbsItem, "aria-hidden": "true", children: separator })
1147
+ return /* @__PURE__ */ jsxRuntime.jsx("nav", { "aria-label": "breadcrumb", className, children: /* @__PURE__ */ jsxRuntime.jsx("ol", { className: styles$v.breadcrumbs, children: childrenArray.map((item, index) => /* @__PURE__ */ jsxRuntime.jsxs(React.Fragment, { children: [
1148
+ /* @__PURE__ */ jsxRuntime.jsx("li", { className: styles$v.breadcrumbsItem, children: item }),
1149
+ index < lastIndex && /* @__PURE__ */ jsxRuntime.jsx("li", { className: styles$v.breadcrumbsItem, "aria-hidden": "true", children: separator })
1150
1150
  ] }, index)) }) });
1151
1151
  }
1152
1152
  Breadcrumbs.Item = BreadcrumbItem;
1153
1153
 
1154
1154
  const button = "_button_1waqk_2";
1155
- const accent$2 = "_accent_1waqk_11";
1155
+ const accent$3 = "_accent_1waqk_11";
1156
1156
  const primary$2 = "_primary_1waqk_12";
1157
1157
  const secondary$3 = "_secondary_1waqk_30";
1158
1158
  const tertiary = "_tertiary_1waqk_48";
@@ -1161,9 +1161,9 @@ const neutral$2 = "_neutral_1waqk_78";
1161
1161
  const lg$6 = "_lg_1waqk_145";
1162
1162
  const md$9 = "_md_1waqk_153";
1163
1163
  const sm$4 = "_sm_1waqk_161";
1164
- const styles$s = {
1164
+ const styles$t = {
1165
1165
  button: button,
1166
- accent: accent$2,
1166
+ accent: accent$3,
1167
1167
  primary: primary$2,
1168
1168
  secondary: secondary$3,
1169
1169
  tertiary: tertiary,
@@ -1175,13 +1175,13 @@ const styles$s = {
1175
1175
  };
1176
1176
 
1177
1177
  const buttonFunction = "_buttonFunction_o8iku_2";
1178
- const accent$1 = "_accent_o8iku_10";
1178
+ const accent$2 = "_accent_o8iku_10";
1179
1179
  const neutral$1 = "_neutral_o8iku_22";
1180
1180
  const lg$5 = "_lg_o8iku_41";
1181
1181
  const md$8 = "_md_o8iku_46";
1182
- const styles$r = {
1182
+ const styles$s = {
1183
1183
  buttonFunction: buttonFunction,
1184
- accent: accent$1,
1184
+ accent: accent$2,
1185
1185
  neutral: neutral$1,
1186
1186
  lg: lg$5,
1187
1187
  md: md$8
@@ -1199,7 +1199,7 @@ function ButtonFunction({
1199
1199
  return /* @__PURE__ */ jsxRuntime.jsx(
1200
1200
  Component,
1201
1201
  {
1202
- className: classNames(styles$r.buttonFunction, styles$r[color], styles$r[size], className),
1202
+ className: classNames(styles$s.buttonFunction, styles$s[color], styles$s[size], className),
1203
1203
  ...props.disabled && { "data-disabled": true },
1204
1204
  ...!asChild && { type: "button" },
1205
1205
  ...props,
@@ -1221,7 +1221,7 @@ function Button({
1221
1221
  return /* @__PURE__ */ jsxRuntime.jsx(
1222
1222
  Component,
1223
1223
  {
1224
- className: classNames(styles$s.button, styles$s[color], styles$s[size], styles$s[mode], className),
1224
+ className: classNames(styles$t.button, styles$t[color], styles$t[size], styles$t[mode], className),
1225
1225
  ...!asChild && { type: "button" },
1226
1226
  ...props,
1227
1227
  children
@@ -1233,7 +1233,7 @@ Button.Function = ButtonFunction;
1233
1233
  const checkboxWrapper = "_checkboxWrapper_k1shg_2";
1234
1234
  const icon$2 = "_icon_k1shg_23";
1235
1235
  const checkbox = "_checkbox_k1shg_2";
1236
- const styles$q = {
1236
+ const styles$r = {
1237
1237
  checkboxWrapper: checkboxWrapper,
1238
1238
  icon: icon$2,
1239
1239
  checkbox: checkbox
@@ -1246,11 +1246,11 @@ function Checkbox({ className, label, indeterminate, ...props }) {
1246
1246
  {
1247
1247
  "data-disabled": `${Boolean(props.disabled)}`,
1248
1248
  "data-state": dataState,
1249
- className: classNames(styles$q.checkboxWrapper, className),
1249
+ className: classNames(styles$r.checkboxWrapper, className),
1250
1250
  children: [
1251
- dataState === "checked" && /* @__PURE__ */ jsxRuntime.jsx(IconCheck, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$q.icon }),
1252
- dataState === "indeterminate" && /* @__PURE__ */ jsxRuntime.jsx(IconMinus, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$q.icon }),
1253
- /* @__PURE__ */ jsxRuntime.jsx("input", { "data-state": dataState, type: "checkbox", className: styles$q.checkbox, ...props }),
1251
+ dataState === "checked" && /* @__PURE__ */ jsxRuntime.jsx(IconCheck, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$r.icon }),
1252
+ dataState === "indeterminate" && /* @__PURE__ */ jsxRuntime.jsx(IconMinus, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$r.icon }),
1253
+ /* @__PURE__ */ jsxRuntime.jsx("input", { "data-state": dataState, type: "checkbox", className: styles$r.checkbox, ...props }),
1254
1254
  label
1255
1255
  ]
1256
1256
  }
@@ -1258,7 +1258,7 @@ function Checkbox({ className, label, indeterminate, ...props }) {
1258
1258
  }
1259
1259
 
1260
1260
  const chip = "_chip_dj4kw_2";
1261
- const styles$p = {
1261
+ const styles$q = {
1262
1262
  chip: chip
1263
1263
  };
1264
1264
 
@@ -1266,7 +1266,7 @@ function Chip({ isSelected, children, className, disabled, ...props }) {
1266
1266
  return /* @__PURE__ */ jsxRuntime.jsx(
1267
1267
  "div",
1268
1268
  {
1269
- className: classNames(styles$p.chip, className),
1269
+ className: classNames(styles$q.chip, className),
1270
1270
  "data-selected": isSelected,
1271
1271
  "data-disabled": disabled,
1272
1272
  "aria-disabled": disabled,
@@ -1280,23 +1280,23 @@ const root$1 = "_root_ww0fb_2";
1280
1280
  const lg$4 = "_lg_ww0fb_16";
1281
1281
  const md$7 = "_md_ww0fb_24";
1282
1282
  const red = "_red_ww0fb_32";
1283
- const accent = "_accent_ww0fb_37";
1283
+ const accent$1 = "_accent_ww0fb_37";
1284
1284
  const neutral = "_neutral_ww0fb_42";
1285
1285
  const secondary$2 = "_secondary_ww0fb_47";
1286
1286
  const white = "_white_ww0fb_52";
1287
- const styles$o = {
1287
+ const styles$p = {
1288
1288
  root: root$1,
1289
1289
  lg: lg$4,
1290
1290
  md: md$7,
1291
1291
  red: red,
1292
- accent: accent,
1292
+ accent: accent$1,
1293
1293
  neutral: neutral,
1294
1294
  secondary: secondary$2,
1295
1295
  white: white
1296
1296
  };
1297
1297
 
1298
1298
  function Counter({ className, size = "lg", color = "red", ...props }) {
1299
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$o.root, styles$o[size], styles$o[color], className), ...props });
1299
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$p.root, styles$p[size], styles$p[color], className), ...props });
1300
1300
  }
1301
1301
 
1302
1302
  const LOCALE_FIRST_DAY_OF_WEEK = {
@@ -1306,7 +1306,7 @@ const LOCALE_FIRST_DAY_OF_WEEK = {
1306
1306
 
1307
1307
  const datePickerCellWrapper = "_datePickerCellWrapper_np1gx_2";
1308
1308
  const datePickerCell = "_datePickerCell_np1gx_2";
1309
- const styles$n = {
1309
+ const styles$o = {
1310
1310
  datePickerCellWrapper: datePickerCellWrapper,
1311
1311
  datePickerCell: datePickerCell,
1312
1312
  "radius-none": "_radius-none_np1gx_83",
@@ -1316,10 +1316,10 @@ const styles$n = {
1316
1316
  };
1317
1317
 
1318
1318
  function DatePickerCell({ children, className, state, isCurrent, radius = "both", ...props }) {
1319
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$n.datePickerCellWrapper, styles$n[`radius-${radius}`]), "data-state": state, children: /* @__PURE__ */ jsxRuntime.jsx(
1319
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$o.datePickerCellWrapper, styles$o[`radius-${radius}`]), "data-state": state, children: /* @__PURE__ */ jsxRuntime.jsx(
1320
1320
  "button",
1321
1321
  {
1322
- className: classNames(styles$n.datePickerCell, styles$n[`radius-${radius}`], className),
1322
+ className: classNames(styles$o.datePickerCell, styles$o[`radius-${radius}`], className),
1323
1323
  type: "button",
1324
1324
  role: "gridcell",
1325
1325
  "aria-selected": state === "selected",
@@ -1389,7 +1389,7 @@ function normalizeDateRange(firstDate, secondDate) {
1389
1389
  const datePickerField = "_datePickerField_1qk8s_2";
1390
1390
  const datePickerFieldCalendar = "_datePickerFieldCalendar_1qk8s_8";
1391
1391
  const datePickerFieldWeek = "_datePickerFieldWeek_1qk8s_14";
1392
- const styles$m = {
1392
+ const styles$n = {
1393
1393
  datePickerField: datePickerField,
1394
1394
  datePickerFieldCalendar: datePickerFieldCalendar,
1395
1395
  datePickerFieldWeek: datePickerFieldWeek
@@ -1404,9 +1404,9 @@ function DatePickerField({
1404
1404
  firstDayOfWeek = LOCALE_FIRST_DAY_OF_WEEK.ru
1405
1405
  }) {
1406
1406
  const weeks = React.useMemo(() => getCalendarGrid(month, year, firstDayOfWeek), [month, year, firstDayOfWeek]);
1407
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: classNames(styles$m.datePickerField, className), role: "grid", children: [
1407
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: classNames(styles$n.datePickerField, className), role: "grid", children: [
1408
1408
  renderWeekdays?.(),
1409
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$m.datePickerFieldCalendar, role: "rowgroup", children: weeks.map((week, weekIndex) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$m.datePickerFieldWeek, role: "row", "aria-rowindex": weekIndex + 1, children: week.map((day, dayIndex) => /* @__PURE__ */ jsxRuntime.jsx(Slot, { role: "gridcell", "aria-colindex": dayIndex + 1, children: children(day) }, `${day.year}-${day.month}-${day.date}`)) }, weekIndex)) })
1409
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$n.datePickerFieldCalendar, role: "rowgroup", children: weeks.map((week, weekIndex) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$n.datePickerFieldWeek, role: "row", "aria-rowindex": weekIndex + 1, children: week.map((day, dayIndex) => /* @__PURE__ */ jsxRuntime.jsx(Slot, { role: "gridcell", "aria-colindex": dayIndex + 1, children: children(day) }, `${day.year}-${day.month}-${day.date}`)) }, weekIndex)) })
1410
1410
  ] });
1411
1411
  }
1412
1412
 
@@ -1447,13 +1447,13 @@ const I18N_MONTH_LABELS = {
1447
1447
 
1448
1448
  const datePickerWeekdays = "_datePickerWeekdays_p8tsm_2";
1449
1449
  const datePickerWeekday = "_datePickerWeekday_p8tsm_2";
1450
- const styles$l = {
1450
+ const styles$m = {
1451
1451
  datePickerWeekdays: datePickerWeekdays,
1452
1452
  datePickerWeekday: datePickerWeekday
1453
1453
  };
1454
1454
 
1455
1455
  function DatePickerWeekDays({ className, locale = "ru" }) {
1456
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$l.datePickerWeekdays, className), role: "row", children: I18N_WEEKDAY_LABELS[locale].map((label) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$l.datePickerWeekday, role: "columnheader", children: label }, label)) });
1456
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$m.datePickerWeekdays, className), role: "row", children: I18N_WEEKDAY_LABELS[locale].map((label) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$m.datePickerWeekday, role: "columnheader", children: label }, label)) });
1457
1457
  }
1458
1458
 
1459
1459
  function DatePicker() {
@@ -1689,21 +1689,21 @@ const DROPDOWN_PORTAL_SIDE_CONFIG = {
1689
1689
  };
1690
1690
 
1691
1691
  const dropdownContent = "_dropdownContent_12tkb_2";
1692
- const styles$k = {
1692
+ const styles$l = {
1693
1693
  dropdownContent: dropdownContent
1694
1694
  };
1695
1695
 
1696
1696
  function DropdownContent({ className, children, ...props }) {
1697
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$k.dropdownContent, className), ...props, children });
1697
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$l.dropdownContent, className), ...props, children });
1698
1698
  }
1699
1699
 
1700
1700
  const dropdownItem = "_dropdownItem_msc4i_2";
1701
- const styles$j = {
1701
+ const styles$k = {
1702
1702
  dropdownItem: dropdownItem
1703
1703
  };
1704
1704
 
1705
1705
  function DropdownItem({ className, children, disabled, ...props }) {
1706
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$j.dropdownItem, className), role: "menuitem", "data-disabled": disabled, ...props, children });
1706
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$k.dropdownItem, className), role: "menuitem", "data-disabled": disabled, ...props, children });
1707
1707
  }
1708
1708
 
1709
1709
  const CLICK_OUTSIDE_IGNORE_DATA_NAME = "data-clickoutside-ignore";
@@ -2131,7 +2131,7 @@ function useTriggerHandlersByEventTrigger() {
2131
2131
  }
2132
2132
 
2133
2133
  const dropdownPortal = "_dropdownPortal_p3tdk_2";
2134
- const styles$i = {
2134
+ const styles$j = {
2135
2135
  dropdownPortal: dropdownPortal
2136
2136
  };
2137
2137
 
@@ -2171,7 +2171,7 @@ function DropdownPortal({
2171
2171
  ...style
2172
2172
  },
2173
2173
  ref: portalRef,
2174
- className: classNames(styles$i.dropdownPortal, className),
2174
+ className: classNames(styles$j.dropdownPortal, className),
2175
2175
  ...handlersByTrigger[triggerEvent],
2176
2176
  ...isNested && { [CLICK_OUTSIDE_IGNORE_DATA_NAME]: "true" },
2177
2177
  children
@@ -2213,6 +2213,69 @@ DropdownMenu.Content = DropdownContent;
2213
2213
  DropdownMenu.Item = DropdownItem;
2214
2214
  DropdownMenu.Portal = DropdownPortal;
2215
2215
 
2216
+ const notificationInline = "_notificationInline_1kerp_2";
2217
+ const accent = "_accent_1kerp_10";
2218
+ const negative = "_negative_1kerp_16";
2219
+ const positive = "_positive_1kerp_22";
2220
+ const warning = "_warning_1kerp_28";
2221
+ const outline = "_outline_1kerp_34";
2222
+ const filled = "_filled_1kerp_39";
2223
+ const statusIcon = "_statusIcon_1kerp_44";
2224
+ const body = "_body_1kerp_51";
2225
+ const titleRow = "_titleRow_1kerp_59";
2226
+ const title = "_title_1kerp_59";
2227
+ const closeButton = "_closeButton_1kerp_74";
2228
+ const closeIcon = "_closeIcon_1kerp_95";
2229
+ const description = "_description_1kerp_100";
2230
+ const actions = "_actions_1kerp_108";
2231
+ const styles$i = {
2232
+ notificationInline: notificationInline,
2233
+ accent: accent,
2234
+ negative: negative,
2235
+ positive: positive,
2236
+ warning: warning,
2237
+ outline: outline,
2238
+ filled: filled,
2239
+ statusIcon: statusIcon,
2240
+ body: body,
2241
+ titleRow: titleRow,
2242
+ title: title,
2243
+ closeButton: closeButton,
2244
+ closeIcon: closeIcon,
2245
+ description: description,
2246
+ actions: actions
2247
+ };
2248
+
2249
+ const STATUS_ICONS = {
2250
+ accent: IconInfo.Filled,
2251
+ negative: IconXMarkCircle,
2252
+ positive: IconCheckCircle,
2253
+ warning: IconCheckCircle
2254
+ };
2255
+ function NotificationInline({
2256
+ title,
2257
+ description,
2258
+ color = "accent",
2259
+ mode = "filled",
2260
+ onClose,
2261
+ children,
2262
+ className,
2263
+ ...props
2264
+ }) {
2265
+ const StatusIcon = STATUS_ICONS[color];
2266
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: classNames(styles$i.notificationInline, styles$i[color], styles$i[mode], className), ...props, children: [
2267
+ /* @__PURE__ */ jsxRuntime.jsx(StatusIcon, { className: styles$i.statusIcon, "aria-hidden": "true" }),
2268
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { className: styles$i.body, children: [
2269
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { className: styles$i.titleRow, children: [
2270
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$i.title, children: title }),
2271
+ onClose && /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", "aria-label": "Close", className: styles$i.closeButton, onClick: onClose, children: /* @__PURE__ */ jsxRuntime.jsx(IconXMark.Small, { className: styles$i.closeIcon, "aria-hidden": "true" }) })
2272
+ ] }),
2273
+ description && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$i.description, children: description }),
2274
+ children && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$i.actions, children })
2275
+ ] })
2276
+ ] });
2277
+ }
2278
+
2216
2279
  const ELLIPSIS = "...";
2217
2280
  const ELLIPSIS_SYMBOL = Symbol(ELLIPSIS);
2218
2281
  const DEFAULT_MAX_VISIBLE_PAGES_WITH_ELLIPSIS = 11;
@@ -3409,6 +3472,7 @@ exports.IconTrash = IconTrash;
3409
3472
  exports.IconXMark = IconXMark;
3410
3473
  exports.IconXMarkCircle = IconXMarkCircle;
3411
3474
  exports.LOCALE_FIRST_DAY_OF_WEEK = LOCALE_FIRST_DAY_OF_WEEK;
3475
+ exports.NotificationInline = NotificationInline;
3412
3476
  exports.Pagination = Pagination;
3413
3477
  exports.ProgressBar = ProgressBar;
3414
3478
  exports.RadioButton = RadioButton;
package/dist/index.d.ts CHANGED
@@ -401,6 +401,24 @@ export declare const LOCALE_FIRST_DAY_OF_WEEK: TLabel<number>;
401
401
 
402
402
  declare const LOCALES: readonly ["en", "ru"];
403
403
 
404
+ declare const NOTIFICATION_INLINE_COLORS: readonly ["accent", "negative", "positive", "warning"];
405
+
406
+ declare const NOTIFICATION_INLINE_MODES: readonly ["outline", "filled"];
407
+
408
+ /**
409
+ * NotificationInline informs users with concise, timely information inside a content area.
410
+ * Renders a status icon, a title, an optional description, an optional close button
411
+ * and an optional row of action buttons passed as children.
412
+ *
413
+ * @param title - Notification heading
414
+ * @param description - Supporting text below the title
415
+ * @param color - Status of the notification (accent, negative, positive, warning)
416
+ * @param mode - Surface style (outline, filled)
417
+ * @param onClose - Called when the close button is clicked; the button renders only when provided
418
+ * @param children - Action buttons rendered in a row below the text
419
+ */
420
+ export declare function NotificationInline({ title, description, color, mode, onClose, children, className, ...props }: TNotificationInlineProps): JSX.Element;
421
+
404
422
  /**
405
423
  * Pagination is a compound component for building pagination interfaces.
406
424
  * Provides flexible building blocks for navigating through pages with customizable rendering.
@@ -780,6 +798,14 @@ declare type TLabel<T = string> = Record<TLocale, T>;
780
798
 
781
799
  declare type TLocale = TArrayElement<typeof LOCALES>;
782
800
 
801
+ declare type TNotificationInlineProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> & {
802
+ title: string;
803
+ description?: string;
804
+ color?: TArrayElement<typeof NOTIFICATION_INLINE_COLORS>;
805
+ mode?: TArrayElement<typeof NOTIFICATION_INLINE_MODES>;
806
+ onClose?: () => void;
807
+ };
808
+
783
809
  /**
784
810
  * Tooltip is a compound component for displaying contextual hints.
785
811
  * Provides a trigger wrapper and content rendering for short descriptions.
package/dist/index.js CHANGED
@@ -47,23 +47,23 @@ function omit(object, ...keys) {
47
47
  return Object.fromEntries(filteredEntries);
48
48
  }
49
49
 
50
- const badge = "_badge_p5h5n_2";
51
- const primary$4 = "_primary_p5h5n_9";
52
- const secondary$5 = "_secondary_p5h5n_13";
53
- const accent$3 = "_accent_p5h5n_18";
54
- const violet = "_violet_p5h5n_23";
55
- const pink = "_pink_p5h5n_28";
56
- const red$1 = "_red_p5h5n_33";
57
- const orange = "_orange_p5h5n_38";
58
- const green = "_green_p5h5n_43";
59
- const neutral$3 = "_neutral_p5h5n_48";
60
- const lg$7 = "_lg_p5h5n_53";
61
- const md$a = "_md_p5h5n_60";
62
- const styles$x = {
50
+ const badge = "_badge_1s8y9_2";
51
+ const primary$4 = "_primary_1s8y9_9";
52
+ const secondary$5 = "_secondary_1s8y9_13";
53
+ const accent$4 = "_accent_1s8y9_18";
54
+ const violet = "_violet_1s8y9_23";
55
+ const pink = "_pink_1s8y9_28";
56
+ const red$1 = "_red_1s8y9_33";
57
+ const orange = "_orange_1s8y9_38";
58
+ const green = "_green_1s8y9_43";
59
+ const neutral$3 = "_neutral_1s8y9_48";
60
+ const lg$7 = "_lg_1s8y9_53";
61
+ const md$a = "_md_1s8y9_60";
62
+ const styles$y = {
63
63
  badge: badge,
64
64
  primary: primary$4,
65
65
  secondary: secondary$5,
66
- accent: accent$3,
66
+ accent: accent$4,
67
67
  violet: violet,
68
68
  pink: pink,
69
69
  red: red$1,
@@ -75,13 +75,13 @@ const styles$x = {
75
75
  };
76
76
 
77
77
  function Badge({ children, className, size = "lg", color = "accent", mode = "primary", ...props }) {
78
- return /* @__PURE__ */ jsx("div", { className: classNames(styles$x.badge, styles$x[size], styles$x[color], styles$x[mode], className), ...props, children });
78
+ return /* @__PURE__ */ jsx("div", { className: classNames(styles$y.badge, styles$y[size], styles$y[color], styles$y[mode], className), ...props, children });
79
79
  }
80
80
 
81
81
  const badgeTabsItem = "_badgeTabsItem_10lit_2";
82
82
  const primary$3 = "_primary_10lit_18";
83
83
  const secondary$4 = "_secondary_10lit_36";
84
- const styles$w = {
84
+ const styles$x = {
85
85
  badgeTabsItem: badgeTabsItem,
86
86
  primary: primary$3,
87
87
  secondary: secondary$4
@@ -94,7 +94,7 @@ function BadgeTabsItem({ className, children, isActive, mode = "primary", ...pro
94
94
  type: "button",
95
95
  role: "tab",
96
96
  "aria-selected": Boolean(isActive),
97
- className: classNames(styles$w.badgeTabsItem, styles$w[mode], className),
97
+ className: classNames(styles$x.badgeTabsItem, styles$x[mode], className),
98
98
  ...props,
99
99
  children
100
100
  }
@@ -102,12 +102,12 @@ function BadgeTabsItem({ className, children, isActive, mode = "primary", ...pro
102
102
  }
103
103
 
104
104
  const badgeTabsRoot = "_badgeTabsRoot_1qkat_2";
105
- const styles$v = {
105
+ const styles$w = {
106
106
  badgeTabsRoot: badgeTabsRoot
107
107
  };
108
108
 
109
109
  function BadgeTabsRoot({ className, children, ...props }) {
110
- return /* @__PURE__ */ jsx("div", { role: "tablist", className: classNames(styles$v.badgeTabsRoot, className), ...props, children });
110
+ return /* @__PURE__ */ jsx("div", { role: "tablist", className: classNames(styles$w.badgeTabsRoot, className), ...props, children });
111
111
  }
112
112
 
113
113
  function BadgeTabs(props) {
@@ -1064,7 +1064,7 @@ function IconXMarkCircle(props) {
1064
1064
  const breadcrumbs = "_breadcrumbs_1bfmb_2";
1065
1065
  const breadcrumbsItem = "_breadcrumbsItem_1bfmb_8";
1066
1066
  const defaultSeparator = "_defaultSeparator_1bfmb_14";
1067
- const styles$u = {
1067
+ const styles$v = {
1068
1068
  breadcrumbs: breadcrumbs,
1069
1069
  breadcrumbsItem: breadcrumbsItem,
1070
1070
  defaultSeparator: defaultSeparator
@@ -1113,7 +1113,7 @@ function Slot({
1113
1113
  }
1114
1114
 
1115
1115
  const breadcrumbItem = "_breadcrumbItem_cua4v_2";
1116
- const styles$t = {
1116
+ const styles$u = {
1117
1117
  breadcrumbItem: breadcrumbItem
1118
1118
  };
1119
1119
 
@@ -1124,7 +1124,7 @@ function BreadcrumbItem({ children, className, isActive, asChild, ...props }) {
1124
1124
  {
1125
1125
  "data-active": isActive,
1126
1126
  "data-disabled": props.disabled,
1127
- className: classNames(styles$t.breadcrumbItem, className),
1127
+ className: classNames(styles$u.breadcrumbItem, className),
1128
1128
  ...isActive && { "aria-current": "page" },
1129
1129
  ...!asChild && { type: "button" },
1130
1130
  ...props,
@@ -1136,19 +1136,19 @@ function BreadcrumbItem({ children, className, isActive, asChild, ...props }) {
1136
1136
  function Breadcrumbs({
1137
1137
  className,
1138
1138
  children,
1139
- separator = /* @__PURE__ */ jsx(IconChevron, { className: styles$u.defaultSeparator })
1139
+ separator = /* @__PURE__ */ jsx(IconChevron, { className: styles$v.defaultSeparator })
1140
1140
  }) {
1141
1141
  const childrenArray = Array.isArray(children) ? children : [children];
1142
1142
  const lastIndex = childrenArray.length - 1;
1143
- return /* @__PURE__ */ jsx("nav", { "aria-label": "breadcrumb", className, children: /* @__PURE__ */ jsx("ol", { className: styles$u.breadcrumbs, children: childrenArray.map((item, index) => /* @__PURE__ */ jsxs(Fragment, { children: [
1144
- /* @__PURE__ */ jsx("li", { className: styles$u.breadcrumbsItem, children: item }),
1145
- index < lastIndex && /* @__PURE__ */ jsx("li", { className: styles$u.breadcrumbsItem, "aria-hidden": "true", children: separator })
1143
+ return /* @__PURE__ */ jsx("nav", { "aria-label": "breadcrumb", className, children: /* @__PURE__ */ jsx("ol", { className: styles$v.breadcrumbs, children: childrenArray.map((item, index) => /* @__PURE__ */ jsxs(Fragment, { children: [
1144
+ /* @__PURE__ */ jsx("li", { className: styles$v.breadcrumbsItem, children: item }),
1145
+ index < lastIndex && /* @__PURE__ */ jsx("li", { className: styles$v.breadcrumbsItem, "aria-hidden": "true", children: separator })
1146
1146
  ] }, index)) }) });
1147
1147
  }
1148
1148
  Breadcrumbs.Item = BreadcrumbItem;
1149
1149
 
1150
1150
  const button = "_button_1waqk_2";
1151
- const accent$2 = "_accent_1waqk_11";
1151
+ const accent$3 = "_accent_1waqk_11";
1152
1152
  const primary$2 = "_primary_1waqk_12";
1153
1153
  const secondary$3 = "_secondary_1waqk_30";
1154
1154
  const tertiary = "_tertiary_1waqk_48";
@@ -1157,9 +1157,9 @@ const neutral$2 = "_neutral_1waqk_78";
1157
1157
  const lg$6 = "_lg_1waqk_145";
1158
1158
  const md$9 = "_md_1waqk_153";
1159
1159
  const sm$4 = "_sm_1waqk_161";
1160
- const styles$s = {
1160
+ const styles$t = {
1161
1161
  button: button,
1162
- accent: accent$2,
1162
+ accent: accent$3,
1163
1163
  primary: primary$2,
1164
1164
  secondary: secondary$3,
1165
1165
  tertiary: tertiary,
@@ -1171,13 +1171,13 @@ const styles$s = {
1171
1171
  };
1172
1172
 
1173
1173
  const buttonFunction = "_buttonFunction_o8iku_2";
1174
- const accent$1 = "_accent_o8iku_10";
1174
+ const accent$2 = "_accent_o8iku_10";
1175
1175
  const neutral$1 = "_neutral_o8iku_22";
1176
1176
  const lg$5 = "_lg_o8iku_41";
1177
1177
  const md$8 = "_md_o8iku_46";
1178
- const styles$r = {
1178
+ const styles$s = {
1179
1179
  buttonFunction: buttonFunction,
1180
- accent: accent$1,
1180
+ accent: accent$2,
1181
1181
  neutral: neutral$1,
1182
1182
  lg: lg$5,
1183
1183
  md: md$8
@@ -1195,7 +1195,7 @@ function ButtonFunction({
1195
1195
  return /* @__PURE__ */ jsx(
1196
1196
  Component,
1197
1197
  {
1198
- className: classNames(styles$r.buttonFunction, styles$r[color], styles$r[size], className),
1198
+ className: classNames(styles$s.buttonFunction, styles$s[color], styles$s[size], className),
1199
1199
  ...props.disabled && { "data-disabled": true },
1200
1200
  ...!asChild && { type: "button" },
1201
1201
  ...props,
@@ -1217,7 +1217,7 @@ function Button({
1217
1217
  return /* @__PURE__ */ jsx(
1218
1218
  Component,
1219
1219
  {
1220
- className: classNames(styles$s.button, styles$s[color], styles$s[size], styles$s[mode], className),
1220
+ className: classNames(styles$t.button, styles$t[color], styles$t[size], styles$t[mode], className),
1221
1221
  ...!asChild && { type: "button" },
1222
1222
  ...props,
1223
1223
  children
@@ -1229,7 +1229,7 @@ Button.Function = ButtonFunction;
1229
1229
  const checkboxWrapper = "_checkboxWrapper_k1shg_2";
1230
1230
  const icon$2 = "_icon_k1shg_23";
1231
1231
  const checkbox = "_checkbox_k1shg_2";
1232
- const styles$q = {
1232
+ const styles$r = {
1233
1233
  checkboxWrapper: checkboxWrapper,
1234
1234
  icon: icon$2,
1235
1235
  checkbox: checkbox
@@ -1242,11 +1242,11 @@ function Checkbox({ className, label, indeterminate, ...props }) {
1242
1242
  {
1243
1243
  "data-disabled": `${Boolean(props.disabled)}`,
1244
1244
  "data-state": dataState,
1245
- className: classNames(styles$q.checkboxWrapper, className),
1245
+ className: classNames(styles$r.checkboxWrapper, className),
1246
1246
  children: [
1247
- dataState === "checked" && /* @__PURE__ */ jsx(IconCheck, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$q.icon }),
1248
- dataState === "indeterminate" && /* @__PURE__ */ jsx(IconMinus, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$q.icon }),
1249
- /* @__PURE__ */ jsx("input", { "data-state": dataState, type: "checkbox", className: styles$q.checkbox, ...props }),
1247
+ dataState === "checked" && /* @__PURE__ */ jsx(IconCheck, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$r.icon }),
1248
+ dataState === "indeterminate" && /* @__PURE__ */ jsx(IconMinus, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$r.icon }),
1249
+ /* @__PURE__ */ jsx("input", { "data-state": dataState, type: "checkbox", className: styles$r.checkbox, ...props }),
1250
1250
  label
1251
1251
  ]
1252
1252
  }
@@ -1254,7 +1254,7 @@ function Checkbox({ className, label, indeterminate, ...props }) {
1254
1254
  }
1255
1255
 
1256
1256
  const chip = "_chip_dj4kw_2";
1257
- const styles$p = {
1257
+ const styles$q = {
1258
1258
  chip: chip
1259
1259
  };
1260
1260
 
@@ -1262,7 +1262,7 @@ function Chip({ isSelected, children, className, disabled, ...props }) {
1262
1262
  return /* @__PURE__ */ jsx(
1263
1263
  "div",
1264
1264
  {
1265
- className: classNames(styles$p.chip, className),
1265
+ className: classNames(styles$q.chip, className),
1266
1266
  "data-selected": isSelected,
1267
1267
  "data-disabled": disabled,
1268
1268
  "aria-disabled": disabled,
@@ -1276,23 +1276,23 @@ const root$1 = "_root_ww0fb_2";
1276
1276
  const lg$4 = "_lg_ww0fb_16";
1277
1277
  const md$7 = "_md_ww0fb_24";
1278
1278
  const red = "_red_ww0fb_32";
1279
- const accent = "_accent_ww0fb_37";
1279
+ const accent$1 = "_accent_ww0fb_37";
1280
1280
  const neutral = "_neutral_ww0fb_42";
1281
1281
  const secondary$2 = "_secondary_ww0fb_47";
1282
1282
  const white = "_white_ww0fb_52";
1283
- const styles$o = {
1283
+ const styles$p = {
1284
1284
  root: root$1,
1285
1285
  lg: lg$4,
1286
1286
  md: md$7,
1287
1287
  red: red,
1288
- accent: accent,
1288
+ accent: accent$1,
1289
1289
  neutral: neutral,
1290
1290
  secondary: secondary$2,
1291
1291
  white: white
1292
1292
  };
1293
1293
 
1294
1294
  function Counter({ className, size = "lg", color = "red", ...props }) {
1295
- return /* @__PURE__ */ jsx("div", { className: classNames(styles$o.root, styles$o[size], styles$o[color], className), ...props });
1295
+ return /* @__PURE__ */ jsx("div", { className: classNames(styles$p.root, styles$p[size], styles$p[color], className), ...props });
1296
1296
  }
1297
1297
 
1298
1298
  const LOCALE_FIRST_DAY_OF_WEEK = {
@@ -1302,7 +1302,7 @@ const LOCALE_FIRST_DAY_OF_WEEK = {
1302
1302
 
1303
1303
  const datePickerCellWrapper = "_datePickerCellWrapper_np1gx_2";
1304
1304
  const datePickerCell = "_datePickerCell_np1gx_2";
1305
- const styles$n = {
1305
+ const styles$o = {
1306
1306
  datePickerCellWrapper: datePickerCellWrapper,
1307
1307
  datePickerCell: datePickerCell,
1308
1308
  "radius-none": "_radius-none_np1gx_83",
@@ -1312,10 +1312,10 @@ const styles$n = {
1312
1312
  };
1313
1313
 
1314
1314
  function DatePickerCell({ children, className, state, isCurrent, radius = "both", ...props }) {
1315
- return /* @__PURE__ */ jsx("div", { className: classNames(styles$n.datePickerCellWrapper, styles$n[`radius-${radius}`]), "data-state": state, children: /* @__PURE__ */ jsx(
1315
+ return /* @__PURE__ */ jsx("div", { className: classNames(styles$o.datePickerCellWrapper, styles$o[`radius-${radius}`]), "data-state": state, children: /* @__PURE__ */ jsx(
1316
1316
  "button",
1317
1317
  {
1318
- className: classNames(styles$n.datePickerCell, styles$n[`radius-${radius}`], className),
1318
+ className: classNames(styles$o.datePickerCell, styles$o[`radius-${radius}`], className),
1319
1319
  type: "button",
1320
1320
  role: "gridcell",
1321
1321
  "aria-selected": state === "selected",
@@ -1385,7 +1385,7 @@ function normalizeDateRange(firstDate, secondDate) {
1385
1385
  const datePickerField = "_datePickerField_1qk8s_2";
1386
1386
  const datePickerFieldCalendar = "_datePickerFieldCalendar_1qk8s_8";
1387
1387
  const datePickerFieldWeek = "_datePickerFieldWeek_1qk8s_14";
1388
- const styles$m = {
1388
+ const styles$n = {
1389
1389
  datePickerField: datePickerField,
1390
1390
  datePickerFieldCalendar: datePickerFieldCalendar,
1391
1391
  datePickerFieldWeek: datePickerFieldWeek
@@ -1400,9 +1400,9 @@ function DatePickerField({
1400
1400
  firstDayOfWeek = LOCALE_FIRST_DAY_OF_WEEK.ru
1401
1401
  }) {
1402
1402
  const weeks = useMemo(() => getCalendarGrid(month, year, firstDayOfWeek), [month, year, firstDayOfWeek]);
1403
- return /* @__PURE__ */ jsxs("div", { className: classNames(styles$m.datePickerField, className), role: "grid", children: [
1403
+ return /* @__PURE__ */ jsxs("div", { className: classNames(styles$n.datePickerField, className), role: "grid", children: [
1404
1404
  renderWeekdays?.(),
1405
- /* @__PURE__ */ jsx("div", { className: styles$m.datePickerFieldCalendar, role: "rowgroup", children: weeks.map((week, weekIndex) => /* @__PURE__ */ jsx("div", { className: styles$m.datePickerFieldWeek, role: "row", "aria-rowindex": weekIndex + 1, children: week.map((day, dayIndex) => /* @__PURE__ */ jsx(Slot, { role: "gridcell", "aria-colindex": dayIndex + 1, children: children(day) }, `${day.year}-${day.month}-${day.date}`)) }, weekIndex)) })
1405
+ /* @__PURE__ */ jsx("div", { className: styles$n.datePickerFieldCalendar, role: "rowgroup", children: weeks.map((week, weekIndex) => /* @__PURE__ */ jsx("div", { className: styles$n.datePickerFieldWeek, role: "row", "aria-rowindex": weekIndex + 1, children: week.map((day, dayIndex) => /* @__PURE__ */ jsx(Slot, { role: "gridcell", "aria-colindex": dayIndex + 1, children: children(day) }, `${day.year}-${day.month}-${day.date}`)) }, weekIndex)) })
1406
1406
  ] });
1407
1407
  }
1408
1408
 
@@ -1443,13 +1443,13 @@ const I18N_MONTH_LABELS = {
1443
1443
 
1444
1444
  const datePickerWeekdays = "_datePickerWeekdays_p8tsm_2";
1445
1445
  const datePickerWeekday = "_datePickerWeekday_p8tsm_2";
1446
- const styles$l = {
1446
+ const styles$m = {
1447
1447
  datePickerWeekdays: datePickerWeekdays,
1448
1448
  datePickerWeekday: datePickerWeekday
1449
1449
  };
1450
1450
 
1451
1451
  function DatePickerWeekDays({ className, locale = "ru" }) {
1452
- return /* @__PURE__ */ jsx("div", { className: classNames(styles$l.datePickerWeekdays, className), role: "row", children: I18N_WEEKDAY_LABELS[locale].map((label) => /* @__PURE__ */ jsx("div", { className: styles$l.datePickerWeekday, role: "columnheader", children: label }, label)) });
1452
+ return /* @__PURE__ */ jsx("div", { className: classNames(styles$m.datePickerWeekdays, className), role: "row", children: I18N_WEEKDAY_LABELS[locale].map((label) => /* @__PURE__ */ jsx("div", { className: styles$m.datePickerWeekday, role: "columnheader", children: label }, label)) });
1453
1453
  }
1454
1454
 
1455
1455
  function DatePicker() {
@@ -1685,21 +1685,21 @@ const DROPDOWN_PORTAL_SIDE_CONFIG = {
1685
1685
  };
1686
1686
 
1687
1687
  const dropdownContent = "_dropdownContent_12tkb_2";
1688
- const styles$k = {
1688
+ const styles$l = {
1689
1689
  dropdownContent: dropdownContent
1690
1690
  };
1691
1691
 
1692
1692
  function DropdownContent({ className, children, ...props }) {
1693
- return /* @__PURE__ */ jsx("div", { className: classNames(styles$k.dropdownContent, className), ...props, children });
1693
+ return /* @__PURE__ */ jsx("div", { className: classNames(styles$l.dropdownContent, className), ...props, children });
1694
1694
  }
1695
1695
 
1696
1696
  const dropdownItem = "_dropdownItem_msc4i_2";
1697
- const styles$j = {
1697
+ const styles$k = {
1698
1698
  dropdownItem: dropdownItem
1699
1699
  };
1700
1700
 
1701
1701
  function DropdownItem({ className, children, disabled, ...props }) {
1702
- return /* @__PURE__ */ jsx("div", { className: classNames(styles$j.dropdownItem, className), role: "menuitem", "data-disabled": disabled, ...props, children });
1702
+ return /* @__PURE__ */ jsx("div", { className: classNames(styles$k.dropdownItem, className), role: "menuitem", "data-disabled": disabled, ...props, children });
1703
1703
  }
1704
1704
 
1705
1705
  const CLICK_OUTSIDE_IGNORE_DATA_NAME = "data-clickoutside-ignore";
@@ -2127,7 +2127,7 @@ function useTriggerHandlersByEventTrigger() {
2127
2127
  }
2128
2128
 
2129
2129
  const dropdownPortal = "_dropdownPortal_p3tdk_2";
2130
- const styles$i = {
2130
+ const styles$j = {
2131
2131
  dropdownPortal: dropdownPortal
2132
2132
  };
2133
2133
 
@@ -2167,7 +2167,7 @@ function DropdownPortal({
2167
2167
  ...style
2168
2168
  },
2169
2169
  ref: portalRef,
2170
- className: classNames(styles$i.dropdownPortal, className),
2170
+ className: classNames(styles$j.dropdownPortal, className),
2171
2171
  ...handlersByTrigger[triggerEvent],
2172
2172
  ...isNested && { [CLICK_OUTSIDE_IGNORE_DATA_NAME]: "true" },
2173
2173
  children
@@ -2209,6 +2209,69 @@ DropdownMenu.Content = DropdownContent;
2209
2209
  DropdownMenu.Item = DropdownItem;
2210
2210
  DropdownMenu.Portal = DropdownPortal;
2211
2211
 
2212
+ const notificationInline = "_notificationInline_1kerp_2";
2213
+ const accent = "_accent_1kerp_10";
2214
+ const negative = "_negative_1kerp_16";
2215
+ const positive = "_positive_1kerp_22";
2216
+ const warning = "_warning_1kerp_28";
2217
+ const outline = "_outline_1kerp_34";
2218
+ const filled = "_filled_1kerp_39";
2219
+ const statusIcon = "_statusIcon_1kerp_44";
2220
+ const body = "_body_1kerp_51";
2221
+ const titleRow = "_titleRow_1kerp_59";
2222
+ const title = "_title_1kerp_59";
2223
+ const closeButton = "_closeButton_1kerp_74";
2224
+ const closeIcon = "_closeIcon_1kerp_95";
2225
+ const description = "_description_1kerp_100";
2226
+ const actions = "_actions_1kerp_108";
2227
+ const styles$i = {
2228
+ notificationInline: notificationInline,
2229
+ accent: accent,
2230
+ negative: negative,
2231
+ positive: positive,
2232
+ warning: warning,
2233
+ outline: outline,
2234
+ filled: filled,
2235
+ statusIcon: statusIcon,
2236
+ body: body,
2237
+ titleRow: titleRow,
2238
+ title: title,
2239
+ closeButton: closeButton,
2240
+ closeIcon: closeIcon,
2241
+ description: description,
2242
+ actions: actions
2243
+ };
2244
+
2245
+ const STATUS_ICONS = {
2246
+ accent: IconInfo.Filled,
2247
+ negative: IconXMarkCircle,
2248
+ positive: IconCheckCircle,
2249
+ warning: IconCheckCircle
2250
+ };
2251
+ function NotificationInline({
2252
+ title,
2253
+ description,
2254
+ color = "accent",
2255
+ mode = "filled",
2256
+ onClose,
2257
+ children,
2258
+ className,
2259
+ ...props
2260
+ }) {
2261
+ const StatusIcon = STATUS_ICONS[color];
2262
+ return /* @__PURE__ */ jsxs("div", { className: classNames(styles$i.notificationInline, styles$i[color], styles$i[mode], className), ...props, children: [
2263
+ /* @__PURE__ */ jsx(StatusIcon, { className: styles$i.statusIcon, "aria-hidden": "true" }),
2264
+ /* @__PURE__ */ jsxs("span", { className: styles$i.body, children: [
2265
+ /* @__PURE__ */ jsxs("span", { className: styles$i.titleRow, children: [
2266
+ /* @__PURE__ */ jsx("span", { className: styles$i.title, children: title }),
2267
+ onClose && /* @__PURE__ */ jsx("button", { type: "button", "aria-label": "Close", className: styles$i.closeButton, onClick: onClose, children: /* @__PURE__ */ jsx(IconXMark.Small, { className: styles$i.closeIcon, "aria-hidden": "true" }) })
2268
+ ] }),
2269
+ description && /* @__PURE__ */ jsx("span", { className: styles$i.description, children: description }),
2270
+ children && /* @__PURE__ */ jsx("span", { className: styles$i.actions, children })
2271
+ ] })
2272
+ ] });
2273
+ }
2274
+
2212
2275
  const ELLIPSIS = "...";
2213
2276
  const ELLIPSIS_SYMBOL = Symbol(ELLIPSIS);
2214
2277
  const DEFAULT_MAX_VISIBLE_PAGES_WITH_ELLIPSIS = 11;
@@ -3342,4 +3405,4 @@ function Tooltip(props) {
3342
3405
  }
3343
3406
  Tooltip.Content = TooltipContent;
3344
3407
 
3345
- export { Badge, BadgeTabs, Breadcrumbs, Button, Checkbox, Chip, Counter, DatePicker, DropdownMenu, I18N_MONTH_LABELS, I18N_WEEKDAY_LABELS, IconArrow, IconArrowCircle, IconArrowCircleUp, IconArrowDiagonal, IconArrowUTurn, IconBell, IconBox, IconCalendar, IconCharacteristic, IconCheck, IconCheckCircle, IconChevron, IconChevronDouble, IconClock, IconCollapse, IconCopy, IconDots, IconDownload, IconEye, IconFace, IconFile, IconFilters, IconGear, IconHanger, IconHome, IconInfo, IconLogOut, IconLogo, IconMail, IconMinus, IconOneCircle, IconPerson, IconPhone, IconPlus, IconPrize, IconProject, IconQRCode, IconRequest, IconResizeCorner, IconScan, IconSearch, IconShopping, IconSort, IconStar, IconSticker, IconStop, IconStore, IconSwitch, IconTrash, IconXMark, IconXMarkCircle, LOCALE_FIRST_DAY_OF_WEEK, Pagination, ProgressBar, RadioButton, Search, SegmentControl, Slider, Stepper, Switch, Tabs, Tag, TextField, Tooltip, useDatePickerControls, useDatePickerMultiSelect, useDatePickerSelect };
3408
+ export { Badge, BadgeTabs, Breadcrumbs, Button, Checkbox, Chip, Counter, DatePicker, DropdownMenu, I18N_MONTH_LABELS, I18N_WEEKDAY_LABELS, IconArrow, IconArrowCircle, IconArrowCircleUp, IconArrowDiagonal, IconArrowUTurn, IconBell, IconBox, IconCalendar, IconCharacteristic, IconCheck, IconCheckCircle, IconChevron, IconChevronDouble, IconClock, IconCollapse, IconCopy, IconDots, IconDownload, IconEye, IconFace, IconFile, IconFilters, IconGear, IconHanger, IconHome, IconInfo, IconLogOut, IconLogo, IconMail, IconMinus, IconOneCircle, IconPerson, IconPhone, IconPlus, IconPrize, IconProject, IconQRCode, IconRequest, IconResizeCorner, IconScan, IconSearch, IconShopping, IconSort, IconStar, IconSticker, IconStop, IconStore, IconSwitch, IconTrash, IconXMark, IconXMarkCircle, LOCALE_FIRST_DAY_OF_WEEK, NotificationInline, Pagination, ProgressBar, RadioButton, Search, SegmentControl, Slider, Stepper, Switch, Tabs, Tag, TextField, Tooltip, useDatePickerControls, useDatePickerMultiSelect, useDatePickerSelect };
package/dist/style.css CHANGED
@@ -272,6 +272,7 @@ textarea {
272
272
  --color-accent-900: color-mix(in srgb, var(--color-accent) 94.8%, var(--color-white) 5.2%);
273
273
  --color-accent-800: color-mix(in srgb, var(--color-accent) 90%, var(--color-white) 10%);
274
274
 
275
+ --color-accent-alpha-500: color-mix(in srgb, var(--color-accent) 50%, var(--color-transparent));
275
276
  --color-accent-alpha-200: color-mix(in srgb, var(--color-accent) 20%, var(--color-transparent));
276
277
  --color-accent-alpha-150: color-mix(in srgb, var(--color-accent) 15%, var(--color-transparent));
277
278
  --color-accent-alpha-100: color-mix(in srgb, var(--color-accent) 10%, var(--color-transparent));
@@ -283,12 +284,15 @@ textarea {
283
284
  --color-pink-alpha-100: color-mix(in srgb, var(--color-pink) 10%, var(--color-transparent));
284
285
 
285
286
  --color-red: #fe0f2f;
287
+ --color-red-alpha-500: color-mix(in srgb, var(--color-red) 50%, var(--color-transparent));
286
288
  --color-red-alpha-100: color-mix(in srgb, var(--color-red) 10%, var(--color-transparent));
287
289
 
288
290
  --color-orange: #f8a100;
291
+ --color-orange-alpha-500: color-mix(in srgb, var(--color-orange) 50%, var(--color-transparent));
289
292
  --color-orange-alpha-100: color-mix(in srgb, var(--color-orange) 10%, var(--color-transparent));
290
293
 
291
294
  --color-green: #00d06f;
295
+ --color-green-alpha-500: color-mix(in srgb, var(--color-green) 50%, var(--color-transparent));
292
296
  --color-green-alpha-100: color-mix(in srgb, var(--color-green) 10%, var(--color-transparent));
293
297
 
294
298
  --radius-xs: 4px;
@@ -354,65 +358,65 @@ textarea {
354
358
  }
355
359
  }
356
360
  @layer ui_baza_components {
357
- ._badge_p5h5n_2 {
361
+ ._badge_1s8y9_2 {
358
362
  display: flex;
359
363
  align-items: center;
360
364
  justify-content: center;
361
365
  color: var(--color-white);
362
366
  font-weight: var(--font-weight-bold);
363
367
 
364
- &._primary_p5h5n_9 {
368
+ &._primary_1s8y9_9 {
365
369
  background-color: var(--badge-color);
366
370
  }
367
371
 
368
- &._secondary_p5h5n_13 {
372
+ &._secondary_1s8y9_13 {
369
373
  background-color: var(--badge-color-alpha);
370
374
  color: var(--badge-color);
371
375
  }
372
376
 
373
- &._accent_p5h5n_18 {
377
+ &._accent_1s8y9_18 {
374
378
  --badge-color: var(--color-accent);
375
379
  --badge-color-alpha: var(--color-accent-alpha-100);
376
380
  }
377
381
 
378
- &._violet_p5h5n_23 {
382
+ &._violet_1s8y9_23 {
379
383
  --badge-color: var(--color-violet);
380
384
  --badge-color-alpha: var(--color-violet-alpha-100);
381
385
  }
382
386
 
383
- &._pink_p5h5n_28 {
387
+ &._pink_1s8y9_28 {
384
388
  --badge-color: var(--color-pink);
385
389
  --badge-color-alpha: var(--color-pink-alpha-100);
386
390
  }
387
391
 
388
- &._red_p5h5n_33 {
392
+ &._red_1s8y9_33 {
389
393
  --badge-color: var(--color-red);
390
394
  --badge-color-alpha: var(--color-red-alpha-100);
391
395
  }
392
396
 
393
- &._orange_p5h5n_38 {
397
+ &._orange_1s8y9_38 {
394
398
  --badge-color: var(--color-orange);
395
399
  --badge-color-alpha: var(--color-orange-alpha-100);
396
400
  }
397
401
 
398
- &._green_p5h5n_43 {
402
+ &._green_1s8y9_43 {
399
403
  --badge-color: var(--color-green);
400
404
  --badge-color-alpha: var(--color-green-alpha-100);
401
405
  }
402
406
 
403
- &._neutral_p5h5n_48 {
407
+ &._neutral_1s8y9_48 {
404
408
  --badge-color: var(--color-neutral);
405
- --badge-color-alpha: var(--color-neutral-alpha-100);
409
+ --badge-color-alpha: var(--color-neutral-alpha-60);
406
410
  }
407
411
 
408
- &._lg_p5h5n_53 {
412
+ &._lg_1s8y9_53 {
409
413
  padding: var(--space-sm);
410
414
  border-radius: var(--radius-md);
411
415
  font-size: var(--size-sm);
412
416
  line-height: var(--line-height-md);
413
417
  }
414
418
 
415
- &._md_p5h5n_60 {
419
+ &._md_1s8y9_60 {
416
420
  padding: var(--space-xs);
417
421
  border-radius: var(--radius-sm);
418
422
  font-size: var(--size-xs);
@@ -1110,6 +1114,119 @@ textarea {
1110
1114
  }
1111
1115
  }
1112
1116
  }
1117
+ @layer ui_baza_components {
1118
+ ._notificationInline_1kerp_2 {
1119
+ display: flex;
1120
+ align-items: flex-start;
1121
+ width: 100%;
1122
+ padding: var(--space-xl);
1123
+ gap: var(--space-sm);
1124
+ border-radius: var(--radius-xl);
1125
+
1126
+ &._accent_1kerp_10 {
1127
+ --notification-inline-color: var(--color-accent);
1128
+ --notification-inline-background: var(--color-accent-alpha-100);
1129
+ --notification-inline-border-color: var(--color-accent-alpha-500);
1130
+ }
1131
+
1132
+ &._negative_1kerp_16 {
1133
+ --notification-inline-color: var(--color-red);
1134
+ --notification-inline-background: var(--color-red-alpha-100);
1135
+ --notification-inline-border-color: var(--color-red-alpha-500);
1136
+ }
1137
+
1138
+ &._positive_1kerp_22 {
1139
+ --notification-inline-color: var(--color-green);
1140
+ --notification-inline-background: var(--color-green-alpha-100);
1141
+ --notification-inline-border-color: var(--color-green-alpha-500);
1142
+ }
1143
+
1144
+ &._warning_1kerp_28 {
1145
+ --notification-inline-color: var(--color-orange);
1146
+ --notification-inline-background: var(--color-orange-alpha-100);
1147
+ --notification-inline-border-color: var(--color-orange-alpha-500);
1148
+ }
1149
+
1150
+ &._outline_1kerp_34 {
1151
+ border: 2px solid var(--notification-inline-border-color);
1152
+ background-color: var(--color-white);
1153
+ }
1154
+
1155
+ &._filled_1kerp_39 {
1156
+ background-color: var(--notification-inline-background);
1157
+ }
1158
+ }
1159
+
1160
+ ._statusIcon_1kerp_44 {
1161
+ flex-shrink: 0;
1162
+ width: var(--size-xl);
1163
+ height: var(--size-xl);
1164
+ color: var(--notification-inline-color);
1165
+ }
1166
+
1167
+ ._body_1kerp_51 {
1168
+ display: flex;
1169
+ flex: 1;
1170
+ flex-direction: column;
1171
+ min-width: 0;
1172
+ gap: var(--space-xs);
1173
+ }
1174
+
1175
+ ._titleRow_1kerp_59 {
1176
+ display: flex;
1177
+ align-items: center;
1178
+ padding-left: var(--space-xs);
1179
+ gap: var(--space-md);
1180
+ }
1181
+
1182
+ ._title_1kerp_59 {
1183
+ flex: 1;
1184
+ color: var(--color-neutral);
1185
+ font-weight: var(--font-weight-medium);
1186
+ font-size: var(--size-md);
1187
+ line-height: var(--line-height-lg);
1188
+ }
1189
+
1190
+ ._closeButton_1kerp_74 {
1191
+ display: flex;
1192
+ flex-shrink: 0;
1193
+ align-items: center;
1194
+ justify-content: center;
1195
+ width: var(--size-xl);
1196
+ height: var(--size-xl);
1197
+ border-radius: var(--radius-sm);
1198
+ color: var(--color-neutral-500);
1199
+ cursor: pointer;
1200
+ transition: color var(--transition-duration-default) ease-in-out;
1201
+
1202
+ &:hover {
1203
+ color: var(--color-neutral);
1204
+ }
1205
+
1206
+ &:focus-visible {
1207
+ outline: var(--space-2xs) solid var(--color-accent);
1208
+ }
1209
+ }
1210
+
1211
+ ._closeIcon_1kerp_95 {
1212
+ width: var(--size-xl);
1213
+ height: var(--size-xl);
1214
+ }
1215
+
1216
+ ._description_1kerp_100 {
1217
+ display: block;
1218
+ padding-inline: var(--space-xs);
1219
+ color: var(--color-neutral-540);
1220
+ font-size: var(--size-sm);
1221
+ line-height: var(--line-height-md);
1222
+ }
1223
+
1224
+ ._actions_1kerp_108 {
1225
+ display: flex;
1226
+ align-items: center;
1227
+ padding-top: var(--space-md);
1228
+ }
1229
+ }
1113
1230
  @layer ui_baza_components {
1114
1231
  ._paginationItem_1ll6p_2 {
1115
1232
  display: flex;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grandbazar/ui-baza",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "description": "A lightweight and modular UI kit for building modern, accessible web interfaces. Designed for flexibility, scalability, and developer happiness.",
5
5
  "repository": {
6
6
  "type": "git",