@grandbazar/ui-baza 1.3.1 → 1.4.1
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 +185 -48
- package/dist/index.d.ts +44 -0
- package/dist/index.js +180 -49
- package/dist/style.css +117 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -54,7 +54,7 @@ function omit(object, ...keys) {
|
|
|
54
54
|
const badge = "_badge_1s8y9_2";
|
|
55
55
|
const primary$4 = "_primary_1s8y9_9";
|
|
56
56
|
const secondary$5 = "_secondary_1s8y9_13";
|
|
57
|
-
const accent$
|
|
57
|
+
const accent$4 = "_accent_1s8y9_18";
|
|
58
58
|
const violet = "_violet_1s8y9_23";
|
|
59
59
|
const pink = "_pink_1s8y9_28";
|
|
60
60
|
const red$1 = "_red_1s8y9_33";
|
|
@@ -63,11 +63,11 @@ const green = "_green_1s8y9_43";
|
|
|
63
63
|
const neutral$3 = "_neutral_1s8y9_48";
|
|
64
64
|
const lg$7 = "_lg_1s8y9_53";
|
|
65
65
|
const md$a = "_md_1s8y9_60";
|
|
66
|
-
const styles$
|
|
66
|
+
const styles$y = {
|
|
67
67
|
badge: badge,
|
|
68
68
|
primary: primary$4,
|
|
69
69
|
secondary: secondary$5,
|
|
70
|
-
accent: accent$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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) {
|
|
@@ -278,6 +278,16 @@ function IconCalendar(props) {
|
|
|
278
278
|
) });
|
|
279
279
|
}
|
|
280
280
|
|
|
281
|
+
function IconCamera(props) {
|
|
282
|
+
return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
283
|
+
"path",
|
|
284
|
+
{
|
|
285
|
+
d: "M20.7992 8.39989C20.7992 8.16138 20.7046 7.9327 20.5361 7.76398C20.3673 7.5952 20.1378 7.49973 19.8991 7.49973H16.2995C15.9986 7.4997 15.7177 7.34941 15.5508 7.09906L14.018 4.80032H9.58161L8.04876 7.09906C7.88186 7.34941 7.60092 7.4997 7.30005 7.49973H3.70048C3.4618 7.49973 3.23227 7.5952 3.0635 7.76398C2.89493 7.9327 2.80035 8.16138 2.80032 8.39989V18.2995C2.80032 18.5382 2.89472 18.7677 3.0635 18.9365C3.23226 19.1052 3.46187 19.1997 3.70048 19.1997H19.8991C20.1377 19.1997 20.3673 19.1052 20.5361 18.9365C20.7048 18.7677 20.7992 18.5382 20.7992 18.2995V8.39989ZM14.4992 12.8996C14.4991 11.4086 13.2908 10.2002 11.7998 10.2002C10.3087 10.2002 9.10048 11.4086 9.10038 12.8996C9.10038 14.3907 10.3087 15.6001 11.7998 15.6001C13.2909 15.6001 14.4992 14.3907 14.4992 12.8996ZM16.2995 12.8996C16.2995 15.3848 14.285 17.3994 11.7998 17.3994C9.3146 17.3994 7.30005 15.3848 7.30005 12.8996C7.30016 10.4145 9.31466 8.39989 11.7998 8.39989C14.2849 8.39989 16.2994 10.4145 16.2995 12.8996ZM22.5996 18.2995C22.5996 19.0154 22.3151 19.702 21.809 20.2083C21.3026 20.7147 20.6151 21 19.8991 21H3.70048C2.98443 21 2.29692 20.7147 1.79059 20.2083C1.28451 19.702 1 19.0154 1 18.2995V8.39989C1.00003 7.68401 1.28447 6.99736 1.79059 6.49108C2.29692 5.98475 2.98443 5.70048 3.70048 5.70048H6.81882L8.3506 3.40067L8.41935 3.31151C8.58905 3.11527 8.83728 3 9.10038 3H14.4992L14.6109 3.00752C14.8687 3.03962 15.1028 3.18147 15.249 3.40067L16.7807 5.70048H19.8991C20.6151 5.70048 21.3026 5.98475 21.809 6.49108C22.3151 6.99736 22.5995 7.68401 22.5996 8.39989V18.2995Z",
|
|
286
|
+
fill: "currentColor"
|
|
287
|
+
}
|
|
288
|
+
) });
|
|
289
|
+
}
|
|
290
|
+
|
|
281
291
|
function IconCharacteristic(props) {
|
|
282
292
|
return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
283
293
|
"path",
|
|
@@ -427,6 +437,16 @@ function IconCopy(props) {
|
|
|
427
437
|
) });
|
|
428
438
|
}
|
|
429
439
|
|
|
440
|
+
function IconDocument(props) {
|
|
441
|
+
return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
442
|
+
"path",
|
|
443
|
+
{
|
|
444
|
+
d: "M19.2 9.246C19.1906 9.16332 19.1725 9.08187 19.146 9.003V8.922C19.1027 8.82946 19.045 8.7444 18.975 8.67L13.575 3.27C13.5006 3.19999 13.4155 3.14227 13.323 3.099H13.242C13.1506 3.04657 13.0496 3.01291 12.945 3H7.5C6.78392 3 6.09716 3.28446 5.59081 3.79081C5.08447 4.29716 4.8 4.98392 4.8 5.7V18.3C4.8 19.0161 5.08447 19.7028 5.59081 20.2092C6.09716 20.7155 6.78392 21 7.5 21H16.5C17.2161 21 17.9028 20.7155 18.4092 20.2092C18.9155 19.7028 19.2 19.0161 19.2 18.3V9.3C19.2 9.3 19.2 9.3 19.2 9.246ZM13.8 6.069L16.131 8.4H14.7C14.4613 8.4 14.2324 8.30518 14.0636 8.1364C13.8948 7.96761 13.8 7.73869 13.8 7.5V6.069ZM17.4 18.3C17.4 18.5387 17.3052 18.7676 17.1364 18.9364C16.9676 19.1052 16.7387 19.2 16.5 19.2H7.5C7.26131 19.2 7.03239 19.1052 6.86361 18.9364C6.69482 18.7676 6.6 18.5387 6.6 18.3V5.7C6.6 5.46131 6.69482 5.23239 6.86361 5.0636C7.03239 4.89482 7.26131 4.8 7.5 4.8H12V7.5C12 8.21608 12.2845 8.90284 12.7908 9.40919C13.2972 9.91554 13.9839 10.2 14.7 10.2H17.4V18.3Z",
|
|
445
|
+
fill: "currentColor"
|
|
446
|
+
}
|
|
447
|
+
) });
|
|
448
|
+
}
|
|
449
|
+
|
|
430
450
|
function IconDots(props) {
|
|
431
451
|
return /* @__PURE__ */ jsxRuntime.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: [
|
|
432
452
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -759,6 +779,25 @@ function IconOneCircle(props) {
|
|
|
759
779
|
) });
|
|
760
780
|
}
|
|
761
781
|
|
|
782
|
+
function IconPause(props) {
|
|
783
|
+
return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
784
|
+
"path",
|
|
785
|
+
{
|
|
786
|
+
d: "M7.92615 21C8.44915 21 8.8632 20.6077 8.8632 20.0956V3.91525C8.8632 3.40315 8.44915 3 7.92615 3C7.41404 3 7 3.40315 7 3.91525V20.0956C7 20.6077 7.41404 21 7.92615 21ZM15.1283 21C15.6404 21 16.0654 20.6077 16.0654 20.0956V3.91525C16.0654 3.40315 15.6404 3 15.1283 3C14.6162 3 14.2022 3.40315 14.2022 3.91525V20.0956C14.2022 20.6077 14.6162 21 15.1283 21Z",
|
|
787
|
+
fill: "currentColor"
|
|
788
|
+
}
|
|
789
|
+
) });
|
|
790
|
+
}
|
|
791
|
+
IconPause.Filled = function IconPauseFilled(props) {
|
|
792
|
+
return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
793
|
+
"path",
|
|
794
|
+
{
|
|
795
|
+
d: "M6.46961 21H8.98896C9.95029 21 10.4586 20.4918 10.4586 19.5193V4.46961C10.4586 3.46409 9.95029 3 8.98896 3H6.46961C5.50829 3 5 3.50829 5 4.46961V19.5193C5 20.4918 5.50829 21 6.46961 21ZM14.5028 21H17.0111C17.9834 21 18.4807 20.4918 18.4807 19.5193V4.46961C18.4807 3.46409 17.9834 3 17.0111 3H14.5028C13.5304 3 13.0221 3.50829 13.0221 4.46961V19.5193C13.0221 20.4918 13.5304 21 14.5028 21Z",
|
|
796
|
+
fill: "currentColor"
|
|
797
|
+
}
|
|
798
|
+
) });
|
|
799
|
+
};
|
|
800
|
+
|
|
762
801
|
function IconPerson(props) {
|
|
763
802
|
return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
764
803
|
"path",
|
|
@@ -792,6 +831,25 @@ function IconPhone(props) {
|
|
|
792
831
|
) });
|
|
793
832
|
}
|
|
794
833
|
|
|
834
|
+
function IconPlay(props) {
|
|
835
|
+
return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
836
|
+
"path",
|
|
837
|
+
{
|
|
838
|
+
d: "M5.09742 21C5.5227 21 5.88419 20.8299 6.30947 20.5853L18.7063 13.4194C19.5888 12.8984 19.8972 12.5582 19.8972 11.9947C19.8972 11.4312 19.5888 11.091 18.7063 10.5806L6.30947 3.40402C5.88419 3.15948 5.5227 3 5.09742 3C4.31065 3 3.82158 3.59539 3.82158 4.52038V19.469C3.82158 20.3939 4.31065 21 5.09742 21ZM5.63966 18.9693C5.57586 18.9693 5.53333 18.9267 5.53333 18.8417V5.14766C5.53333 5.06261 5.57586 5.02008 5.63966 5.02008C5.68218 5.02008 5.72471 5.04135 5.76723 5.07324L17.5369 11.8777C17.59 11.9096 17.6326 11.9415 17.6326 11.9947C17.6326 12.0478 17.59 12.0904 17.5369 12.1116L5.76723 18.9267C5.72471 18.948 5.68218 18.9693 5.63966 18.9693Z",
|
|
839
|
+
fill: "currentColor"
|
|
840
|
+
}
|
|
841
|
+
) });
|
|
842
|
+
}
|
|
843
|
+
IconPlay.Filled = function IconPlayFilled(props) {
|
|
844
|
+
return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
845
|
+
"path",
|
|
846
|
+
{
|
|
847
|
+
d: "M5.09742 21C5.5227 21 5.88419 20.8299 6.30947 20.5853L18.7063 13.4194C19.5888 12.8984 19.8972 12.5582 19.8972 11.9947C19.8972 11.4312 19.5888 11.091 18.7063 10.5806L6.30947 3.40402C5.88419 3.15948 5.5227 3 5.09742 3C4.31065 3 3.82158 3.59539 3.82158 4.52038V19.469C3.82158 20.3939 4.31065 21 5.09742 21Z",
|
|
848
|
+
fill: "currentColor"
|
|
849
|
+
}
|
|
850
|
+
) });
|
|
851
|
+
};
|
|
852
|
+
|
|
795
853
|
function IconPlus(props) {
|
|
796
854
|
return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
797
855
|
"path",
|
|
@@ -1028,6 +1086,16 @@ IconTrash.Filled = function IconTrashFilled(props) {
|
|
|
1028
1086
|
) });
|
|
1029
1087
|
};
|
|
1030
1088
|
|
|
1089
|
+
function IconUpload(props) {
|
|
1090
|
+
return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1091
|
+
"path",
|
|
1092
|
+
{
|
|
1093
|
+
d: "M2.99989 18.3V14.6999C2.99989 14.2029 3.40284 13.7999 3.8999 13.7999C4.39697 13.7999 4.79991 14.2029 4.79991 14.6999V18.3C4.79991 18.5387 4.8948 18.7675 5.06359 18.9363C5.23237 19.1051 5.46123 19.2 5.69992 19.2H18.3001C18.5388 19.2 18.7676 19.1051 18.9364 18.9363C19.1052 18.7675 19.2001 18.5387 19.2001 18.3V14.6999C19.2001 14.2029 19.603 13.7999 20.1001 13.7999C20.5972 13.7999 21.0001 14.2029 21.0001 14.6999V18.3C21.0001 19.0161 20.7154 19.7026 20.2091 20.209C19.7027 20.7153 19.0162 21 18.3001 21H5.69992C4.98383 21 4.29727 20.7153 3.79092 20.209C3.28456 19.7026 2.99989 19.0161 2.99989 18.3ZM11.1 14.6999V6.07248L8.13628 9.03619C7.78481 9.38766 7.21509 9.38766 6.86361 9.03619C6.51213 8.68471 6.51213 8.11499 6.86361 7.76352L11.3637 3.26346L11.4322 3.20194C11.7857 2.91362 12.3068 2.93396 12.6363 3.26346L17.1364 7.76352C17.4879 8.11499 17.4879 8.68471 17.1364 9.03619C16.7849 9.38766 16.2152 9.38766 15.8637 9.03619L12.9 6.07248V14.6999C12.9 15.197 12.4971 15.5999 12 15.5999C11.5029 15.5999 11.1 15.197 11.1 14.6999Z",
|
|
1094
|
+
fill: "currentColor"
|
|
1095
|
+
}
|
|
1096
|
+
) });
|
|
1097
|
+
}
|
|
1098
|
+
|
|
1031
1099
|
function IconXMark(props) {
|
|
1032
1100
|
return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1033
1101
|
"path",
|
|
@@ -1068,7 +1136,7 @@ function IconXMarkCircle(props) {
|
|
|
1068
1136
|
const breadcrumbs = "_breadcrumbs_1bfmb_2";
|
|
1069
1137
|
const breadcrumbsItem = "_breadcrumbsItem_1bfmb_8";
|
|
1070
1138
|
const defaultSeparator = "_defaultSeparator_1bfmb_14";
|
|
1071
|
-
const styles$
|
|
1139
|
+
const styles$v = {
|
|
1072
1140
|
breadcrumbs: breadcrumbs,
|
|
1073
1141
|
breadcrumbsItem: breadcrumbsItem,
|
|
1074
1142
|
defaultSeparator: defaultSeparator
|
|
@@ -1117,7 +1185,7 @@ function Slot({
|
|
|
1117
1185
|
}
|
|
1118
1186
|
|
|
1119
1187
|
const breadcrumbItem = "_breadcrumbItem_cua4v_2";
|
|
1120
|
-
const styles$
|
|
1188
|
+
const styles$u = {
|
|
1121
1189
|
breadcrumbItem: breadcrumbItem
|
|
1122
1190
|
};
|
|
1123
1191
|
|
|
@@ -1128,7 +1196,7 @@ function BreadcrumbItem({ children, className, isActive, asChild, ...props }) {
|
|
|
1128
1196
|
{
|
|
1129
1197
|
"data-active": isActive,
|
|
1130
1198
|
"data-disabled": props.disabled,
|
|
1131
|
-
className: classNames(styles$
|
|
1199
|
+
className: classNames(styles$u.breadcrumbItem, className),
|
|
1132
1200
|
...isActive && { "aria-current": "page" },
|
|
1133
1201
|
...!asChild && { type: "button" },
|
|
1134
1202
|
...props,
|
|
@@ -1140,19 +1208,19 @@ function BreadcrumbItem({ children, className, isActive, asChild, ...props }) {
|
|
|
1140
1208
|
function Breadcrumbs({
|
|
1141
1209
|
className,
|
|
1142
1210
|
children,
|
|
1143
|
-
separator = /* @__PURE__ */ jsxRuntime.jsx(IconChevron, { className: styles$
|
|
1211
|
+
separator = /* @__PURE__ */ jsxRuntime.jsx(IconChevron, { className: styles$v.defaultSeparator })
|
|
1144
1212
|
}) {
|
|
1145
1213
|
const childrenArray = Array.isArray(children) ? children : [children];
|
|
1146
1214
|
const lastIndex = childrenArray.length - 1;
|
|
1147
|
-
return /* @__PURE__ */ jsxRuntime.jsx("nav", { "aria-label": "breadcrumb", className, children: /* @__PURE__ */ jsxRuntime.jsx("ol", { className: styles$
|
|
1148
|
-
/* @__PURE__ */ jsxRuntime.jsx("li", { className: styles$
|
|
1149
|
-
index < lastIndex && /* @__PURE__ */ jsxRuntime.jsx("li", { className: styles$
|
|
1215
|
+
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: [
|
|
1216
|
+
/* @__PURE__ */ jsxRuntime.jsx("li", { className: styles$v.breadcrumbsItem, children: item }),
|
|
1217
|
+
index < lastIndex && /* @__PURE__ */ jsxRuntime.jsx("li", { className: styles$v.breadcrumbsItem, "aria-hidden": "true", children: separator })
|
|
1150
1218
|
] }, index)) }) });
|
|
1151
1219
|
}
|
|
1152
1220
|
Breadcrumbs.Item = BreadcrumbItem;
|
|
1153
1221
|
|
|
1154
1222
|
const button = "_button_1waqk_2";
|
|
1155
|
-
const accent$
|
|
1223
|
+
const accent$3 = "_accent_1waqk_11";
|
|
1156
1224
|
const primary$2 = "_primary_1waqk_12";
|
|
1157
1225
|
const secondary$3 = "_secondary_1waqk_30";
|
|
1158
1226
|
const tertiary = "_tertiary_1waqk_48";
|
|
@@ -1161,9 +1229,9 @@ const neutral$2 = "_neutral_1waqk_78";
|
|
|
1161
1229
|
const lg$6 = "_lg_1waqk_145";
|
|
1162
1230
|
const md$9 = "_md_1waqk_153";
|
|
1163
1231
|
const sm$4 = "_sm_1waqk_161";
|
|
1164
|
-
const styles$
|
|
1232
|
+
const styles$t = {
|
|
1165
1233
|
button: button,
|
|
1166
|
-
accent: accent$
|
|
1234
|
+
accent: accent$3,
|
|
1167
1235
|
primary: primary$2,
|
|
1168
1236
|
secondary: secondary$3,
|
|
1169
1237
|
tertiary: tertiary,
|
|
@@ -1175,13 +1243,13 @@ const styles$s = {
|
|
|
1175
1243
|
};
|
|
1176
1244
|
|
|
1177
1245
|
const buttonFunction = "_buttonFunction_o8iku_2";
|
|
1178
|
-
const accent$
|
|
1246
|
+
const accent$2 = "_accent_o8iku_10";
|
|
1179
1247
|
const neutral$1 = "_neutral_o8iku_22";
|
|
1180
1248
|
const lg$5 = "_lg_o8iku_41";
|
|
1181
1249
|
const md$8 = "_md_o8iku_46";
|
|
1182
|
-
const styles$
|
|
1250
|
+
const styles$s = {
|
|
1183
1251
|
buttonFunction: buttonFunction,
|
|
1184
|
-
accent: accent$
|
|
1252
|
+
accent: accent$2,
|
|
1185
1253
|
neutral: neutral$1,
|
|
1186
1254
|
lg: lg$5,
|
|
1187
1255
|
md: md$8
|
|
@@ -1199,7 +1267,7 @@ function ButtonFunction({
|
|
|
1199
1267
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1200
1268
|
Component,
|
|
1201
1269
|
{
|
|
1202
|
-
className: classNames(styles$
|
|
1270
|
+
className: classNames(styles$s.buttonFunction, styles$s[color], styles$s[size], className),
|
|
1203
1271
|
...props.disabled && { "data-disabled": true },
|
|
1204
1272
|
...!asChild && { type: "button" },
|
|
1205
1273
|
...props,
|
|
@@ -1221,7 +1289,7 @@ function Button({
|
|
|
1221
1289
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1222
1290
|
Component,
|
|
1223
1291
|
{
|
|
1224
|
-
className: classNames(styles$
|
|
1292
|
+
className: classNames(styles$t.button, styles$t[color], styles$t[size], styles$t[mode], className),
|
|
1225
1293
|
...!asChild && { type: "button" },
|
|
1226
1294
|
...props,
|
|
1227
1295
|
children
|
|
@@ -1233,7 +1301,7 @@ Button.Function = ButtonFunction;
|
|
|
1233
1301
|
const checkboxWrapper = "_checkboxWrapper_k1shg_2";
|
|
1234
1302
|
const icon$2 = "_icon_k1shg_23";
|
|
1235
1303
|
const checkbox = "_checkbox_k1shg_2";
|
|
1236
|
-
const styles$
|
|
1304
|
+
const styles$r = {
|
|
1237
1305
|
checkboxWrapper: checkboxWrapper,
|
|
1238
1306
|
icon: icon$2,
|
|
1239
1307
|
checkbox: checkbox
|
|
@@ -1246,11 +1314,11 @@ function Checkbox({ className, label, indeterminate, ...props }) {
|
|
|
1246
1314
|
{
|
|
1247
1315
|
"data-disabled": `${Boolean(props.disabled)}`,
|
|
1248
1316
|
"data-state": dataState,
|
|
1249
|
-
className: classNames(styles$
|
|
1317
|
+
className: classNames(styles$r.checkboxWrapper, className),
|
|
1250
1318
|
children: [
|
|
1251
|
-
dataState === "checked" && /* @__PURE__ */ jsxRuntime.jsx(IconCheck, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$
|
|
1252
|
-
dataState === "indeterminate" && /* @__PURE__ */ jsxRuntime.jsx(IconMinus, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$
|
|
1253
|
-
/* @__PURE__ */ jsxRuntime.jsx("input", { "data-state": dataState, type: "checkbox", className: styles$
|
|
1319
|
+
dataState === "checked" && /* @__PURE__ */ jsxRuntime.jsx(IconCheck, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$r.icon }),
|
|
1320
|
+
dataState === "indeterminate" && /* @__PURE__ */ jsxRuntime.jsx(IconMinus, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$r.icon }),
|
|
1321
|
+
/* @__PURE__ */ jsxRuntime.jsx("input", { "data-state": dataState, type: "checkbox", className: styles$r.checkbox, ...props }),
|
|
1254
1322
|
label
|
|
1255
1323
|
]
|
|
1256
1324
|
}
|
|
@@ -1258,7 +1326,7 @@ function Checkbox({ className, label, indeterminate, ...props }) {
|
|
|
1258
1326
|
}
|
|
1259
1327
|
|
|
1260
1328
|
const chip = "_chip_dj4kw_2";
|
|
1261
|
-
const styles$
|
|
1329
|
+
const styles$q = {
|
|
1262
1330
|
chip: chip
|
|
1263
1331
|
};
|
|
1264
1332
|
|
|
@@ -1266,7 +1334,7 @@ function Chip({ isSelected, children, className, disabled, ...props }) {
|
|
|
1266
1334
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1267
1335
|
"div",
|
|
1268
1336
|
{
|
|
1269
|
-
className: classNames(styles$
|
|
1337
|
+
className: classNames(styles$q.chip, className),
|
|
1270
1338
|
"data-selected": isSelected,
|
|
1271
1339
|
"data-disabled": disabled,
|
|
1272
1340
|
"aria-disabled": disabled,
|
|
@@ -1280,23 +1348,23 @@ const root$1 = "_root_ww0fb_2";
|
|
|
1280
1348
|
const lg$4 = "_lg_ww0fb_16";
|
|
1281
1349
|
const md$7 = "_md_ww0fb_24";
|
|
1282
1350
|
const red = "_red_ww0fb_32";
|
|
1283
|
-
const accent = "_accent_ww0fb_37";
|
|
1351
|
+
const accent$1 = "_accent_ww0fb_37";
|
|
1284
1352
|
const neutral = "_neutral_ww0fb_42";
|
|
1285
1353
|
const secondary$2 = "_secondary_ww0fb_47";
|
|
1286
1354
|
const white = "_white_ww0fb_52";
|
|
1287
|
-
const styles$
|
|
1355
|
+
const styles$p = {
|
|
1288
1356
|
root: root$1,
|
|
1289
1357
|
lg: lg$4,
|
|
1290
1358
|
md: md$7,
|
|
1291
1359
|
red: red,
|
|
1292
|
-
accent: accent,
|
|
1360
|
+
accent: accent$1,
|
|
1293
1361
|
neutral: neutral,
|
|
1294
1362
|
secondary: secondary$2,
|
|
1295
1363
|
white: white
|
|
1296
1364
|
};
|
|
1297
1365
|
|
|
1298
1366
|
function Counter({ className, size = "lg", color = "red", ...props }) {
|
|
1299
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$
|
|
1367
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$p.root, styles$p[size], styles$p[color], className), ...props });
|
|
1300
1368
|
}
|
|
1301
1369
|
|
|
1302
1370
|
const LOCALE_FIRST_DAY_OF_WEEK = {
|
|
@@ -1306,7 +1374,7 @@ const LOCALE_FIRST_DAY_OF_WEEK = {
|
|
|
1306
1374
|
|
|
1307
1375
|
const datePickerCellWrapper = "_datePickerCellWrapper_np1gx_2";
|
|
1308
1376
|
const datePickerCell = "_datePickerCell_np1gx_2";
|
|
1309
|
-
const styles$
|
|
1377
|
+
const styles$o = {
|
|
1310
1378
|
datePickerCellWrapper: datePickerCellWrapper,
|
|
1311
1379
|
datePickerCell: datePickerCell,
|
|
1312
1380
|
"radius-none": "_radius-none_np1gx_83",
|
|
@@ -1316,10 +1384,10 @@ const styles$n = {
|
|
|
1316
1384
|
};
|
|
1317
1385
|
|
|
1318
1386
|
function DatePickerCell({ children, className, state, isCurrent, radius = "both", ...props }) {
|
|
1319
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$
|
|
1387
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$o.datePickerCellWrapper, styles$o[`radius-${radius}`]), "data-state": state, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1320
1388
|
"button",
|
|
1321
1389
|
{
|
|
1322
|
-
className: classNames(styles$
|
|
1390
|
+
className: classNames(styles$o.datePickerCell, styles$o[`radius-${radius}`], className),
|
|
1323
1391
|
type: "button",
|
|
1324
1392
|
role: "gridcell",
|
|
1325
1393
|
"aria-selected": state === "selected",
|
|
@@ -1389,7 +1457,7 @@ function normalizeDateRange(firstDate, secondDate) {
|
|
|
1389
1457
|
const datePickerField = "_datePickerField_1qk8s_2";
|
|
1390
1458
|
const datePickerFieldCalendar = "_datePickerFieldCalendar_1qk8s_8";
|
|
1391
1459
|
const datePickerFieldWeek = "_datePickerFieldWeek_1qk8s_14";
|
|
1392
|
-
const styles$
|
|
1460
|
+
const styles$n = {
|
|
1393
1461
|
datePickerField: datePickerField,
|
|
1394
1462
|
datePickerFieldCalendar: datePickerFieldCalendar,
|
|
1395
1463
|
datePickerFieldWeek: datePickerFieldWeek
|
|
@@ -1404,9 +1472,9 @@ function DatePickerField({
|
|
|
1404
1472
|
firstDayOfWeek = LOCALE_FIRST_DAY_OF_WEEK.ru
|
|
1405
1473
|
}) {
|
|
1406
1474
|
const weeks = React.useMemo(() => getCalendarGrid(month, year, firstDayOfWeek), [month, year, firstDayOfWeek]);
|
|
1407
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: classNames(styles$
|
|
1475
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: classNames(styles$n.datePickerField, className), role: "grid", children: [
|
|
1408
1476
|
renderWeekdays?.(),
|
|
1409
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$
|
|
1477
|
+
/* @__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
1478
|
] });
|
|
1411
1479
|
}
|
|
1412
1480
|
|
|
@@ -1447,13 +1515,13 @@ const I18N_MONTH_LABELS = {
|
|
|
1447
1515
|
|
|
1448
1516
|
const datePickerWeekdays = "_datePickerWeekdays_p8tsm_2";
|
|
1449
1517
|
const datePickerWeekday = "_datePickerWeekday_p8tsm_2";
|
|
1450
|
-
const styles$
|
|
1518
|
+
const styles$m = {
|
|
1451
1519
|
datePickerWeekdays: datePickerWeekdays,
|
|
1452
1520
|
datePickerWeekday: datePickerWeekday
|
|
1453
1521
|
};
|
|
1454
1522
|
|
|
1455
1523
|
function DatePickerWeekDays({ className, locale = "ru" }) {
|
|
1456
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$
|
|
1524
|
+
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
1525
|
}
|
|
1458
1526
|
|
|
1459
1527
|
function DatePicker() {
|
|
@@ -1689,21 +1757,21 @@ const DROPDOWN_PORTAL_SIDE_CONFIG = {
|
|
|
1689
1757
|
};
|
|
1690
1758
|
|
|
1691
1759
|
const dropdownContent = "_dropdownContent_12tkb_2";
|
|
1692
|
-
const styles$
|
|
1760
|
+
const styles$l = {
|
|
1693
1761
|
dropdownContent: dropdownContent
|
|
1694
1762
|
};
|
|
1695
1763
|
|
|
1696
1764
|
function DropdownContent({ className, children, ...props }) {
|
|
1697
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$
|
|
1765
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$l.dropdownContent, className), ...props, children });
|
|
1698
1766
|
}
|
|
1699
1767
|
|
|
1700
1768
|
const dropdownItem = "_dropdownItem_msc4i_2";
|
|
1701
|
-
const styles$
|
|
1769
|
+
const styles$k = {
|
|
1702
1770
|
dropdownItem: dropdownItem
|
|
1703
1771
|
};
|
|
1704
1772
|
|
|
1705
1773
|
function DropdownItem({ className, children, disabled, ...props }) {
|
|
1706
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$
|
|
1774
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames(styles$k.dropdownItem, className), role: "menuitem", "data-disabled": disabled, ...props, children });
|
|
1707
1775
|
}
|
|
1708
1776
|
|
|
1709
1777
|
const CLICK_OUTSIDE_IGNORE_DATA_NAME = "data-clickoutside-ignore";
|
|
@@ -2131,7 +2199,7 @@ function useTriggerHandlersByEventTrigger() {
|
|
|
2131
2199
|
}
|
|
2132
2200
|
|
|
2133
2201
|
const dropdownPortal = "_dropdownPortal_p3tdk_2";
|
|
2134
|
-
const styles$
|
|
2202
|
+
const styles$j = {
|
|
2135
2203
|
dropdownPortal: dropdownPortal
|
|
2136
2204
|
};
|
|
2137
2205
|
|
|
@@ -2171,7 +2239,7 @@ function DropdownPortal({
|
|
|
2171
2239
|
...style
|
|
2172
2240
|
},
|
|
2173
2241
|
ref: portalRef,
|
|
2174
|
-
className: classNames(styles$
|
|
2242
|
+
className: classNames(styles$j.dropdownPortal, className),
|
|
2175
2243
|
...handlersByTrigger[triggerEvent],
|
|
2176
2244
|
...isNested && { [CLICK_OUTSIDE_IGNORE_DATA_NAME]: "true" },
|
|
2177
2245
|
children
|
|
@@ -2213,6 +2281,69 @@ DropdownMenu.Content = DropdownContent;
|
|
|
2213
2281
|
DropdownMenu.Item = DropdownItem;
|
|
2214
2282
|
DropdownMenu.Portal = DropdownPortal;
|
|
2215
2283
|
|
|
2284
|
+
const notificationInline = "_notificationInline_1kerp_2";
|
|
2285
|
+
const accent = "_accent_1kerp_10";
|
|
2286
|
+
const negative = "_negative_1kerp_16";
|
|
2287
|
+
const positive = "_positive_1kerp_22";
|
|
2288
|
+
const warning = "_warning_1kerp_28";
|
|
2289
|
+
const outline = "_outline_1kerp_34";
|
|
2290
|
+
const filled = "_filled_1kerp_39";
|
|
2291
|
+
const statusIcon = "_statusIcon_1kerp_44";
|
|
2292
|
+
const body = "_body_1kerp_51";
|
|
2293
|
+
const titleRow = "_titleRow_1kerp_59";
|
|
2294
|
+
const title = "_title_1kerp_59";
|
|
2295
|
+
const closeButton = "_closeButton_1kerp_74";
|
|
2296
|
+
const closeIcon = "_closeIcon_1kerp_95";
|
|
2297
|
+
const description = "_description_1kerp_100";
|
|
2298
|
+
const actions = "_actions_1kerp_108";
|
|
2299
|
+
const styles$i = {
|
|
2300
|
+
notificationInline: notificationInline,
|
|
2301
|
+
accent: accent,
|
|
2302
|
+
negative: negative,
|
|
2303
|
+
positive: positive,
|
|
2304
|
+
warning: warning,
|
|
2305
|
+
outline: outline,
|
|
2306
|
+
filled: filled,
|
|
2307
|
+
statusIcon: statusIcon,
|
|
2308
|
+
body: body,
|
|
2309
|
+
titleRow: titleRow,
|
|
2310
|
+
title: title,
|
|
2311
|
+
closeButton: closeButton,
|
|
2312
|
+
closeIcon: closeIcon,
|
|
2313
|
+
description: description,
|
|
2314
|
+
actions: actions
|
|
2315
|
+
};
|
|
2316
|
+
|
|
2317
|
+
const STATUS_ICONS = {
|
|
2318
|
+
accent: IconInfo.Filled,
|
|
2319
|
+
negative: IconXMarkCircle,
|
|
2320
|
+
positive: IconCheckCircle,
|
|
2321
|
+
warning: IconCheckCircle
|
|
2322
|
+
};
|
|
2323
|
+
function NotificationInline({
|
|
2324
|
+
title,
|
|
2325
|
+
description,
|
|
2326
|
+
color = "accent",
|
|
2327
|
+
mode = "filled",
|
|
2328
|
+
onClose,
|
|
2329
|
+
children,
|
|
2330
|
+
className,
|
|
2331
|
+
...props
|
|
2332
|
+
}) {
|
|
2333
|
+
const StatusIcon = STATUS_ICONS[color];
|
|
2334
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: classNames(styles$i.notificationInline, styles$i[color], styles$i[mode], className), ...props, children: [
|
|
2335
|
+
/* @__PURE__ */ jsxRuntime.jsx(StatusIcon, { className: styles$i.statusIcon, "aria-hidden": "true" }),
|
|
2336
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: styles$i.body, children: [
|
|
2337
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: styles$i.titleRow, children: [
|
|
2338
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$i.title, children: title }),
|
|
2339
|
+
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" }) })
|
|
2340
|
+
] }),
|
|
2341
|
+
description && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$i.description, children: description }),
|
|
2342
|
+
children && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$i.actions, children })
|
|
2343
|
+
] })
|
|
2344
|
+
] });
|
|
2345
|
+
}
|
|
2346
|
+
|
|
2216
2347
|
const ELLIPSIS = "...";
|
|
2217
2348
|
const ELLIPSIS_SYMBOL = Symbol(ELLIPSIS);
|
|
2218
2349
|
const DEFAULT_MAX_VISIBLE_PAGES_WITH_ELLIPSIS = 11;
|
|
@@ -3365,6 +3496,7 @@ exports.IconArrowUTurn = IconArrowUTurn;
|
|
|
3365
3496
|
exports.IconBell = IconBell;
|
|
3366
3497
|
exports.IconBox = IconBox;
|
|
3367
3498
|
exports.IconCalendar = IconCalendar;
|
|
3499
|
+
exports.IconCamera = IconCamera;
|
|
3368
3500
|
exports.IconCharacteristic = IconCharacteristic;
|
|
3369
3501
|
exports.IconCheck = IconCheck;
|
|
3370
3502
|
exports.IconCheckCircle = IconCheckCircle;
|
|
@@ -3373,6 +3505,7 @@ exports.IconChevronDouble = IconChevronDouble;
|
|
|
3373
3505
|
exports.IconClock = IconClock;
|
|
3374
3506
|
exports.IconCollapse = IconCollapse;
|
|
3375
3507
|
exports.IconCopy = IconCopy;
|
|
3508
|
+
exports.IconDocument = IconDocument;
|
|
3376
3509
|
exports.IconDots = IconDots;
|
|
3377
3510
|
exports.IconDownload = IconDownload;
|
|
3378
3511
|
exports.IconEye = IconEye;
|
|
@@ -3388,8 +3521,10 @@ exports.IconLogo = IconLogo;
|
|
|
3388
3521
|
exports.IconMail = IconMail;
|
|
3389
3522
|
exports.IconMinus = IconMinus;
|
|
3390
3523
|
exports.IconOneCircle = IconOneCircle;
|
|
3524
|
+
exports.IconPause = IconPause;
|
|
3391
3525
|
exports.IconPerson = IconPerson;
|
|
3392
3526
|
exports.IconPhone = IconPhone;
|
|
3527
|
+
exports.IconPlay = IconPlay;
|
|
3393
3528
|
exports.IconPlus = IconPlus;
|
|
3394
3529
|
exports.IconPrize = IconPrize;
|
|
3395
3530
|
exports.IconProject = IconProject;
|
|
@@ -3406,9 +3541,11 @@ exports.IconStop = IconStop;
|
|
|
3406
3541
|
exports.IconStore = IconStore;
|
|
3407
3542
|
exports.IconSwitch = IconSwitch;
|
|
3408
3543
|
exports.IconTrash = IconTrash;
|
|
3544
|
+
exports.IconUpload = IconUpload;
|
|
3409
3545
|
exports.IconXMark = IconXMark;
|
|
3410
3546
|
exports.IconXMarkCircle = IconXMarkCircle;
|
|
3411
3547
|
exports.LOCALE_FIRST_DAY_OF_WEEK = LOCALE_FIRST_DAY_OF_WEEK;
|
|
3548
|
+
exports.NotificationInline = NotificationInline;
|
|
3412
3549
|
exports.Pagination = Pagination;
|
|
3413
3550
|
exports.ProgressBar = ProgressBar;
|
|
3414
3551
|
exports.RadioButton = RadioButton;
|
package/dist/index.d.ts
CHANGED
|
@@ -239,6 +239,8 @@ export declare function IconBox(props: TSvgIconProps): JSX.Element;
|
|
|
239
239
|
|
|
240
240
|
export declare function IconCalendar(props: TSvgIconProps): JSX.Element;
|
|
241
241
|
|
|
242
|
+
export declare function IconCamera(props: TSvgIconProps): JSX.Element;
|
|
243
|
+
|
|
242
244
|
export declare function IconCharacteristic(props: TSvgIconProps): JSX.Element;
|
|
243
245
|
|
|
244
246
|
export declare function IconCheck(props: TSvgIconProps): JSX.Element;
|
|
@@ -263,6 +265,8 @@ export declare function IconCollapse(props: TSvgIconProps): JSX.Element;
|
|
|
263
265
|
|
|
264
266
|
export declare function IconCopy(props: TSvgIconProps): JSX.Element;
|
|
265
267
|
|
|
268
|
+
export declare function IconDocument(props: TSvgIconProps): JSX.Element;
|
|
269
|
+
|
|
266
270
|
export declare function IconDots(props: TSvgIconProps): JSX.Element;
|
|
267
271
|
|
|
268
272
|
export declare function IconDownload(props: TSvgIconProps): JSX.Element;
|
|
@@ -325,6 +329,12 @@ export declare function IconMinus(props: TSvgIconProps): JSX.Element;
|
|
|
325
329
|
|
|
326
330
|
export declare function IconOneCircle(props: TSvgIconProps): JSX.Element;
|
|
327
331
|
|
|
332
|
+
export declare function IconPause(props: TSvgIconProps): JSX.Element;
|
|
333
|
+
|
|
334
|
+
export declare namespace IconPause {
|
|
335
|
+
var Filled: (props: TSvgIconProps) => JSX.Element;
|
|
336
|
+
}
|
|
337
|
+
|
|
328
338
|
export declare function IconPerson(props: TSvgIconProps): JSX.Element;
|
|
329
339
|
|
|
330
340
|
export declare namespace IconPerson {
|
|
@@ -333,6 +343,12 @@ export declare namespace IconPerson {
|
|
|
333
343
|
|
|
334
344
|
export declare function IconPhone(props: TSvgIconProps): JSX.Element;
|
|
335
345
|
|
|
346
|
+
export declare function IconPlay(props: TSvgIconProps): JSX.Element;
|
|
347
|
+
|
|
348
|
+
export declare namespace IconPlay {
|
|
349
|
+
var Filled: (props: TSvgIconProps) => JSX.Element;
|
|
350
|
+
}
|
|
351
|
+
|
|
336
352
|
export declare function IconPlus(props: TSvgIconProps): JSX.Element;
|
|
337
353
|
|
|
338
354
|
export declare function IconPrize(props: TSvgIconProps): JSX.Element;
|
|
@@ -383,6 +399,8 @@ export declare namespace IconTrash {
|
|
|
383
399
|
var Filled: (props: TSvgIconProps) => JSX.Element;
|
|
384
400
|
}
|
|
385
401
|
|
|
402
|
+
export declare function IconUpload(props: TSvgIconProps): JSX.Element;
|
|
403
|
+
|
|
386
404
|
declare function IconVK(props: TSvgIconProps): JSX.Element;
|
|
387
405
|
|
|
388
406
|
export declare function IconXMark(props: TSvgIconProps): JSX.Element;
|
|
@@ -401,6 +419,24 @@ export declare const LOCALE_FIRST_DAY_OF_WEEK: TLabel<number>;
|
|
|
401
419
|
|
|
402
420
|
declare const LOCALES: readonly ["en", "ru"];
|
|
403
421
|
|
|
422
|
+
declare const NOTIFICATION_INLINE_COLORS: readonly ["accent", "negative", "positive", "warning"];
|
|
423
|
+
|
|
424
|
+
declare const NOTIFICATION_INLINE_MODES: readonly ["outline", "filled"];
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* NotificationInline informs users with concise, timely information inside a content area.
|
|
428
|
+
* Renders a status icon, a title, an optional description, an optional close button
|
|
429
|
+
* and an optional row of action buttons passed as children.
|
|
430
|
+
*
|
|
431
|
+
* @param title - Notification heading
|
|
432
|
+
* @param description - Supporting text below the title
|
|
433
|
+
* @param color - Status of the notification (accent, negative, positive, warning)
|
|
434
|
+
* @param mode - Surface style (outline, filled)
|
|
435
|
+
* @param onClose - Called when the close button is clicked; the button renders only when provided
|
|
436
|
+
* @param children - Action buttons rendered in a row below the text
|
|
437
|
+
*/
|
|
438
|
+
export declare function NotificationInline({ title, description, color, mode, onClose, children, className, ...props }: TNotificationInlineProps): JSX.Element;
|
|
439
|
+
|
|
404
440
|
/**
|
|
405
441
|
* Pagination is a compound component for building pagination interfaces.
|
|
406
442
|
* Provides flexible building blocks for navigating through pages with customizable rendering.
|
|
@@ -780,6 +816,14 @@ declare type TLabel<T = string> = Record<TLocale, T>;
|
|
|
780
816
|
|
|
781
817
|
declare type TLocale = TArrayElement<typeof LOCALES>;
|
|
782
818
|
|
|
819
|
+
declare type TNotificationInlineProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> & {
|
|
820
|
+
title: string;
|
|
821
|
+
description?: string;
|
|
822
|
+
color?: TArrayElement<typeof NOTIFICATION_INLINE_COLORS>;
|
|
823
|
+
mode?: TArrayElement<typeof NOTIFICATION_INLINE_MODES>;
|
|
824
|
+
onClose?: () => void;
|
|
825
|
+
};
|
|
826
|
+
|
|
783
827
|
/**
|
|
784
828
|
* Tooltip is a compound component for displaying contextual hints.
|
|
785
829
|
* Provides a trigger wrapper and content rendering for short descriptions.
|
package/dist/index.js
CHANGED
|
@@ -50,7 +50,7 @@ function omit(object, ...keys) {
|
|
|
50
50
|
const badge = "_badge_1s8y9_2";
|
|
51
51
|
const primary$4 = "_primary_1s8y9_9";
|
|
52
52
|
const secondary$5 = "_secondary_1s8y9_13";
|
|
53
|
-
const accent$
|
|
53
|
+
const accent$4 = "_accent_1s8y9_18";
|
|
54
54
|
const violet = "_violet_1s8y9_23";
|
|
55
55
|
const pink = "_pink_1s8y9_28";
|
|
56
56
|
const red$1 = "_red_1s8y9_33";
|
|
@@ -59,11 +59,11 @@ const green = "_green_1s8y9_43";
|
|
|
59
59
|
const neutral$3 = "_neutral_1s8y9_48";
|
|
60
60
|
const lg$7 = "_lg_1s8y9_53";
|
|
61
61
|
const md$a = "_md_1s8y9_60";
|
|
62
|
-
const styles$
|
|
62
|
+
const styles$y = {
|
|
63
63
|
badge: badge,
|
|
64
64
|
primary: primary$4,
|
|
65
65
|
secondary: secondary$5,
|
|
66
|
-
accent: accent$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
110
|
+
return /* @__PURE__ */ jsx("div", { role: "tablist", className: classNames(styles$w.badgeTabsRoot, className), ...props, children });
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
function BadgeTabs(props) {
|
|
@@ -274,6 +274,16 @@ function IconCalendar(props) {
|
|
|
274
274
|
) });
|
|
275
275
|
}
|
|
276
276
|
|
|
277
|
+
function IconCamera(props) {
|
|
278
|
+
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsx(
|
|
279
|
+
"path",
|
|
280
|
+
{
|
|
281
|
+
d: "M20.7992 8.39989C20.7992 8.16138 20.7046 7.9327 20.5361 7.76398C20.3673 7.5952 20.1378 7.49973 19.8991 7.49973H16.2995C15.9986 7.4997 15.7177 7.34941 15.5508 7.09906L14.018 4.80032H9.58161L8.04876 7.09906C7.88186 7.34941 7.60092 7.4997 7.30005 7.49973H3.70048C3.4618 7.49973 3.23227 7.5952 3.0635 7.76398C2.89493 7.9327 2.80035 8.16138 2.80032 8.39989V18.2995C2.80032 18.5382 2.89472 18.7677 3.0635 18.9365C3.23226 19.1052 3.46187 19.1997 3.70048 19.1997H19.8991C20.1377 19.1997 20.3673 19.1052 20.5361 18.9365C20.7048 18.7677 20.7992 18.5382 20.7992 18.2995V8.39989ZM14.4992 12.8996C14.4991 11.4086 13.2908 10.2002 11.7998 10.2002C10.3087 10.2002 9.10048 11.4086 9.10038 12.8996C9.10038 14.3907 10.3087 15.6001 11.7998 15.6001C13.2909 15.6001 14.4992 14.3907 14.4992 12.8996ZM16.2995 12.8996C16.2995 15.3848 14.285 17.3994 11.7998 17.3994C9.3146 17.3994 7.30005 15.3848 7.30005 12.8996C7.30016 10.4145 9.31466 8.39989 11.7998 8.39989C14.2849 8.39989 16.2994 10.4145 16.2995 12.8996ZM22.5996 18.2995C22.5996 19.0154 22.3151 19.702 21.809 20.2083C21.3026 20.7147 20.6151 21 19.8991 21H3.70048C2.98443 21 2.29692 20.7147 1.79059 20.2083C1.28451 19.702 1 19.0154 1 18.2995V8.39989C1.00003 7.68401 1.28447 6.99736 1.79059 6.49108C2.29692 5.98475 2.98443 5.70048 3.70048 5.70048H6.81882L8.3506 3.40067L8.41935 3.31151C8.58905 3.11527 8.83728 3 9.10038 3H14.4992L14.6109 3.00752C14.8687 3.03962 15.1028 3.18147 15.249 3.40067L16.7807 5.70048H19.8991C20.6151 5.70048 21.3026 5.98475 21.809 6.49108C22.3151 6.99736 22.5995 7.68401 22.5996 8.39989V18.2995Z",
|
|
282
|
+
fill: "currentColor"
|
|
283
|
+
}
|
|
284
|
+
) });
|
|
285
|
+
}
|
|
286
|
+
|
|
277
287
|
function IconCharacteristic(props) {
|
|
278
288
|
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsx(
|
|
279
289
|
"path",
|
|
@@ -423,6 +433,16 @@ function IconCopy(props) {
|
|
|
423
433
|
) });
|
|
424
434
|
}
|
|
425
435
|
|
|
436
|
+
function IconDocument(props) {
|
|
437
|
+
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsx(
|
|
438
|
+
"path",
|
|
439
|
+
{
|
|
440
|
+
d: "M19.2 9.246C19.1906 9.16332 19.1725 9.08187 19.146 9.003V8.922C19.1027 8.82946 19.045 8.7444 18.975 8.67L13.575 3.27C13.5006 3.19999 13.4155 3.14227 13.323 3.099H13.242C13.1506 3.04657 13.0496 3.01291 12.945 3H7.5C6.78392 3 6.09716 3.28446 5.59081 3.79081C5.08447 4.29716 4.8 4.98392 4.8 5.7V18.3C4.8 19.0161 5.08447 19.7028 5.59081 20.2092C6.09716 20.7155 6.78392 21 7.5 21H16.5C17.2161 21 17.9028 20.7155 18.4092 20.2092C18.9155 19.7028 19.2 19.0161 19.2 18.3V9.3C19.2 9.3 19.2 9.3 19.2 9.246ZM13.8 6.069L16.131 8.4H14.7C14.4613 8.4 14.2324 8.30518 14.0636 8.1364C13.8948 7.96761 13.8 7.73869 13.8 7.5V6.069ZM17.4 18.3C17.4 18.5387 17.3052 18.7676 17.1364 18.9364C16.9676 19.1052 16.7387 19.2 16.5 19.2H7.5C7.26131 19.2 7.03239 19.1052 6.86361 18.9364C6.69482 18.7676 6.6 18.5387 6.6 18.3V5.7C6.6 5.46131 6.69482 5.23239 6.86361 5.0636C7.03239 4.89482 7.26131 4.8 7.5 4.8H12V7.5C12 8.21608 12.2845 8.90284 12.7908 9.40919C13.2972 9.91554 13.9839 10.2 14.7 10.2H17.4V18.3Z",
|
|
441
|
+
fill: "currentColor"
|
|
442
|
+
}
|
|
443
|
+
) });
|
|
444
|
+
}
|
|
445
|
+
|
|
426
446
|
function IconDots(props) {
|
|
427
447
|
return /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: [
|
|
428
448
|
/* @__PURE__ */ jsx(
|
|
@@ -755,6 +775,25 @@ function IconOneCircle(props) {
|
|
|
755
775
|
) });
|
|
756
776
|
}
|
|
757
777
|
|
|
778
|
+
function IconPause(props) {
|
|
779
|
+
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsx(
|
|
780
|
+
"path",
|
|
781
|
+
{
|
|
782
|
+
d: "M7.92615 21C8.44915 21 8.8632 20.6077 8.8632 20.0956V3.91525C8.8632 3.40315 8.44915 3 7.92615 3C7.41404 3 7 3.40315 7 3.91525V20.0956C7 20.6077 7.41404 21 7.92615 21ZM15.1283 21C15.6404 21 16.0654 20.6077 16.0654 20.0956V3.91525C16.0654 3.40315 15.6404 3 15.1283 3C14.6162 3 14.2022 3.40315 14.2022 3.91525V20.0956C14.2022 20.6077 14.6162 21 15.1283 21Z",
|
|
783
|
+
fill: "currentColor"
|
|
784
|
+
}
|
|
785
|
+
) });
|
|
786
|
+
}
|
|
787
|
+
IconPause.Filled = function IconPauseFilled(props) {
|
|
788
|
+
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsx(
|
|
789
|
+
"path",
|
|
790
|
+
{
|
|
791
|
+
d: "M6.46961 21H8.98896C9.95029 21 10.4586 20.4918 10.4586 19.5193V4.46961C10.4586 3.46409 9.95029 3 8.98896 3H6.46961C5.50829 3 5 3.50829 5 4.46961V19.5193C5 20.4918 5.50829 21 6.46961 21ZM14.5028 21H17.0111C17.9834 21 18.4807 20.4918 18.4807 19.5193V4.46961C18.4807 3.46409 17.9834 3 17.0111 3H14.5028C13.5304 3 13.0221 3.50829 13.0221 4.46961V19.5193C13.0221 20.4918 13.5304 21 14.5028 21Z",
|
|
792
|
+
fill: "currentColor"
|
|
793
|
+
}
|
|
794
|
+
) });
|
|
795
|
+
};
|
|
796
|
+
|
|
758
797
|
function IconPerson(props) {
|
|
759
798
|
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsx(
|
|
760
799
|
"path",
|
|
@@ -788,6 +827,25 @@ function IconPhone(props) {
|
|
|
788
827
|
) });
|
|
789
828
|
}
|
|
790
829
|
|
|
830
|
+
function IconPlay(props) {
|
|
831
|
+
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsx(
|
|
832
|
+
"path",
|
|
833
|
+
{
|
|
834
|
+
d: "M5.09742 21C5.5227 21 5.88419 20.8299 6.30947 20.5853L18.7063 13.4194C19.5888 12.8984 19.8972 12.5582 19.8972 11.9947C19.8972 11.4312 19.5888 11.091 18.7063 10.5806L6.30947 3.40402C5.88419 3.15948 5.5227 3 5.09742 3C4.31065 3 3.82158 3.59539 3.82158 4.52038V19.469C3.82158 20.3939 4.31065 21 5.09742 21ZM5.63966 18.9693C5.57586 18.9693 5.53333 18.9267 5.53333 18.8417V5.14766C5.53333 5.06261 5.57586 5.02008 5.63966 5.02008C5.68218 5.02008 5.72471 5.04135 5.76723 5.07324L17.5369 11.8777C17.59 11.9096 17.6326 11.9415 17.6326 11.9947C17.6326 12.0478 17.59 12.0904 17.5369 12.1116L5.76723 18.9267C5.72471 18.948 5.68218 18.9693 5.63966 18.9693Z",
|
|
835
|
+
fill: "currentColor"
|
|
836
|
+
}
|
|
837
|
+
) });
|
|
838
|
+
}
|
|
839
|
+
IconPlay.Filled = function IconPlayFilled(props) {
|
|
840
|
+
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsx(
|
|
841
|
+
"path",
|
|
842
|
+
{
|
|
843
|
+
d: "M5.09742 21C5.5227 21 5.88419 20.8299 6.30947 20.5853L18.7063 13.4194C19.5888 12.8984 19.8972 12.5582 19.8972 11.9947C19.8972 11.4312 19.5888 11.091 18.7063 10.5806L6.30947 3.40402C5.88419 3.15948 5.5227 3 5.09742 3C4.31065 3 3.82158 3.59539 3.82158 4.52038V19.469C3.82158 20.3939 4.31065 21 5.09742 21Z",
|
|
844
|
+
fill: "currentColor"
|
|
845
|
+
}
|
|
846
|
+
) });
|
|
847
|
+
};
|
|
848
|
+
|
|
791
849
|
function IconPlus(props) {
|
|
792
850
|
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsx(
|
|
793
851
|
"path",
|
|
@@ -1024,6 +1082,16 @@ IconTrash.Filled = function IconTrashFilled(props) {
|
|
|
1024
1082
|
) });
|
|
1025
1083
|
};
|
|
1026
1084
|
|
|
1085
|
+
function IconUpload(props) {
|
|
1086
|
+
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsx(
|
|
1087
|
+
"path",
|
|
1088
|
+
{
|
|
1089
|
+
d: "M2.99989 18.3V14.6999C2.99989 14.2029 3.40284 13.7999 3.8999 13.7999C4.39697 13.7999 4.79991 14.2029 4.79991 14.6999V18.3C4.79991 18.5387 4.8948 18.7675 5.06359 18.9363C5.23237 19.1051 5.46123 19.2 5.69992 19.2H18.3001C18.5388 19.2 18.7676 19.1051 18.9364 18.9363C19.1052 18.7675 19.2001 18.5387 19.2001 18.3V14.6999C19.2001 14.2029 19.603 13.7999 20.1001 13.7999C20.5972 13.7999 21.0001 14.2029 21.0001 14.6999V18.3C21.0001 19.0161 20.7154 19.7026 20.2091 20.209C19.7027 20.7153 19.0162 21 18.3001 21H5.69992C4.98383 21 4.29727 20.7153 3.79092 20.209C3.28456 19.7026 2.99989 19.0161 2.99989 18.3ZM11.1 14.6999V6.07248L8.13628 9.03619C7.78481 9.38766 7.21509 9.38766 6.86361 9.03619C6.51213 8.68471 6.51213 8.11499 6.86361 7.76352L11.3637 3.26346L11.4322 3.20194C11.7857 2.91362 12.3068 2.93396 12.6363 3.26346L17.1364 7.76352C17.4879 8.11499 17.4879 8.68471 17.1364 9.03619C16.7849 9.38766 16.2152 9.38766 15.8637 9.03619L12.9 6.07248V14.6999C12.9 15.197 12.4971 15.5999 12 15.5999C11.5029 15.5999 11.1 15.197 11.1 14.6999Z",
|
|
1090
|
+
fill: "currentColor"
|
|
1091
|
+
}
|
|
1092
|
+
) });
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1027
1095
|
function IconXMark(props) {
|
|
1028
1096
|
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", ...props, children: /* @__PURE__ */ jsx(
|
|
1029
1097
|
"path",
|
|
@@ -1064,7 +1132,7 @@ function IconXMarkCircle(props) {
|
|
|
1064
1132
|
const breadcrumbs = "_breadcrumbs_1bfmb_2";
|
|
1065
1133
|
const breadcrumbsItem = "_breadcrumbsItem_1bfmb_8";
|
|
1066
1134
|
const defaultSeparator = "_defaultSeparator_1bfmb_14";
|
|
1067
|
-
const styles$
|
|
1135
|
+
const styles$v = {
|
|
1068
1136
|
breadcrumbs: breadcrumbs,
|
|
1069
1137
|
breadcrumbsItem: breadcrumbsItem,
|
|
1070
1138
|
defaultSeparator: defaultSeparator
|
|
@@ -1113,7 +1181,7 @@ function Slot({
|
|
|
1113
1181
|
}
|
|
1114
1182
|
|
|
1115
1183
|
const breadcrumbItem = "_breadcrumbItem_cua4v_2";
|
|
1116
|
-
const styles$
|
|
1184
|
+
const styles$u = {
|
|
1117
1185
|
breadcrumbItem: breadcrumbItem
|
|
1118
1186
|
};
|
|
1119
1187
|
|
|
@@ -1124,7 +1192,7 @@ function BreadcrumbItem({ children, className, isActive, asChild, ...props }) {
|
|
|
1124
1192
|
{
|
|
1125
1193
|
"data-active": isActive,
|
|
1126
1194
|
"data-disabled": props.disabled,
|
|
1127
|
-
className: classNames(styles$
|
|
1195
|
+
className: classNames(styles$u.breadcrumbItem, className),
|
|
1128
1196
|
...isActive && { "aria-current": "page" },
|
|
1129
1197
|
...!asChild && { type: "button" },
|
|
1130
1198
|
...props,
|
|
@@ -1136,19 +1204,19 @@ function BreadcrumbItem({ children, className, isActive, asChild, ...props }) {
|
|
|
1136
1204
|
function Breadcrumbs({
|
|
1137
1205
|
className,
|
|
1138
1206
|
children,
|
|
1139
|
-
separator = /* @__PURE__ */ jsx(IconChevron, { className: styles$
|
|
1207
|
+
separator = /* @__PURE__ */ jsx(IconChevron, { className: styles$v.defaultSeparator })
|
|
1140
1208
|
}) {
|
|
1141
1209
|
const childrenArray = Array.isArray(children) ? children : [children];
|
|
1142
1210
|
const lastIndex = childrenArray.length - 1;
|
|
1143
|
-
return /* @__PURE__ */ jsx("nav", { "aria-label": "breadcrumb", className, children: /* @__PURE__ */ jsx("ol", { className: styles$
|
|
1144
|
-
/* @__PURE__ */ jsx("li", { className: styles$
|
|
1145
|
-
index < lastIndex && /* @__PURE__ */ jsx("li", { className: styles$
|
|
1211
|
+
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: [
|
|
1212
|
+
/* @__PURE__ */ jsx("li", { className: styles$v.breadcrumbsItem, children: item }),
|
|
1213
|
+
index < lastIndex && /* @__PURE__ */ jsx("li", { className: styles$v.breadcrumbsItem, "aria-hidden": "true", children: separator })
|
|
1146
1214
|
] }, index)) }) });
|
|
1147
1215
|
}
|
|
1148
1216
|
Breadcrumbs.Item = BreadcrumbItem;
|
|
1149
1217
|
|
|
1150
1218
|
const button = "_button_1waqk_2";
|
|
1151
|
-
const accent$
|
|
1219
|
+
const accent$3 = "_accent_1waqk_11";
|
|
1152
1220
|
const primary$2 = "_primary_1waqk_12";
|
|
1153
1221
|
const secondary$3 = "_secondary_1waqk_30";
|
|
1154
1222
|
const tertiary = "_tertiary_1waqk_48";
|
|
@@ -1157,9 +1225,9 @@ const neutral$2 = "_neutral_1waqk_78";
|
|
|
1157
1225
|
const lg$6 = "_lg_1waqk_145";
|
|
1158
1226
|
const md$9 = "_md_1waqk_153";
|
|
1159
1227
|
const sm$4 = "_sm_1waqk_161";
|
|
1160
|
-
const styles$
|
|
1228
|
+
const styles$t = {
|
|
1161
1229
|
button: button,
|
|
1162
|
-
accent: accent$
|
|
1230
|
+
accent: accent$3,
|
|
1163
1231
|
primary: primary$2,
|
|
1164
1232
|
secondary: secondary$3,
|
|
1165
1233
|
tertiary: tertiary,
|
|
@@ -1171,13 +1239,13 @@ const styles$s = {
|
|
|
1171
1239
|
};
|
|
1172
1240
|
|
|
1173
1241
|
const buttonFunction = "_buttonFunction_o8iku_2";
|
|
1174
|
-
const accent$
|
|
1242
|
+
const accent$2 = "_accent_o8iku_10";
|
|
1175
1243
|
const neutral$1 = "_neutral_o8iku_22";
|
|
1176
1244
|
const lg$5 = "_lg_o8iku_41";
|
|
1177
1245
|
const md$8 = "_md_o8iku_46";
|
|
1178
|
-
const styles$
|
|
1246
|
+
const styles$s = {
|
|
1179
1247
|
buttonFunction: buttonFunction,
|
|
1180
|
-
accent: accent$
|
|
1248
|
+
accent: accent$2,
|
|
1181
1249
|
neutral: neutral$1,
|
|
1182
1250
|
lg: lg$5,
|
|
1183
1251
|
md: md$8
|
|
@@ -1195,7 +1263,7 @@ function ButtonFunction({
|
|
|
1195
1263
|
return /* @__PURE__ */ jsx(
|
|
1196
1264
|
Component,
|
|
1197
1265
|
{
|
|
1198
|
-
className: classNames(styles$
|
|
1266
|
+
className: classNames(styles$s.buttonFunction, styles$s[color], styles$s[size], className),
|
|
1199
1267
|
...props.disabled && { "data-disabled": true },
|
|
1200
1268
|
...!asChild && { type: "button" },
|
|
1201
1269
|
...props,
|
|
@@ -1217,7 +1285,7 @@ function Button({
|
|
|
1217
1285
|
return /* @__PURE__ */ jsx(
|
|
1218
1286
|
Component,
|
|
1219
1287
|
{
|
|
1220
|
-
className: classNames(styles$
|
|
1288
|
+
className: classNames(styles$t.button, styles$t[color], styles$t[size], styles$t[mode], className),
|
|
1221
1289
|
...!asChild && { type: "button" },
|
|
1222
1290
|
...props,
|
|
1223
1291
|
children
|
|
@@ -1229,7 +1297,7 @@ Button.Function = ButtonFunction;
|
|
|
1229
1297
|
const checkboxWrapper = "_checkboxWrapper_k1shg_2";
|
|
1230
1298
|
const icon$2 = "_icon_k1shg_23";
|
|
1231
1299
|
const checkbox = "_checkbox_k1shg_2";
|
|
1232
|
-
const styles$
|
|
1300
|
+
const styles$r = {
|
|
1233
1301
|
checkboxWrapper: checkboxWrapper,
|
|
1234
1302
|
icon: icon$2,
|
|
1235
1303
|
checkbox: checkbox
|
|
@@ -1242,11 +1310,11 @@ function Checkbox({ className, label, indeterminate, ...props }) {
|
|
|
1242
1310
|
{
|
|
1243
1311
|
"data-disabled": `${Boolean(props.disabled)}`,
|
|
1244
1312
|
"data-state": dataState,
|
|
1245
|
-
className: classNames(styles$
|
|
1313
|
+
className: classNames(styles$r.checkboxWrapper, className),
|
|
1246
1314
|
children: [
|
|
1247
|
-
dataState === "checked" && /* @__PURE__ */ jsx(IconCheck, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$
|
|
1248
|
-
dataState === "indeterminate" && /* @__PURE__ */ jsx(IconMinus, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$
|
|
1249
|
-
/* @__PURE__ */ jsx("input", { "data-state": dataState, type: "checkbox", className: styles$
|
|
1315
|
+
dataState === "checked" && /* @__PURE__ */ jsx(IconCheck, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$r.icon }),
|
|
1316
|
+
dataState === "indeterminate" && /* @__PURE__ */ jsx(IconMinus, { "data-disabled": `${Boolean(props.disabled)}`, className: styles$r.icon }),
|
|
1317
|
+
/* @__PURE__ */ jsx("input", { "data-state": dataState, type: "checkbox", className: styles$r.checkbox, ...props }),
|
|
1250
1318
|
label
|
|
1251
1319
|
]
|
|
1252
1320
|
}
|
|
@@ -1254,7 +1322,7 @@ function Checkbox({ className, label, indeterminate, ...props }) {
|
|
|
1254
1322
|
}
|
|
1255
1323
|
|
|
1256
1324
|
const chip = "_chip_dj4kw_2";
|
|
1257
|
-
const styles$
|
|
1325
|
+
const styles$q = {
|
|
1258
1326
|
chip: chip
|
|
1259
1327
|
};
|
|
1260
1328
|
|
|
@@ -1262,7 +1330,7 @@ function Chip({ isSelected, children, className, disabled, ...props }) {
|
|
|
1262
1330
|
return /* @__PURE__ */ jsx(
|
|
1263
1331
|
"div",
|
|
1264
1332
|
{
|
|
1265
|
-
className: classNames(styles$
|
|
1333
|
+
className: classNames(styles$q.chip, className),
|
|
1266
1334
|
"data-selected": isSelected,
|
|
1267
1335
|
"data-disabled": disabled,
|
|
1268
1336
|
"aria-disabled": disabled,
|
|
@@ -1276,23 +1344,23 @@ const root$1 = "_root_ww0fb_2";
|
|
|
1276
1344
|
const lg$4 = "_lg_ww0fb_16";
|
|
1277
1345
|
const md$7 = "_md_ww0fb_24";
|
|
1278
1346
|
const red = "_red_ww0fb_32";
|
|
1279
|
-
const accent = "_accent_ww0fb_37";
|
|
1347
|
+
const accent$1 = "_accent_ww0fb_37";
|
|
1280
1348
|
const neutral = "_neutral_ww0fb_42";
|
|
1281
1349
|
const secondary$2 = "_secondary_ww0fb_47";
|
|
1282
1350
|
const white = "_white_ww0fb_52";
|
|
1283
|
-
const styles$
|
|
1351
|
+
const styles$p = {
|
|
1284
1352
|
root: root$1,
|
|
1285
1353
|
lg: lg$4,
|
|
1286
1354
|
md: md$7,
|
|
1287
1355
|
red: red,
|
|
1288
|
-
accent: accent,
|
|
1356
|
+
accent: accent$1,
|
|
1289
1357
|
neutral: neutral,
|
|
1290
1358
|
secondary: secondary$2,
|
|
1291
1359
|
white: white
|
|
1292
1360
|
};
|
|
1293
1361
|
|
|
1294
1362
|
function Counter({ className, size = "lg", color = "red", ...props }) {
|
|
1295
|
-
return /* @__PURE__ */ jsx("div", { className: classNames(styles$
|
|
1363
|
+
return /* @__PURE__ */ jsx("div", { className: classNames(styles$p.root, styles$p[size], styles$p[color], className), ...props });
|
|
1296
1364
|
}
|
|
1297
1365
|
|
|
1298
1366
|
const LOCALE_FIRST_DAY_OF_WEEK = {
|
|
@@ -1302,7 +1370,7 @@ const LOCALE_FIRST_DAY_OF_WEEK = {
|
|
|
1302
1370
|
|
|
1303
1371
|
const datePickerCellWrapper = "_datePickerCellWrapper_np1gx_2";
|
|
1304
1372
|
const datePickerCell = "_datePickerCell_np1gx_2";
|
|
1305
|
-
const styles$
|
|
1373
|
+
const styles$o = {
|
|
1306
1374
|
datePickerCellWrapper: datePickerCellWrapper,
|
|
1307
1375
|
datePickerCell: datePickerCell,
|
|
1308
1376
|
"radius-none": "_radius-none_np1gx_83",
|
|
@@ -1312,10 +1380,10 @@ const styles$n = {
|
|
|
1312
1380
|
};
|
|
1313
1381
|
|
|
1314
1382
|
function DatePickerCell({ children, className, state, isCurrent, radius = "both", ...props }) {
|
|
1315
|
-
return /* @__PURE__ */ jsx("div", { className: classNames(styles$
|
|
1383
|
+
return /* @__PURE__ */ jsx("div", { className: classNames(styles$o.datePickerCellWrapper, styles$o[`radius-${radius}`]), "data-state": state, children: /* @__PURE__ */ jsx(
|
|
1316
1384
|
"button",
|
|
1317
1385
|
{
|
|
1318
|
-
className: classNames(styles$
|
|
1386
|
+
className: classNames(styles$o.datePickerCell, styles$o[`radius-${radius}`], className),
|
|
1319
1387
|
type: "button",
|
|
1320
1388
|
role: "gridcell",
|
|
1321
1389
|
"aria-selected": state === "selected",
|
|
@@ -1385,7 +1453,7 @@ function normalizeDateRange(firstDate, secondDate) {
|
|
|
1385
1453
|
const datePickerField = "_datePickerField_1qk8s_2";
|
|
1386
1454
|
const datePickerFieldCalendar = "_datePickerFieldCalendar_1qk8s_8";
|
|
1387
1455
|
const datePickerFieldWeek = "_datePickerFieldWeek_1qk8s_14";
|
|
1388
|
-
const styles$
|
|
1456
|
+
const styles$n = {
|
|
1389
1457
|
datePickerField: datePickerField,
|
|
1390
1458
|
datePickerFieldCalendar: datePickerFieldCalendar,
|
|
1391
1459
|
datePickerFieldWeek: datePickerFieldWeek
|
|
@@ -1400,9 +1468,9 @@ function DatePickerField({
|
|
|
1400
1468
|
firstDayOfWeek = LOCALE_FIRST_DAY_OF_WEEK.ru
|
|
1401
1469
|
}) {
|
|
1402
1470
|
const weeks = useMemo(() => getCalendarGrid(month, year, firstDayOfWeek), [month, year, firstDayOfWeek]);
|
|
1403
|
-
return /* @__PURE__ */ jsxs("div", { className: classNames(styles$
|
|
1471
|
+
return /* @__PURE__ */ jsxs("div", { className: classNames(styles$n.datePickerField, className), role: "grid", children: [
|
|
1404
1472
|
renderWeekdays?.(),
|
|
1405
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
1473
|
+
/* @__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
1474
|
] });
|
|
1407
1475
|
}
|
|
1408
1476
|
|
|
@@ -1443,13 +1511,13 @@ const I18N_MONTH_LABELS = {
|
|
|
1443
1511
|
|
|
1444
1512
|
const datePickerWeekdays = "_datePickerWeekdays_p8tsm_2";
|
|
1445
1513
|
const datePickerWeekday = "_datePickerWeekday_p8tsm_2";
|
|
1446
|
-
const styles$
|
|
1514
|
+
const styles$m = {
|
|
1447
1515
|
datePickerWeekdays: datePickerWeekdays,
|
|
1448
1516
|
datePickerWeekday: datePickerWeekday
|
|
1449
1517
|
};
|
|
1450
1518
|
|
|
1451
1519
|
function DatePickerWeekDays({ className, locale = "ru" }) {
|
|
1452
|
-
return /* @__PURE__ */ jsx("div", { className: classNames(styles$
|
|
1520
|
+
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
1521
|
}
|
|
1454
1522
|
|
|
1455
1523
|
function DatePicker() {
|
|
@@ -1685,21 +1753,21 @@ const DROPDOWN_PORTAL_SIDE_CONFIG = {
|
|
|
1685
1753
|
};
|
|
1686
1754
|
|
|
1687
1755
|
const dropdownContent = "_dropdownContent_12tkb_2";
|
|
1688
|
-
const styles$
|
|
1756
|
+
const styles$l = {
|
|
1689
1757
|
dropdownContent: dropdownContent
|
|
1690
1758
|
};
|
|
1691
1759
|
|
|
1692
1760
|
function DropdownContent({ className, children, ...props }) {
|
|
1693
|
-
return /* @__PURE__ */ jsx("div", { className: classNames(styles$
|
|
1761
|
+
return /* @__PURE__ */ jsx("div", { className: classNames(styles$l.dropdownContent, className), ...props, children });
|
|
1694
1762
|
}
|
|
1695
1763
|
|
|
1696
1764
|
const dropdownItem = "_dropdownItem_msc4i_2";
|
|
1697
|
-
const styles$
|
|
1765
|
+
const styles$k = {
|
|
1698
1766
|
dropdownItem: dropdownItem
|
|
1699
1767
|
};
|
|
1700
1768
|
|
|
1701
1769
|
function DropdownItem({ className, children, disabled, ...props }) {
|
|
1702
|
-
return /* @__PURE__ */ jsx("div", { className: classNames(styles$
|
|
1770
|
+
return /* @__PURE__ */ jsx("div", { className: classNames(styles$k.dropdownItem, className), role: "menuitem", "data-disabled": disabled, ...props, children });
|
|
1703
1771
|
}
|
|
1704
1772
|
|
|
1705
1773
|
const CLICK_OUTSIDE_IGNORE_DATA_NAME = "data-clickoutside-ignore";
|
|
@@ -2127,7 +2195,7 @@ function useTriggerHandlersByEventTrigger() {
|
|
|
2127
2195
|
}
|
|
2128
2196
|
|
|
2129
2197
|
const dropdownPortal = "_dropdownPortal_p3tdk_2";
|
|
2130
|
-
const styles$
|
|
2198
|
+
const styles$j = {
|
|
2131
2199
|
dropdownPortal: dropdownPortal
|
|
2132
2200
|
};
|
|
2133
2201
|
|
|
@@ -2167,7 +2235,7 @@ function DropdownPortal({
|
|
|
2167
2235
|
...style
|
|
2168
2236
|
},
|
|
2169
2237
|
ref: portalRef,
|
|
2170
|
-
className: classNames(styles$
|
|
2238
|
+
className: classNames(styles$j.dropdownPortal, className),
|
|
2171
2239
|
...handlersByTrigger[triggerEvent],
|
|
2172
2240
|
...isNested && { [CLICK_OUTSIDE_IGNORE_DATA_NAME]: "true" },
|
|
2173
2241
|
children
|
|
@@ -2209,6 +2277,69 @@ DropdownMenu.Content = DropdownContent;
|
|
|
2209
2277
|
DropdownMenu.Item = DropdownItem;
|
|
2210
2278
|
DropdownMenu.Portal = DropdownPortal;
|
|
2211
2279
|
|
|
2280
|
+
const notificationInline = "_notificationInline_1kerp_2";
|
|
2281
|
+
const accent = "_accent_1kerp_10";
|
|
2282
|
+
const negative = "_negative_1kerp_16";
|
|
2283
|
+
const positive = "_positive_1kerp_22";
|
|
2284
|
+
const warning = "_warning_1kerp_28";
|
|
2285
|
+
const outline = "_outline_1kerp_34";
|
|
2286
|
+
const filled = "_filled_1kerp_39";
|
|
2287
|
+
const statusIcon = "_statusIcon_1kerp_44";
|
|
2288
|
+
const body = "_body_1kerp_51";
|
|
2289
|
+
const titleRow = "_titleRow_1kerp_59";
|
|
2290
|
+
const title = "_title_1kerp_59";
|
|
2291
|
+
const closeButton = "_closeButton_1kerp_74";
|
|
2292
|
+
const closeIcon = "_closeIcon_1kerp_95";
|
|
2293
|
+
const description = "_description_1kerp_100";
|
|
2294
|
+
const actions = "_actions_1kerp_108";
|
|
2295
|
+
const styles$i = {
|
|
2296
|
+
notificationInline: notificationInline,
|
|
2297
|
+
accent: accent,
|
|
2298
|
+
negative: negative,
|
|
2299
|
+
positive: positive,
|
|
2300
|
+
warning: warning,
|
|
2301
|
+
outline: outline,
|
|
2302
|
+
filled: filled,
|
|
2303
|
+
statusIcon: statusIcon,
|
|
2304
|
+
body: body,
|
|
2305
|
+
titleRow: titleRow,
|
|
2306
|
+
title: title,
|
|
2307
|
+
closeButton: closeButton,
|
|
2308
|
+
closeIcon: closeIcon,
|
|
2309
|
+
description: description,
|
|
2310
|
+
actions: actions
|
|
2311
|
+
};
|
|
2312
|
+
|
|
2313
|
+
const STATUS_ICONS = {
|
|
2314
|
+
accent: IconInfo.Filled,
|
|
2315
|
+
negative: IconXMarkCircle,
|
|
2316
|
+
positive: IconCheckCircle,
|
|
2317
|
+
warning: IconCheckCircle
|
|
2318
|
+
};
|
|
2319
|
+
function NotificationInline({
|
|
2320
|
+
title,
|
|
2321
|
+
description,
|
|
2322
|
+
color = "accent",
|
|
2323
|
+
mode = "filled",
|
|
2324
|
+
onClose,
|
|
2325
|
+
children,
|
|
2326
|
+
className,
|
|
2327
|
+
...props
|
|
2328
|
+
}) {
|
|
2329
|
+
const StatusIcon = STATUS_ICONS[color];
|
|
2330
|
+
return /* @__PURE__ */ jsxs("div", { className: classNames(styles$i.notificationInline, styles$i[color], styles$i[mode], className), ...props, children: [
|
|
2331
|
+
/* @__PURE__ */ jsx(StatusIcon, { className: styles$i.statusIcon, "aria-hidden": "true" }),
|
|
2332
|
+
/* @__PURE__ */ jsxs("span", { className: styles$i.body, children: [
|
|
2333
|
+
/* @__PURE__ */ jsxs("span", { className: styles$i.titleRow, children: [
|
|
2334
|
+
/* @__PURE__ */ jsx("span", { className: styles$i.title, children: title }),
|
|
2335
|
+
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" }) })
|
|
2336
|
+
] }),
|
|
2337
|
+
description && /* @__PURE__ */ jsx("span", { className: styles$i.description, children: description }),
|
|
2338
|
+
children && /* @__PURE__ */ jsx("span", { className: styles$i.actions, children })
|
|
2339
|
+
] })
|
|
2340
|
+
] });
|
|
2341
|
+
}
|
|
2342
|
+
|
|
2212
2343
|
const ELLIPSIS = "...";
|
|
2213
2344
|
const ELLIPSIS_SYMBOL = Symbol(ELLIPSIS);
|
|
2214
2345
|
const DEFAULT_MAX_VISIBLE_PAGES_WITH_ELLIPSIS = 11;
|
|
@@ -3342,4 +3473,4 @@ function Tooltip(props) {
|
|
|
3342
3473
|
}
|
|
3343
3474
|
Tooltip.Content = TooltipContent;
|
|
3344
3475
|
|
|
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 };
|
|
3476
|
+
export { Badge, BadgeTabs, Breadcrumbs, Button, Checkbox, Chip, Counter, DatePicker, DropdownMenu, I18N_MONTH_LABELS, I18N_WEEKDAY_LABELS, IconArrow, IconArrowCircle, IconArrowCircleUp, IconArrowDiagonal, IconArrowUTurn, IconBell, IconBox, IconCalendar, IconCamera, IconCharacteristic, IconCheck, IconCheckCircle, IconChevron, IconChevronDouble, IconClock, IconCollapse, IconCopy, IconDocument, IconDots, IconDownload, IconEye, IconFace, IconFile, IconFilters, IconGear, IconHanger, IconHome, IconInfo, IconLogOut, IconLogo, IconMail, IconMinus, IconOneCircle, IconPause, IconPerson, IconPhone, IconPlay, IconPlus, IconPrize, IconProject, IconQRCode, IconRequest, IconResizeCorner, IconScan, IconSearch, IconShopping, IconSort, IconStar, IconSticker, IconStop, IconStore, IconSwitch, IconTrash, IconUpload, 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;
|
|
@@ -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
|
+
"version": "1.4.1",
|
|
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",
|