unifyedx-storybook-new 0.1.48 → 0.1.50

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.
@@ -72,6 +72,7 @@
72
72
  --color-teal-700: oklch(51.1% .096 186.391);
73
73
  --color-blue-50: oklch(97% .014 254.604);
74
74
  --color-blue-100: oklch(93.2% .032 255.585);
75
+ --color-blue-200: oklch(88.2% .059 254.128);
75
76
  --color-blue-300: oklch(80.9% .105 251.813);
76
77
  --color-blue-400: oklch(70.7% .165 254.624);
77
78
  --color-blue-500: oklch(62.3% .214 259.815);
@@ -1073,6 +1074,10 @@
1073
1074
  border-color: var(--color-black);
1074
1075
  }
1075
1076
 
1077
+ .border-blue-200 {
1078
+ border-color: var(--color-blue-200);
1079
+ }
1080
+
1076
1081
  .border-gray-200 {
1077
1082
  border-color: var(--color-gray-200);
1078
1083
  }
@@ -1129,6 +1134,10 @@
1129
1134
  }
1130
1135
  }
1131
1136
 
1137
+ .bg-blue-50 {
1138
+ background-color: var(--color-blue-50);
1139
+ }
1140
+
1132
1141
  .bg-blue-100 {
1133
1142
  background-color: var(--color-blue-100);
1134
1143
  }
@@ -1475,6 +1484,10 @@
1475
1484
  color: var(--color-white);
1476
1485
  }
1477
1486
 
1487
+ .capitalize {
1488
+ text-transform: capitalize;
1489
+ }
1490
+
1478
1491
  .opacity-0 {
1479
1492
  opacity: 0;
1480
1493
  }
@@ -45203,11 +45216,6 @@ li.e-separator.e-menu-item.e-excel-separator {
45203
45216
  display: flex;
45204
45217
  }
45205
45218
 
45206
- .native-radio-label {
45207
- color: #111827;
45208
- font-weight: 500;
45209
- }
45210
-
45211
45219
  .native-radio-description {
45212
45220
  color: #6b7280;
45213
45221
  margin-top: .125rem;
@@ -46980,6 +46988,85 @@ body.toast-backdrop #ui-toast-backdrop {
46980
46988
  line-height: 1.3;
46981
46989
  }
46982
46990
 
