@bigbinary/neeto-molecules 4.1.52 → 4.1.54
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/ErrorPage.js +1 -1387
- package/dist/ErrorPage.js.map +1 -1
- package/dist/ShareViaLink.js +1 -0
- package/dist/ShareViaLink.js.map +1 -1
- package/dist/cjs/ErrorPage.js +5 -1409
- package/dist/cjs/ErrorPage.js.map +1 -1
- package/dist/cjs/ShareViaLink.js +1 -0
- package/dist/cjs/ShareViaLink.js.map +1 -1
- package/dist/cjs/unauthorized-CI14HDQo.js +1414 -0
- package/dist/cjs/unauthorized-CI14HDQo.js.map +1 -0
- package/dist/cjs/user-Ku5LVfLy.js +20 -0
- package/dist/cjs/user-Ku5LVfLy.js.map +1 -0
- package/dist/cjs/v2/AuditLogs.js +925 -0
- package/dist/cjs/v2/AuditLogs.js.map +1 -0
- package/dist/cjs/v2/CardLayout.js +52 -0
- package/dist/cjs/v2/CardLayout.js.map +1 -0
- package/dist/cjs/v2/CopyToClipboardButton.js +122 -0
- package/dist/cjs/v2/CopyToClipboardButton.js.map +1 -0
- package/dist/cjs/v2/ErrorPage.js +142 -0
- package/dist/cjs/v2/ErrorPage.js.map +1 -0
- package/dist/cjs/v2/FloatingActionMenu.js +20 -33
- package/dist/cjs/v2/FloatingActionMenu.js.map +1 -1
- package/dist/cjs/v2/Header.js +1 -1
- package/dist/cjs/v2/Header.js.map +1 -1
- package/dist/cjs/v2/KeyboardShortcuts.js +333 -0
- package/dist/cjs/v2/KeyboardShortcuts.js.map +1 -0
- package/dist/cjs/v2/LoginPage.js +233 -0
- package/dist/cjs/v2/LoginPage.js.map +1 -0
- package/dist/cjs/v2/MenuBar.js +3 -16
- package/dist/cjs/v2/MenuBar.js.map +1 -1
- package/dist/cjs/v2/PageLoader.js +42 -0
- package/dist/cjs/v2/PageLoader.js.map +1 -0
- package/dist/cjs/v2/Settings.js +302 -0
- package/dist/cjs/v2/Settings.js.map +1 -0
- package/dist/cjs/x-B38UX0_0.js +20 -0
- package/dist/cjs/x-B38UX0_0.js.map +1 -0
- package/dist/unauthorized-DLPyUaeK.js +1390 -0
- package/dist/unauthorized-DLPyUaeK.js.map +1 -0
- package/dist/user-A843PT-q.js +18 -0
- package/dist/user-A843PT-q.js.map +1 -0
- package/dist/v2/AuditLogs.js +923 -0
- package/dist/v2/AuditLogs.js.map +1 -0
- package/dist/v2/CardLayout.js +50 -0
- package/dist/v2/CardLayout.js.map +1 -0
- package/dist/v2/CopyToClipboardButton.js +120 -0
- package/dist/v2/CopyToClipboardButton.js.map +1 -0
- package/dist/v2/ErrorPage.js +140 -0
- package/dist/v2/ErrorPage.js.map +1 -0
- package/dist/v2/FloatingActionMenu.js +19 -32
- package/dist/v2/FloatingActionMenu.js.map +1 -1
- package/dist/v2/Header.js +1 -1
- package/dist/v2/Header.js.map +1 -1
- package/dist/v2/KeyboardShortcuts.js +331 -0
- package/dist/v2/KeyboardShortcuts.js.map +1 -0
- package/dist/v2/LoginPage.js +212 -0
- package/dist/v2/LoginPage.js.map +1 -0
- package/dist/v2/MenuBar.js +2 -15
- package/dist/v2/MenuBar.js.map +1 -1
- package/dist/v2/PageLoader.js +40 -0
- package/dist/v2/PageLoader.js.map +1 -0
- package/dist/v2/Settings.js +300 -0
- package/dist/v2/Settings.js.map +1 -0
- package/dist/x-B1Er0oV4.js +18 -0
- package/dist/x-B1Er0oV4.js.map +1 -0
- package/package.json +13 -13
- package/types/v2/AuditLogs.d.ts +11 -0
- package/types/v2/CardLayout.d.ts +13 -0
- package/types/v2/CopyToClipboardButton.d.ts +33 -0
- package/types/v2/ErrorPage.d.ts +16 -0
- package/types/v2/KeyboardShortcuts.d.ts +24 -0
- package/types/v2/LoginPage.d.ts +12 -0
- package/types/v2/PageLoader.d.ts +7 -0
- package/types/v2/Settings.d.ts +32 -0
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var classnames = require('classnames');
|
|
6
|
+
var useQueryParams = require('@bigbinary/neeto-commons-frontend/react-utils/useQueryParams');
|
|
7
|
+
var ramda = require('ramda');
|
|
8
|
+
var reactI18next = require('react-i18next');
|
|
9
|
+
var neetoAtoms = require('@bigbinary/neeto-atoms');
|
|
10
|
+
var neetoCist = require('@bigbinary/neeto-cist');
|
|
11
|
+
var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
12
|
+
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
13
|
+
var general = require('@bigbinary/neeto-commons-frontend/utils/general');
|
|
14
|
+
var reactRouterDom = require('react-router-dom');
|
|
15
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
16
|
+
var v2_Header = require('./Header.js');
|
|
17
|
+
require('./Breadcrumbs.js');
|
|
18
|
+
require('./HelpPopover.js');
|
|
19
|
+
require('../circle-question-mark-kxBMPyWQ.js');
|
|
20
|
+
require('../createLucideIcon-DBDhE7kE.js');
|
|
21
|
+
require('./MoreDropdown.js');
|
|
22
|
+
require('../ellipsis-BcfLTtl5.js');
|
|
23
|
+
require('./Search.js');
|
|
24
|
+
require('@babel/runtime/helpers/slicedToArray');
|
|
25
|
+
require('@bigbinary/neeto-commons-frontend/react-utils/useFuncDebounce');
|
|
26
|
+
require('@bigbinary/neeto-commons-frontend/react-utils/useUpdateEffect');
|
|
27
|
+
require('@bigbinary/neeto-commons-frontend/utils');
|
|
28
|
+
require('../search-BBuFYdmG.js');
|
|
29
|
+
|
|
30
|
+
var UNSUPPORTED_LINK_PROPS = ["staticContext", "tReady"];
|
|
31
|
+
|
|
32
|
+
var _excluded$1 = ["icon", "description", "label", "path", "href", "isConnected", "isMobileOrTablet", "className"];
|
|
33
|
+
function ownKeys$4(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
34
|
+
function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$4(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$4(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
35
|
+
var IntegrationItem$1 = function IntegrationItem(_ref) {
|
|
36
|
+
var _ref$icon = _ref.icon,
|
|
37
|
+
Icon = _ref$icon === void 0 ? null : _ref$icon,
|
|
38
|
+
description = _ref.description,
|
|
39
|
+
label = _ref.label,
|
|
40
|
+
path = _ref.path,
|
|
41
|
+
href = _ref.href,
|
|
42
|
+
isConnected = _ref.isConnected,
|
|
43
|
+
_ref$isMobileOrTablet = _ref.isMobileOrTablet,
|
|
44
|
+
isMobileOrTablet = _ref$isMobileOrTablet === void 0 ? false : _ref$isMobileOrTablet,
|
|
45
|
+
_ref$className = _ref.className,
|
|
46
|
+
className = _ref$className === void 0 ? "" : _ref$className,
|
|
47
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$1);
|
|
48
|
+
var _useTranslation = reactI18next.useTranslation(),
|
|
49
|
+
t = _useTranslation.t;
|
|
50
|
+
var commonProps = _objectSpread$4({
|
|
51
|
+
"data-testid": "".concat(neetoCist.hyphenate(label).replace(/\./g, "-"), "-integration-card"),
|
|
52
|
+
className: classnames("relative flex cursor-pointer flex-col items-start gap-3 rounded-lg border border-border px-6 py-6 no-underline outline-none transition-shadow duration-300 ease-in-out md:py-8 lg:flex-row xl:gap-4", "hover:shadow-[0px_0px_9.2px_0px_rgba(29,33,59,0.12)] hover:[&_[data-settings-heading]]:text-primary", "active:shadow-[0px_0px_9.2px_0px_rgba(29,33,59,0.12)] active:[&_[data-settings-heading]]:text-primary", "focus:border-primary focus:shadow-[0px_0px_9.2px_0px_rgba(29,33,59,0.12)] focus:[&_[data-settings-heading]]:text-primary", "focus-visible:border-primary focus-visible:shadow-[0px_0px_9.2px_0px_rgba(29,33,59,0.12)] focus-visible:[&_[data-settings-heading]]:text-primary", className)
|
|
53
|
+
}, ramda.omit(UNSUPPORTED_LINK_PROPS, otherProps));
|
|
54
|
+
var LinkElement = href ? "a" : reactRouterDom.Link;
|
|
55
|
+
var linkProps = href ? _objectSpread$4({
|
|
56
|
+
href: href
|
|
57
|
+
}, commonProps) : _objectSpread$4({
|
|
58
|
+
to: path
|
|
59
|
+
}, commonProps);
|
|
60
|
+
return /*#__PURE__*/jsxRuntime.jsxs(LinkElement, _objectSpread$4(_objectSpread$4({}, linkProps), {}, {
|
|
61
|
+
children: [Icon && /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
62
|
+
className: "border-border mt-0.5 flex shrink-0 items-center justify-center rounded-lg border p-1.5 shadow-sm xl:p-2.5",
|
|
63
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Icon, {
|
|
64
|
+
"data-testid": "".concat(general.joinHyphenCase(label), "-integration-icon"),
|
|
65
|
+
size: isMobileOrTablet ? 26 : 32
|
|
66
|
+
})
|
|
67
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
68
|
+
className: "flex min-w-0 flex-1 flex-col gap-1",
|
|
69
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Typography, {
|
|
70
|
+
asChild: true,
|
|
71
|
+
variant: "h3",
|
|
72
|
+
weight: "semibold",
|
|
73
|
+
children: /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
74
|
+
className: "text-foreground text-lg leading-6 transition-colors duration-300 ease-in-out",
|
|
75
|
+
"data-settings-heading": "",
|
|
76
|
+
"data-testid": "settings-item-heading",
|
|
77
|
+
children: label
|
|
78
|
+
})
|
|
79
|
+
}), /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Typography, {
|
|
80
|
+
asChild: true,
|
|
81
|
+
variant: "body2",
|
|
82
|
+
children: /*#__PURE__*/jsxRuntime.jsx("p", {
|
|
83
|
+
className: "text-muted-foreground",
|
|
84
|
+
"data-testid": "settings-item-description",
|
|
85
|
+
children: description
|
|
86
|
+
})
|
|
87
|
+
})]
|
|
88
|
+
}), isConnected && /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Badge, {
|
|
89
|
+
className: "absolute top-2 right-2",
|
|
90
|
+
"data-testid": "integration-status-tag",
|
|
91
|
+
variant: "default",
|
|
92
|
+
children: t("neetoMolecules.integrationCard.connected")
|
|
93
|
+
})]
|
|
94
|
+
}));
|
|
95
|
+
};
|
|
96
|
+
var IntegrationItem = /*#__PURE__*/React.memo(IntegrationItem$1);
|
|
97
|
+
|
|
98
|
+
var _excluded = ["label", "description", "icon", "path", "href", "dataTestid", "className", "children"];
|
|
99
|
+
function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
100
|
+
function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
101
|
+
var Item$1 = function Item(_ref) {
|
|
102
|
+
var label = _ref.label,
|
|
103
|
+
description = _ref.description,
|
|
104
|
+
_ref$icon = _ref.icon,
|
|
105
|
+
Icon = _ref$icon === void 0 ? null : _ref$icon,
|
|
106
|
+
path = _ref.path,
|
|
107
|
+
href = _ref.href,
|
|
108
|
+
dataTestid = _ref.dataTestid,
|
|
109
|
+
_ref$className = _ref.className,
|
|
110
|
+
className = _ref$className === void 0 ? "" : _ref$className,
|
|
111
|
+
children = _ref.children,
|
|
112
|
+
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
113
|
+
var commonProps = _objectSpread$3({
|
|
114
|
+
"data-testid": dataTestid,
|
|
115
|
+
className: classnames("group flex cursor-pointer flex-col gap-y-4 rounded-lg border border-border p-6 no-underline outline-none transition-shadow duration-300 ease-in-out", "hover:shadow-[0px_0px_9.2px_0px_rgba(29,33,59,0.12)] hover:[&_[data-settings-heading]]:text-primary", "active:shadow-[0px_0px_9.2px_0px_rgba(29,33,59,0.12)] active:[&_[data-settings-heading]]:text-primary", "focus:border-primary focus:shadow-[0px_0px_9.2px_0px_rgba(29,33,59,0.12)] focus:[&_[data-settings-heading]]:text-primary", "focus-visible:border-primary focus-visible:shadow-[0px_0px_9.2px_0px_rgba(29,33,59,0.12)] focus-visible:[&_[data-settings-heading]]:text-primary", className)
|
|
116
|
+
}, ramda.omit(UNSUPPORTED_LINK_PROPS, otherProps));
|
|
117
|
+
var LinkElement = href ? "a" : reactRouterDom.Link;
|
|
118
|
+
var linkProps = href ? _objectSpread$3({
|
|
119
|
+
href: href
|
|
120
|
+
}, commonProps) : _objectSpread$3({
|
|
121
|
+
to: path
|
|
122
|
+
}, commonProps);
|
|
123
|
+
return /*#__PURE__*/jsxRuntime.jsxs(LinkElement, _objectSpread$3(_objectSpread$3({}, linkProps), {}, {
|
|
124
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
125
|
+
"data-testid": "settings-item-".concat(general.joinHyphenCase(label)),
|
|
126
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
127
|
+
className: "mb-2.5 flex items-center gap-3",
|
|
128
|
+
children: [Icon && /*#__PURE__*/jsxRuntime.jsx(Icon, {
|
|
129
|
+
className: "text-muted-foreground",
|
|
130
|
+
size: 24
|
|
131
|
+
}), /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Typography, {
|
|
132
|
+
asChild: true,
|
|
133
|
+
variant: "h3",
|
|
134
|
+
weight: "semibold",
|
|
135
|
+
children: /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
136
|
+
className: "text-foreground text-lg leading-6 transition-colors duration-300 ease-in-out",
|
|
137
|
+
"data-settings-heading": "",
|
|
138
|
+
"data-testid": "settings-item-heading",
|
|
139
|
+
children: label
|
|
140
|
+
})
|
|
141
|
+
})]
|
|
142
|
+
}), /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Typography, {
|
|
143
|
+
asChild: true,
|
|
144
|
+
variant: "body2",
|
|
145
|
+
children: /*#__PURE__*/jsxRuntime.jsx("p", {
|
|
146
|
+
className: "text-muted-foreground",
|
|
147
|
+
"data-testid": "settings-item-description",
|
|
148
|
+
children: description
|
|
149
|
+
})
|
|
150
|
+
})]
|
|
151
|
+
}), children && /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
152
|
+
className: "border-border border-t pt-3",
|
|
153
|
+
children: children
|
|
154
|
+
})]
|
|
155
|
+
}));
|
|
156
|
+
};
|
|
157
|
+
var Item = /*#__PURE__*/React.memo(Item$1);
|
|
158
|
+
|
|
159
|
+
function ownKeys$2(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
160
|
+
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
161
|
+
var Category = function Category(_ref) {
|
|
162
|
+
var items = _ref.items,
|
|
163
|
+
label = _ref.label,
|
|
164
|
+
id = _ref.id,
|
|
165
|
+
isIntegration = _ref.isIntegration;
|
|
166
|
+
var _useBreakpoints = reactUtils.useBreakpoints(),
|
|
167
|
+
isSize = _useBreakpoints.isSize;
|
|
168
|
+
var SettingsCard = isIntegration ? IntegrationItem : Item;
|
|
169
|
+
var isMobileOrTablet = isSize("mobile") || isSize("tablet");
|
|
170
|
+
var isLabelPresent = neetoCist.isPresent(label);
|
|
171
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
172
|
+
id: id,
|
|
173
|
+
className: classnames("flex flex-col", {
|
|
174
|
+
"mb-7": isLabelPresent
|
|
175
|
+
}),
|
|
176
|
+
children: [isLabelPresent && /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Typography, {
|
|
177
|
+
asChild: true,
|
|
178
|
+
variant: "h2",
|
|
179
|
+
weight: "semibold",
|
|
180
|
+
children: /*#__PURE__*/jsxRuntime.jsx("h2", {
|
|
181
|
+
className: "mt-2 mb-6",
|
|
182
|
+
"data-testid": "settings-category-heading",
|
|
183
|
+
children: label
|
|
184
|
+
})
|
|
185
|
+
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
186
|
+
className: classnames("grid grid-cols-1 gap-3 py-1 md:grid-cols-2 lg:grid-cols-2 lg:gap-4", {
|
|
187
|
+
"xl:grid-cols-2 2xl:grid-cols-3": isIntegration,
|
|
188
|
+
"xl:grid-cols-3 2xl:grid-cols-4": !isIntegration
|
|
189
|
+
}),
|
|
190
|
+
children: items.map(function (item) {
|
|
191
|
+
return /*#__PURE__*/jsxRuntime.jsx(SettingsCard, _objectSpread$2(_objectSpread$2({}, item), isIntegration && {
|
|
192
|
+
isMobileOrTablet: isMobileOrTablet
|
|
193
|
+
}), item.label);
|
|
194
|
+
})
|
|
195
|
+
})]
|
|
196
|
+
});
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
200
|
+
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
201
|
+
var isTextMatching = function isTextMatching(label, searchTerm) {
|
|
202
|
+
return label.toLowerCase().includes(searchTerm.trim().toLowerCase());
|
|
203
|
+
};
|
|
204
|
+
var scrollIntoSettingCategory = function scrollIntoSettingCategory(activeCategory) {
|
|
205
|
+
var _document$getElementB;
|
|
206
|
+
(_document$getElementB = document.getElementById(activeCategory)) === null || _document$getElementB === void 0 || _document$getElementB.scrollIntoView({
|
|
207
|
+
behavior: "smooth"
|
|
208
|
+
});
|
|
209
|
+
};
|
|
210
|
+
var filterCategories = function filterCategories(_ref) {
|
|
211
|
+
var _ref$categories = _ref.categories,
|
|
212
|
+
categories = _ref$categories === void 0 ? [] : _ref$categories,
|
|
213
|
+
_ref$searchTerm = _ref.searchTerm,
|
|
214
|
+
searchTerm = _ref$searchTerm === void 0 ? "" : _ref$searchTerm;
|
|
215
|
+
var isSearchTermBlank = !searchTerm.trim();
|
|
216
|
+
var filteredCategories = isSearchTermBlank ? categories : categories.map(function (category) {
|
|
217
|
+
return _objectSpread$1(_objectSpread$1({}, category), {}, {
|
|
218
|
+
items: neetoCist.filterBy(function (_ref2) {
|
|
219
|
+
var label = _ref2.label,
|
|
220
|
+
description = _ref2.description;
|
|
221
|
+
return isTextMatching(label, searchTerm) || isTextMatching(description, searchTerm);
|
|
222
|
+
}, category.items)
|
|
223
|
+
});
|
|
224
|
+
});
|
|
225
|
+
return neetoCist.filterBy({
|
|
226
|
+
items: neetoCist.isNotEmpty
|
|
227
|
+
}, filteredCategories);
|
|
228
|
+
};
|
|
229
|
+
|
|
230
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
231
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
232
|
+
var Settings = function Settings(_ref) {
|
|
233
|
+
var _ref$isTitleHidden = _ref.isTitleHidden,
|
|
234
|
+
isTitleHidden = _ref$isTitleHidden === void 0 ? false : _ref$isTitleHidden,
|
|
235
|
+
_ref$isSearchHidden = _ref.isSearchHidden,
|
|
236
|
+
isSearchHidden = _ref$isSearchHidden === void 0 ? false : _ref$isSearchHidden,
|
|
237
|
+
title = _ref.title,
|
|
238
|
+
_ref$headerProps = _ref.headerProps,
|
|
239
|
+
headerProps = _ref$headerProps === void 0 ? {} : _ref$headerProps,
|
|
240
|
+
_ref$categories = _ref.categories,
|
|
241
|
+
categories = _ref$categories === void 0 ? [] : _ref$categories,
|
|
242
|
+
_ref$className = _ref.className,
|
|
243
|
+
className = _ref$className === void 0 ? "" : _ref$className;
|
|
244
|
+
var _useTranslation = reactI18next.useTranslation(),
|
|
245
|
+
t = _useTranslation.t;
|
|
246
|
+
var _useQueryParams = useQueryParams(),
|
|
247
|
+
categoryParam = _useQueryParams.category,
|
|
248
|
+
_useQueryParams$searc = _useQueryParams.searchTerm,
|
|
249
|
+
searchTerm = _useQueryParams$searc === void 0 ? "" : _useQueryParams$searc;
|
|
250
|
+
var filteredCategories = filterCategories({
|
|
251
|
+
categories: categories,
|
|
252
|
+
searchTerm: searchTerm
|
|
253
|
+
});
|
|
254
|
+
var isHeaderVisible = !isSearchHidden || !isTitleHidden;
|
|
255
|
+
var headerTitle = title !== null && title !== void 0 ? title : t("neetoMolecules.settingsPage.title");
|
|
256
|
+
React.useEffect(function () {
|
|
257
|
+
scrollIntoSettingCategory(categoryParam);
|
|
258
|
+
}, [categoryParam]);
|
|
259
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
260
|
+
className: classnames("flex h-dvh grow flex-col items-start justify-start overflow-y-auto px-5 md:px-10", {
|
|
261
|
+
"h-auto overflow-y-auto": isTitleHidden
|
|
262
|
+
}, className),
|
|
263
|
+
children: [isHeaderVisible && /*#__PURE__*/jsxRuntime.jsx(v2_Header, _objectSpread({
|
|
264
|
+
className: classnames({
|
|
265
|
+
"min-h-0 pt-8 pb-4": isTitleHidden
|
|
266
|
+
}),
|
|
267
|
+
title: !isTitleHidden && headerTitle,
|
|
268
|
+
searchProps: isSearchHidden ? null : {
|
|
269
|
+
className: "w-72",
|
|
270
|
+
placeholder: t("neetoMolecules.settingsPage.placeholder.search")
|
|
271
|
+
}
|
|
272
|
+
}, headerProps)), ramda.isEmpty(filteredCategories) ? /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
273
|
+
className: "flex h-full w-full flex-grow items-center justify-center",
|
|
274
|
+
"data-testid": "settings-no-data",
|
|
275
|
+
children: /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
276
|
+
className: "text-muted-foreground flex flex-col items-center gap-2",
|
|
277
|
+
children: /*#__PURE__*/jsxRuntime.jsx("p", {
|
|
278
|
+
className: "text-lg font-medium",
|
|
279
|
+
children: t("neetoMolecules.settingsPage.noData")
|
|
280
|
+
})
|
|
281
|
+
})
|
|
282
|
+
}) : /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
283
|
+
className: "w-full",
|
|
284
|
+
children: filteredCategories.map(function (_ref2) {
|
|
285
|
+
var id = _ref2.id,
|
|
286
|
+
label = _ref2.label,
|
|
287
|
+
items = _ref2.items,
|
|
288
|
+
isIntegration = _ref2.isIntegration;
|
|
289
|
+
return /*#__PURE__*/React.createElement(Category, {
|
|
290
|
+
id: id,
|
|
291
|
+
isIntegration: isIntegration,
|
|
292
|
+
items: items,
|
|
293
|
+
label: label,
|
|
294
|
+
key: id
|
|
295
|
+
});
|
|
296
|
+
})
|
|
297
|
+
})]
|
|
298
|
+
});
|
|
299
|
+
};
|
|
300
|
+
|
|
301
|
+
module.exports = Settings;
|
|
302
|
+
//# sourceMappingURL=Settings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Settings.js","sources":["../../../src/v2/components/Settings/constants.js","../../../src/v2/components/Settings/IntegrationItem.jsx","../../../src/v2/components/Settings/Item.jsx","../../../src/v2/components/Settings/Category.jsx","../../../src/v2/components/Settings/utils.js","../../../src/v2/components/Settings/index.jsx"],"sourcesContent":["export const UNSUPPORTED_LINK_PROPS = [\"staticContext\", \"tReady\"];\n","/* eslint-disable @bigbinary/neeto/use-neetoui-classes */\nimport { memo } from \"react\";\n\nimport { Badge, Typography } from \"@bigbinary/neeto-atoms\";\nimport classnames from \"classnames\";\nimport { hyphenate } from \"neetocist\";\nimport { joinHyphenCase } from \"neetocommons/utils/general\";\nimport PropTypes from \"prop-types\";\nimport { omit } from \"ramda\";\nimport { useTranslation } from \"react-i18next\";\nimport { Link } from \"react-router-dom\";\n\nimport { UNSUPPORTED_LINK_PROPS } from \"./constants\";\n\nconst IntegrationItem = ({\n icon: Icon = null,\n description,\n label,\n path,\n href,\n isConnected,\n isMobileOrTablet = false,\n className = \"\",\n ...otherProps\n}) => {\n const { t } = useTranslation();\n\n const commonProps = {\n \"data-testid\": `${hyphenate(label).replace(/\\./g, \"-\")}-integration-card`,\n className: classnames(\n \"relative flex cursor-pointer flex-col items-start gap-3 rounded-lg border border-border px-6 py-6 no-underline outline-none transition-shadow duration-300 ease-in-out md:py-8 lg:flex-row xl:gap-4\",\n \"hover:shadow-[0px_0px_9.2px_0px_rgba(29,33,59,0.12)] hover:[&_[data-settings-heading]]:text-primary\",\n \"active:shadow-[0px_0px_9.2px_0px_rgba(29,33,59,0.12)] active:[&_[data-settings-heading]]:text-primary\",\n \"focus:border-primary focus:shadow-[0px_0px_9.2px_0px_rgba(29,33,59,0.12)] focus:[&_[data-settings-heading]]:text-primary\",\n \"focus-visible:border-primary focus-visible:shadow-[0px_0px_9.2px_0px_rgba(29,33,59,0.12)] focus-visible:[&_[data-settings-heading]]:text-primary\",\n className\n ),\n ...omit(UNSUPPORTED_LINK_PROPS, otherProps),\n };\n\n const LinkElement = href ? \"a\" : Link;\n const linkProps = href\n ? { href, ...commonProps }\n : { to: path, ...commonProps };\n\n return (\n <LinkElement {...linkProps}>\n {Icon && (\n <div className=\"border-border mt-0.5 flex shrink-0 items-center justify-center rounded-lg border p-1.5 shadow-sm xl:p-2.5\">\n <Icon\n data-testid={`${joinHyphenCase(label)}-integration-icon`}\n size={isMobileOrTablet ? 26 : 32}\n />\n </div>\n )}\n <div className=\"flex min-w-0 flex-1 flex-col gap-1\">\n <Typography asChild variant=\"h3\" weight=\"semibold\">\n <span\n className=\"text-foreground text-lg leading-6 transition-colors duration-300 ease-in-out\"\n data-settings-heading=\"\"\n data-testid=\"settings-item-heading\"\n >\n {label}\n </span>\n </Typography>\n <Typography asChild variant=\"body2\">\n <p\n className=\"text-muted-foreground\"\n data-testid=\"settings-item-description\"\n >\n {description}\n </p>\n </Typography>\n </div>\n {isConnected && (\n <Badge\n className=\"absolute top-2 right-2\"\n data-testid=\"integration-status-tag\"\n variant=\"default\"\n >\n {t(\"neetoMolecules.integrationCard.connected\")}\n </Badge>\n )}\n </LinkElement>\n );\n};\n\nIntegrationItem.propTypes = {\n /**\n * The icon component to display. Accepts lucide-react icons or brand logos.\n */\n icon: PropTypes.oneOfType([\n PropTypes.element,\n PropTypes.func,\n PropTypes.object,\n ]),\n /**\n * A description of the integration.\n */\n description: PropTypes.string,\n /**\n * The label text for the integration item.\n */\n label: PropTypes.string.isRequired,\n /**\n * The internal route path for the integration item link.\n */\n path: PropTypes.string,\n /**\n * The external URL for the integration item link.\n */\n href: PropTypes.string,\n /**\n * Whether the integration is currently connected.\n */\n isConnected: PropTypes.bool,\n /**\n * Whether the current viewport is mobile or tablet size.\n */\n isMobileOrTablet: PropTypes.bool,\n /**\n * Additional CSS classes for the link element.\n */\n className: PropTypes.string,\n};\n\nexport default memo(IntegrationItem);\n","/* eslint-disable @bigbinary/neeto/use-neetoui-classes */\nimport { memo } from \"react\";\n\nimport { Typography } from \"@bigbinary/neeto-atoms\";\nimport classnames from \"classnames\";\nimport { joinHyphenCase } from \"neetocommons/utils/general\";\nimport PropTypes from \"prop-types\";\nimport { omit } from \"ramda\";\nimport { Link } from \"react-router-dom\";\n\nimport { UNSUPPORTED_LINK_PROPS } from \"./constants\";\n\nconst Item = ({\n label,\n description,\n icon: Icon = null,\n path,\n href,\n dataTestid,\n className = \"\",\n children,\n ...otherProps\n}) => {\n const commonProps = {\n \"data-testid\": dataTestid,\n className: classnames(\n \"group flex cursor-pointer flex-col gap-y-4 rounded-lg border border-border p-6 no-underline outline-none transition-shadow duration-300 ease-in-out\",\n \"hover:shadow-[0px_0px_9.2px_0px_rgba(29,33,59,0.12)] hover:[&_[data-settings-heading]]:text-primary\",\n \"active:shadow-[0px_0px_9.2px_0px_rgba(29,33,59,0.12)] active:[&_[data-settings-heading]]:text-primary\",\n \"focus:border-primary focus:shadow-[0px_0px_9.2px_0px_rgba(29,33,59,0.12)] focus:[&_[data-settings-heading]]:text-primary\",\n \"focus-visible:border-primary focus-visible:shadow-[0px_0px_9.2px_0px_rgba(29,33,59,0.12)] focus-visible:[&_[data-settings-heading]]:text-primary\",\n className\n ),\n ...omit(UNSUPPORTED_LINK_PROPS, otherProps),\n };\n\n const LinkElement = href ? \"a\" : Link;\n const linkProps = href\n ? { href, ...commonProps }\n : { to: path, ...commonProps };\n\n return (\n <LinkElement {...linkProps}>\n <div data-testid={`settings-item-${joinHyphenCase(label)}`}>\n <div className=\"mb-2.5 flex items-center gap-3\">\n {Icon && <Icon className=\"text-muted-foreground\" size={24} />}\n <Typography asChild variant=\"h3\" weight=\"semibold\">\n <span\n className=\"text-foreground text-lg leading-6 transition-colors duration-300 ease-in-out\"\n data-settings-heading=\"\"\n data-testid=\"settings-item-heading\"\n >\n {label}\n </span>\n </Typography>\n </div>\n <Typography asChild variant=\"body2\">\n <p\n className=\"text-muted-foreground\"\n data-testid=\"settings-item-description\"\n >\n {description}\n </p>\n </Typography>\n </div>\n {children && (\n <div className=\"border-border border-t pt-3\">{children}</div>\n )}\n </LinkElement>\n );\n};\n\nItem.propTypes = {\n /**\n * The label text for the settings item.\n */\n label: PropTypes.string.isRequired,\n /**\n * A description of the settings item.\n */\n description: PropTypes.string,\n /**\n * The icon component to display. Accepts lucide-react icons.\n */\n icon: PropTypes.oneOfType([\n PropTypes.element,\n PropTypes.func,\n PropTypes.object,\n ]),\n /**\n * The internal route path for the settings item link.\n */\n path: PropTypes.string,\n /**\n * The external URL for the settings item link.\n */\n href: PropTypes.string,\n /**\n * A custom data-testid attribute for the link element.\n */\n dataTestid: PropTypes.string,\n /**\n * Additional CSS classes for the link element.\n */\n className: PropTypes.string,\n /**\n * Optional children rendered below the description, separated by a border.\n */\n children: PropTypes.node,\n};\n\nexport default memo(Item);\n","import { Typography } from \"@bigbinary/neeto-atoms\";\nimport classnames from \"classnames\";\nimport { isPresent } from \"neetocist\";\nimport { useBreakpoints } from \"neetocommons/react-utils\";\n\nimport IntegrationItem from \"./IntegrationItem\";\nimport Item from \"./Item\";\n\nconst Category = ({ items, label, id, isIntegration }) => {\n const { isSize } = useBreakpoints();\n const SettingsCard = isIntegration ? IntegrationItem : Item;\n const isMobileOrTablet = isSize(\"mobile\") || isSize(\"tablet\");\n\n const isLabelPresent = isPresent(label);\n\n return (\n <div\n {...{ id }}\n className={classnames(\"flex flex-col\", { \"mb-7\": isLabelPresent })}\n >\n {isLabelPresent && (\n <Typography asChild variant=\"h2\" weight=\"semibold\">\n <h2 className=\"mt-2 mb-6\" data-testid=\"settings-category-heading\">\n {label}\n </h2>\n </Typography>\n )}\n <div\n className={classnames(\n \"grid grid-cols-1 gap-3 py-1 md:grid-cols-2 lg:grid-cols-2 lg:gap-4\",\n {\n \"xl:grid-cols-2 2xl:grid-cols-3\": isIntegration,\n \"xl:grid-cols-3 2xl:grid-cols-4\": !isIntegration,\n }\n )}\n >\n {items.map(item => (\n <SettingsCard\n key={item.label}\n {...item}\n {...(isIntegration && { isMobileOrTablet })}\n />\n ))}\n </div>\n </div>\n );\n};\n\nexport default Category;\n","import { filterBy, isNotEmpty } from \"neetocist\";\n\nconst isTextMatching = (label, searchTerm) =>\n label.toLowerCase().includes(searchTerm.trim().toLowerCase());\n\nexport const scrollIntoSettingCategory = activeCategory => {\n document.getElementById(activeCategory)?.scrollIntoView({\n behavior: \"smooth\",\n });\n};\n\nexport const filterCategories = ({ categories = [], searchTerm = \"\" }) => {\n const isSearchTermBlank = !searchTerm.trim();\n\n const filteredCategories = isSearchTermBlank\n ? categories\n : categories.map(category => ({\n ...category,\n items: filterBy(\n ({ label, description }) =>\n isTextMatching(label, searchTerm) ||\n isTextMatching(description, searchTerm),\n category.items\n ),\n }));\n\n return filterBy({ items: isNotEmpty }, filteredCategories);\n};\n","import { useEffect } from \"react\";\n\nimport classnames from \"classnames\";\nimport useQueryParams from \"neetocommons/react-utils/useQueryParams\";\nimport PropTypes from \"prop-types\";\nimport { isEmpty } from \"ramda\";\nimport { useTranslation } from \"react-i18next\";\n\nimport Category from \"./Category\";\nimport { filterCategories, scrollIntoSettingCategory } from \"./utils\";\n\nimport Header from \"../Header\";\n\nconst Settings = ({\n isTitleHidden = false,\n isSearchHidden = false,\n title,\n headerProps = {},\n categories = [],\n className = \"\",\n}) => {\n const { t } = useTranslation();\n\n const { category: categoryParam, searchTerm = \"\" } = useQueryParams();\n\n const filteredCategories = filterCategories({ categories, searchTerm });\n\n const isHeaderVisible = !isSearchHidden || !isTitleHidden;\n\n const headerTitle = title ?? t(\"neetoMolecules.settingsPage.title\");\n\n useEffect(() => {\n scrollIntoSettingCategory(categoryParam);\n }, [categoryParam]);\n\n return (\n <div\n className={classnames(\n \"flex h-dvh grow flex-col items-start justify-start overflow-y-auto px-5 md:px-10\",\n { \"h-auto overflow-y-auto\": isTitleHidden },\n className\n )}\n >\n {isHeaderVisible && (\n <Header\n className={classnames({ \"min-h-0 pt-8 pb-4\": isTitleHidden })}\n title={!isTitleHidden && headerTitle}\n searchProps={\n isSearchHidden\n ? null\n : {\n className: \"w-72\",\n placeholder: t(\n \"neetoMolecules.settingsPage.placeholder.search\"\n ),\n }\n }\n {...headerProps}\n />\n )}\n {isEmpty(filteredCategories) ? (\n <div\n className=\"flex h-full w-full flex-grow items-center justify-center\"\n data-testid=\"settings-no-data\"\n >\n <div className=\"text-muted-foreground flex flex-col items-center gap-2\">\n <p className=\"text-lg font-medium\">\n {t(\"neetoMolecules.settingsPage.noData\")}\n </p>\n </div>\n </div>\n ) : (\n <div className=\"w-full\">\n {filteredCategories.map(({ id, label, items, isIntegration }) => (\n <Category {...{ id, isIntegration, items, label }} key={id} />\n ))}\n </div>\n )}\n </div>\n );\n};\n\nSettings.propTypes = {\n /**\n * Whether to hide the title or not.\n */\n isTitleHidden: PropTypes.bool,\n /**\n * This can be used to customize the title.\n */\n title: PropTypes.string,\n /**\n * Whether to hide the search bar or not.\n */\n isSearchHidden: PropTypes.bool,\n /**\n * An array of setting categories to be displayed.\n */\n categories: PropTypes.array,\n /**\n * Additional classes to be added to the container.\n */\n className: PropTypes.string,\n /**\n * Props to be passed to the header component.\n */\n headerProps: PropTypes.object,\n};\n\nexport default Settings;\n"],"names":["UNSUPPORTED_LINK_PROPS","IntegrationItem","_ref","_ref$icon","icon","Icon","description","label","path","href","isConnected","_ref$isMobileOrTablet","isMobileOrTablet","_ref$className","className","otherProps","_objectWithoutProperties","_excluded","_useTranslation","useTranslation","t","commonProps","_objectSpread","concat","hyphenate","replace","classnames","omit","LinkElement","Link","linkProps","to","_jsxs","children","_jsx","joinHyphenCase","size","Typography","asChild","variant","weight","Badge","memo","Item","dataTestid","Category","items","id","isIntegration","_useBreakpoints","useBreakpoints","isSize","SettingsCard","isLabelPresent","isPresent","map","item","isTextMatching","searchTerm","toLowerCase","includes","trim","scrollIntoSettingCategory","activeCategory","_document$getElementB","document","getElementById","scrollIntoView","behavior","filterCategories","_ref$categories","categories","_ref$searchTerm","isSearchTermBlank","filteredCategories","category","filterBy","_ref2","isNotEmpty","Settings","_ref$isTitleHidden","isTitleHidden","_ref$isSearchHidden","isSearchHidden","title","_ref$headerProps","headerProps","_useQueryParams","useQueryParams","categoryParam","_useQueryParams$searc","isHeaderVisible","headerTitle","useEffect","Header","searchProps","placeholder","isEmpty","_createElement","key"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAO,IAAMA,sBAAsB,GAAG,CAAC,eAAe,EAAE,QAAQ,CAAC;;;;;ACcjE,IAAMC,iBAAe,GAAG,SAAlBA,eAAeA,CAAAC,IAAA,EAUf;AAAA,EAAA,IAAAC,SAAA,GAAAD,IAAA,CATJE,IAAI;AAAEC,IAAAA,IAAI,GAAAF,SAAA,KAAA,MAAA,GAAG,IAAI,GAAAA,SAAA;IACjBG,WAAW,GAAAJ,IAAA,CAAXI,WAAW;IACXC,KAAK,GAAAL,IAAA,CAALK,KAAK;IACLC,IAAI,GAAAN,IAAA,CAAJM,IAAI;IACJC,IAAI,GAAAP,IAAA,CAAJO,IAAI;IACJC,WAAW,GAAAR,IAAA,CAAXQ,WAAW;IAAAC,qBAAA,GAAAT,IAAA,CACXU,gBAAgB;AAAhBA,IAAAA,gBAAgB,GAAAD,qBAAA,KAAA,MAAA,GAAG,KAAK,GAAAA,qBAAA;IAAAE,cAAA,GAAAX,IAAA,CACxBY,SAAS;AAATA,IAAAA,SAAS,GAAAD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SAAS,EAAC,wDAAwD;AAAAmB,QAAAA,QAAA,eACrEC,cAAA,CAAA,GAAA,EAAA;AAAGpB,UAAAA,SAAS,EAAC,qBAAqB;UAAAmB,QAAA,EAC/Bb,CAAC,CAAC,oCAAoC;SACtC;OACA;KACF,CAAC,gBAENc,cAAA,CAAA,KAAA,EAAA;AAAKpB,MAAAA,SAAS,EAAC,QAAQ;AAAAmB,MAAAA,QAAA,EACpByC,kBAAkB,CAACnB,GAAG,CAAC,UAAAsB,KAAA,EAAA;AAAA,QAAA,IAAG9B,EAAE,GAAA8B,KAAA,CAAF9B,EAAE;UAAExC,KAAK,GAAAsE,KAAA,CAALtE,KAAK;UAAEuC,KAAK,GAAA+B,KAAA,CAAL/B,KAAK;UAAEE,aAAa,GAAA6B,KAAA,CAAb7B,aAAa;QAAA,oBACxDkD,mBAAA,CAACrD,QAAQ,EAAA;AAAOE,UAAAA,EAAE,EAAFA,EAAE;AAAEC,UAAAA,aAAa,EAAbA,aAAa;AAAEF,UAAAA,KAAK,EAALA,KAAK;AAAEvC,UAAAA,KAAK,EAALA,KAAK;AAAI4F,UAAAA,GAAG,EAAEpD;AAAG,SAAE,CAAC;MAAA,CAC/D;AAAC,KACC,CACN;AAAA,GACE,CAAC;AAEV;;;;"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var createLucideIcon = require('./createLucideIcon-DBDhE7kE.js');
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @license lucide-react v1.7.0 - ISC
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the ISC license.
|
|
9
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
const __iconNode = [
|
|
14
|
+
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
15
|
+
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
16
|
+
];
|
|
17
|
+
const X = createLucideIcon.createLucideIcon("x", __iconNode);
|
|
18
|
+
|
|
19
|
+
exports.X = X;
|
|
20
|
+
//# sourceMappingURL=x-B38UX0_0.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"x-B38UX0_0.js","sources":["../../node_modules/lucide-react/dist/esm/icons/x.js"],"sourcesContent":["/**\n * @license lucide-react v1.7.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"path\", { d: \"M18 6 6 18\", key: \"1bl5f8\" }],\n [\"path\", { d: \"m6 6 12 12\", key: \"d8bk6v\" }]\n];\nconst X = createLucideIcon(\"x\", __iconNode);\n\nexport { __iconNode, X as default };\n//# sourceMappingURL=x.js.map\n"],"names":["createLucideIcon"],"mappings":";;;;AAAA;AACA;AACA;AACA;AACA;AACA;;;AAIA,MAAM,UAAU,GAAG;AACnB,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,YAAY,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC;AAC9C,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,YAAY,EAAE,GAAG,EAAE,QAAQ,EAAE;AAC7C,CAAC;AACI,MAAC,CAAC,GAAGA,iCAAgB,CAAC,GAAG,EAAE,UAAU;;;;","x_google_ignoreList":[0]}
|