46991
+ .full-config-page {
46992
+ background: #f5f6f8;
46993
+ min-height: 100vh;
46994
+ padding: 18px;
46995
+ }
46996
+
46997
+ .full-config-page .icon {
46998
+ justify-content: center;
46999
+ align-items: center;
47000
+ display: flex;
47001
+ }
47002
+
47003
+ .full-config-page .pill {
47004
+ display: inline-block;
47005
+ }
47006
+
47007
+ .full-config-page .tab-content {
47008
+ height: calc(100vh - 200px);
47009
+ overflow-y: auto;
47010
+ }
47011
+
47012
+ .full-config-page ::-webkit-scrollbar {
47013
+ width: 8px;
47014
+ }
47015
+
47016
+ .full-config-page ::-webkit-scrollbar-track {
47017
+ background: #f1f1f1;
47018
+ border-radius: 4px;
47019
+ }
47020
+
47021
+ .full-config-page ::-webkit-scrollbar-thumb {
47022
+ background: #c1c1c1;
47023
+ border-radius: 4px;
47024
+ }
47025
+
47026
+ .full-config-page ::-webkit-scrollbar-thumb:hover {
47027
+ background: #a8a8a8;
47028
+ }
47029
+
47030
+ .native-radiogroup-container {
47031
+ gap: 1rem;
47032
+ display: flex;
47033
+ flex-direction: row !important;
47034
+ }
47035
+
47036
+ .native-radio-option {
47037
+ border-radius: .375rem;
47038
+ align-items: flex-start;
47039
+ gap: .5rem;
47040
+ padding: .5rem;
47041
+ transition: background-color .2s;
47042
+ display: flex;
47043
+ }
47044
+
47045
+ .native-radio-option:hover {
47046
+ background-color: #f3f4f6;
47047
+ }
47048
+
47049
+ .native-radio-option input[type="radio"] {
47050
+ margin-top: .25rem;
47051
+ }
47052
+
47053
+ .native-radio-option label {
47054
+ cursor: pointer;
47055
+ flex-direction: column;
47056
+ gap: .25rem;
47057
+ display: flex;
47058
+ }
47059
+
47060
+ .native-radio-label {
47061
+ color: #1f2937;
47062
+ font-weight: 500;
47063
+ }
47064
+
47065
+ .native-radio-description {
47066
+ color: #6b7280;
47067
+ font-size: .875rem;
47068
+ }
47069
+
46983
47070
  @property --tw-translate-x {
46984
47071
  syntax: "*";
46985
47072
  inherits: false;
@@ -76690,20 +76690,6 @@ function getComponentForType(input) {
76690
76690
  const C = REGISTRY[t] || REGISTRY[t.toLowerCase?.()] || UnknownType;
76691
76691
  return C;
76692
76692
  }
76693
- function renderByType(input, props = {}) {
76694
- const C = getComponentForType(input);
76695
- const pass = input && typeof input === "object" ? { item: input, ...props } : props;
76696
- return /* @__PURE__ */ jsx(C, { ...pass });
76697
- }
76698
- function register(type, component) {
76699
- if (!type || !component) return;
76700
- const key = String(type).trim();
76701
- REGISTRY[key] = component;
76702
- REGISTRY[key.toLowerCase()] = component;
76703
- }
76704
- function ConfigRenderFactory(input, props = {}) {
76705
- return renderByType(input, props);
76706
- }
76707
76693
 
76708
76694
  function DynamicConfig({
76709
76695
  appid,
@@ -77153,189 +77139,6 @@ function DynamicConfig({
77153
77139
  ] });
77154
77140
  }
77155
77141
 
77156
- const DynamicConfig_stories = {
77157
- title: "Utils/Configuration/DynamicConfig",
77158
- parameters: {
77159
- layout: "fullscreen",
77160
- docs: {
77161
- description: {
77162
- component: "DynamicConfig is a powerful configuration component that automatically generates UI forms based on JSON schema. It handles API calls, data transformation, and form validation."
77163
- }
77164
- }
77165
- }
77166
- };
77167
-
77168
- const FullConfigPage = ({
77169
- config,
77170
- appid = "default-app",
77171
- disableApi = false
77172
- }) => {
77173
- const [activeTab, setActiveTab] = useState(0);
77174
- const [showCancelModal, setShowCancelModal] = useState(false);
77175
- const {
77176
- pageHeader = {},
77177
- appletHeader = {},
77178
- breadcrumb = [],
77179
- overview = {},
77180
- configuration = []
77181
- } = config;
77182
- const defaultPageHeader = {
77183
- heading: "App Details",
77184
- subHeading: "View app details and customize configurations to align with institutional requirements.",
77185
- isLeftArrow: true,
77186
- onBackClick: () => window.history.back(),
77187
- ...pageHeader
77188
- };
77189
- const breadcrumbItems = breadcrumb.map((item) => ({
77190
- label: item.text,
77191
- href: item.href || "#"
77192
- }));
77193
- const handleCancelRequest = useCallback(() => {
77194
- console.log("handleCancelRequest called - showing modal");
77195
- setShowCancelModal(true);
77196
- }, []);
77197
- const handleCancelConfirm = useCallback((result) => {
77198
- setShowCancelModal(false);
77199
- if (result.primary) {
77200
- console.log("User confirmed cancel - navigating back");
77201
- window.history.back();
77202
- } else {
77203
- console.log("User cancelled the cancel action - modal closed, data preserved");
77204
- }
77205
- }, []);
77206
- const defaultAppletHeader = {
77207
- heading: "Application",
77208
- subHeading: "Application configuration and details",
77209
- tags: [],
77210
- ...appletHeader
77211
- };
77212
- const defaultOverview = {
77213
- about: "This application provides comprehensive functionality for your organization.",
77214
- images: {
77215
- desktop: "https://via.placeholder.com/600x400?text=Desktop+View",
77216
- mobile1: "https://via.placeholder.com/200x400?text=Mobile+View+1",
77217
- mobile2: "https://via.placeholder.com/200x400?text=Mobile+View+2"
77218
- },
77219
- features: [
77220
- {
77221
- title: "Feature 1",
77222
- description: "Description of feature 1"
77223
- },
77224
- {
77225
- title: "Feature 2",
77226
- description: "Description of feature 2"
77227
- }
77228
- ],
77229
- ...overview
77230
- };
77231
- const tabs = [
77232
- { label: "Overview", content: renderOverview(defaultOverview) },
77233
- { label: "Configuration", content: /* @__PURE__ */ jsx(DynamicConfig, { appid, configdata: { configuration }, disableApi, onCancel: handleCancelRequest }) }
77234
- ];
77235
- function renderIcon(icon) {
77236
- if (!icon) {
77237
- return "📱";
77238
- }
77239
- if (icon.includes("<svg")) {
77240
- return /* @__PURE__ */ jsx("div", { dangerouslySetInnerHTML: { __html: icon } });
77241
- }
77242
- return icon;
77243
- }
77244
- function renderOverview(overviewData) {
77245
- return /* @__PURE__ */ jsxs("div", { className: "bg-white rounded-2xl p-1", children: [
77246
- /* @__PURE__ */ jsxs("section", { className: "mb-8", children: [
77247
- /* @__PURE__ */ jsx("h2", { className: "text-xl font-semibold mb-2", children: "About" }),
77248
- /* @__PURE__ */ jsx("p", { className: "text-gray-700 text-base", children: overviewData.about })
77249
- ] }),
77250
- /* @__PURE__ */ jsxs("section", { className: "flex flex-row gap-6 justify-center items-center mb-8", children: [
77251
- /* @__PURE__ */ jsx(
77252
- "img",
77253
- {
77254
- src: overviewData.images.desktop,
77255
- alt: "Desktop View",
77256
- className: "rounded-xl border border-gray-200 w-[340px] h-[220px] object-cover"
77257
- }
77258
- ),
77259
- /* @__PURE__ */ jsx(
77260
- "img",
77261
- {
77262
- src: overviewData.images.mobile1,
77263
- alt: "Mobile View 1",
77264
- className: "rounded-2xl border border-gray-200 w-[120px] h-[220px] object-cover"
77265
- }
77266
- ),
77267
- /* @__PURE__ */ jsx(
77268
- "img",
77269
- {
77270
- src: overviewData.images.mobile2,
77271
- alt: "Mobile View 2",
77272
- className: "rounded-2xl border border-gray-200 w-[120px] h-[220px] object-cover"
77273
- }
77274
- )
77275
- ] }),
77276
- /* @__PURE__ */ jsxs("section", { children: [
77277
- /* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold mb-4", children: "Key Features" }),
77278
- /* @__PURE__ */ jsx("ul", { className: "space-y-3", children: overviewData.features.map((feature, index) => /* @__PURE__ */ jsxs("li", { children: [
77279
- /* @__PURE__ */ jsx("span", { className: "font-semibold", children: feature.title }),
77280
- /* @__PURE__ */ jsx("br", {}),
77281
- /* @__PURE__ */ jsx("span", { className: "text-gray-700", children: feature.description })
77282
- ] }, index)) })
77283
- ] })
77284
- ] });
77285
- }
77286
- return /* @__PURE__ */ jsxs("div", { className: "full-config-page", children: [
77287
- /* @__PURE__ */ jsx(
77288
- PageHeader,
77289
- {
77290
- heading: defaultPageHeader.heading,
77291
- subHeading: breadcrumbItems.length > 0 ? void 0 : defaultPageHeader.subHeading,
77292
- breadcrumbItems,
77293
- isLeftArrow: defaultPageHeader.isLeftArrow,
77294
- onBackClick: defaultPageHeader.onBackClick
77295
- }
77296
- ),
77297
- /* @__PURE__ */ jsxs("div", { className: "bg-[#ffffff] border border-[#eef2f6] rounded-[12px] px-6 py-5 flex gap-4 items-start mb-4 shadow-sm", children: [
77298
- /* @__PURE__ */ jsx("div", { className: "icon w-[72px] h-[72px] rounded-full flex items-center justify-center bg-[#F5F5F6] text-[#1C274C] font-bold text-[18px]", children: renderIcon(defaultAppletHeader.icon) }),
77299
- /* @__PURE__ */ jsxs("div", { className: "flex flex-col min-w-0", children: [
77300
- /* @__PURE__ */ jsx("h2", { className: "text-[24px] font-semibold m-0 leading-tight truncate", children: defaultAppletHeader.heading }),
77301
- /* @__PURE__ */ jsx("p", { className: "text-[13px] text-[#101112] mt-1 mb-0 max-w-[800px] leading-normal", children: defaultAppletHeader.subHeading }),
77302
- /* @__PURE__ */ jsx("div", { className: "mt-2 flex flex-wrap gap-2", children: defaultAppletHeader.tags && defaultAppletHeader.tags.map((tag, index) => /* @__PURE__ */ jsx(
77303
- "span",
77304
- {
77305
- className: "pill inline-block px-[10px] py-[6px] rounded-[14px] text-[11px] border border-[#e6e9ee] text-[#767676] font-semibold mt-1",
77306
- children: tag
77307
- },
77308
- index
77309
- )) })
77310
- ] })
77311
- ] }),
77312
- /* @__PURE__ */ jsxs("div", { className: "bg-white border border-gray-300 rounded-2xl w-full mt-5 ", children: [
77313
- /* @__PURE__ */ jsx("div", { className: "border-b border-gray-200", children: /* @__PURE__ */ jsx("nav", { className: "flex space-x-8", "aria-label": "Tabs", children: tabs.map((tab, index) => /* @__PURE__ */ jsx(
77314
- "button",
77315
- {
77316
- onClick: () => setActiveTab(index),
77317
- className: `${activeTab === index ? "border-black text-black" : "border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300"} whitespace-nowrap py-3 px-6 border-b-2 font-medium text-sm transition-colors duration-200`,
77318
- children: tab.label
77319
- },
77320
- index
77321
- )) }) }),
77322
- /* @__PURE__ */ jsx("div", { className: "p-8 h-full overflow-y-auto", children: tabs[activeTab].content })
77323
- ] }),
77324
- /* @__PURE__ */ jsx(
77325
- Modal,
77326
- {
77327
- isOpen: showCancelModal,
77328
- onClose: handleCancelConfirm,
77329
- variant: "warning",
77330
- title: "Are you sure you want to cancel?",
77331
- primaryButtonText: "Proceed",
77332
- secondaryButtonText: "Cancel",
77333
- children: "Your unsaved changes will be lost if you proceed."
77334
- }
77335
- )
77336
- ] });
77337
- };
77338
-
77339
77142
  function ToastProvider({ children }) {
77340
77143
  return /* @__PURE__ */ jsxs(Fragment, { children: [
77341
77144
  children,
@@ -77578,5 +77381,5 @@ const CustomGridToolbar = ({
77578
77381
  ] });
77579
77382
  };
77580
77383
 
77581
- export { AddUserGroupsRolesModal, Avatar, AvatarGroup$1 as AvatarGroup, Badge, Breadcrumbs, Button$1 as Button, Checkbox, ConfigRenderFactory, CustomDialog, CustomGridToolbar, DataTableRenderer, DatePicker, DateRangePicker$1 as DateRangePicker, DynamicConfig, DynamicConfig_stories as DynamicConfigStory, FileUploadModal, FullConfigPage, FullScreenLoader, GenericFilter, Input, ManageCollectionList, ManageCollectionList as ManageCollectionListDefault, Modal, MultiSelect, OptionsMenu, PageHeader, PageLayout, Pagination, RadioGroup, SearchBar, SectionRenderer, Select, Sidebar, Spinner, Textarea, ToastProvider, ToggleSwitch, Tooltip, TreeView, UnifyedCoreButton, WizardModal, adGroupsListSearchApi, axiosDelete, axiosGet, axiosPatch, axiosPost, axiosPut, cookies$1 as cookies, createHttpClient, directoryPermissionsApi, filePermissionsApi, gateWayUrl, gatewayBase, getBaseUrl, getComponentForType, getSnapshot, http, localStore, myDriveGatewayBaseV2, notify, provisioningBase, rbacBase, register, renderByType, searchRolesApi, sessionStore, userSearchBase };
77384
+ export { AddUserGroupsRolesModal, Avatar, AvatarGroup$1 as AvatarGroup, Badge, Breadcrumbs, Button$1 as Button, Checkbox, CustomDialog, CustomGridToolbar, DatePicker, DateRangePicker$1 as DateRangePicker, DynamicConfig, FileUploadModal, FullScreenLoader, GenericFilter, Input, ManageCollectionList, Modal, MultiSelect, OptionsMenu, PageHeader, PageLayout, Pagination, RadioGroup, SearchBar, Select, Sidebar, Spinner, Textarea, ToastProvider, ToggleSwitch, Tooltip, TreeView, UnifyedCoreButton, WizardModal, adGroupsListSearchApi, axiosDelete, axiosGet, axiosPatch, axiosPost, axiosPut, cookies$1 as cookies, createHttpClient, directoryPermissionsApi, filePermissionsApi, gateWayUrl, gatewayBase, getBaseUrl, getSnapshot, http, localStore, myDriveGatewayBaseV2, notify, provisioningBase, rbacBase, searchRolesApi, sessionStore, userSearchBase };
77582
77385
  //# sourceMappingURL=unifyedx-storybook-new.es.js.map