@lgsm/modules 1.6.20-beta.5 → 1.6.20-beta.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/README.md +185 -140
  2. package/dist/main.d.ts +5 -21
  3. package/dist/main.js +8 -32340
  4. package/dist/setupBaseURL.d.ts +2 -0
  5. package/package.json +89 -100
  6. package/dist/assets/main.css +0 -1
  7. package/dist/components/ui/alert-dialog.d.ts +0 -14
  8. package/dist/components/ui/badge.d.ts +0 -9
  9. package/dist/components/ui/button.d.ts +0 -10
  10. package/dist/components/ui/calendar.d.ts +0 -8
  11. package/dist/components/ui/card.d.ts +0 -11
  12. package/dist/components/ui/checkbox.d.ts +0 -4
  13. package/dist/components/ui/command.d.ts +0 -18
  14. package/dist/components/ui/dialog.d.ts +0 -21
  15. package/dist/components/ui/dropdown-menu.d.ts +0 -27
  16. package/dist/components/ui/input.d.ts +0 -3
  17. package/dist/components/ui/label.d.ts +0 -4
  18. package/dist/components/ui/popover.d.ts +0 -7
  19. package/dist/components/ui/select.d.ts +0 -13
  20. package/dist/components/ui/separator.d.ts +0 -4
  21. package/dist/components/ui/skeleton.d.ts +0 -2
  22. package/dist/components/ui/sonner.d.ts +0 -4
  23. package/dist/components/ui/switch.d.ts +0 -4
  24. package/dist/components/ui/table.d.ts +0 -10
  25. package/dist/components/ui/textarea.d.ts +0 -3
  26. package/dist/components/ui/tooltip.d.ts +0 -7
  27. package/dist/lib/utils.d.ts +0 -2
  28. package/dist/shared-function/jwtDecodeFunc.d.ts +0 -1
  29. package/dist/shared-function/loginRedirect.d.ts +0 -1
  30. package/dist/shared-service/apiService.d.ts +0 -8
  31. package/dist/shared-service/axiosInstance.d.ts +0 -5
  32. package/dist/shared-ui/Button/index.d.ts +0 -9
  33. package/dist/shared-ui/DataTable/components/customFilterControl.d.ts +0 -8
  34. package/dist/shared-ui/DataTable/components/dataTable.d.ts +0 -3
  35. package/dist/shared-ui/DataTable/components/dataTableBody.d.ts +0 -7
  36. package/dist/shared-ui/DataTable/components/dataTablePagination.d.ts +0 -2
  37. package/dist/shared-ui/DataTable/components/dataTableToolbar.d.ts +0 -2
  38. package/dist/shared-ui/DataTable/components/detailTableCard.d.ts +0 -2
  39. package/dist/shared-ui/DataTable/components/dropdownCell.d.ts +0 -13
  40. package/dist/shared-ui/DataTable/components/editableCell.d.ts +0 -2
  41. package/dist/shared-ui/DataTable/components/errorWrapper.d.ts +0 -2
  42. package/dist/shared-ui/DataTable/components/filterPanel.d.ts +0 -2
  43. package/dist/shared-ui/DataTable/components/memoRow.d.ts +0 -16
  44. package/dist/shared-ui/DataTable/components/multiSelectCell.d.ts +0 -11
  45. package/dist/shared-ui/DataTable/components/pageInput.d.ts +0 -2
  46. package/dist/shared-ui/DataTable/components/saveConfirmDialog.d.ts +0 -2
  47. package/dist/shared-ui/DataTable/components/serverTable.d.ts +0 -34
  48. package/dist/shared-ui/DataTable/components/sortableHeader.d.ts +0 -7
  49. package/dist/shared-ui/DataTable/components/uploadAssetImage.d.ts +0 -2
  50. package/dist/shared-ui/DataTable/hooks/hooks.d.ts +0 -79
  51. package/dist/shared-ui/DataTable/hooks/useColumnDefinitions.d.ts +0 -6
  52. package/dist/shared-ui/DataTable/hooks/useEditing.d.ts +0 -21
  53. package/dist/shared-ui/DataTable/hooks/useFilterPanel.d.ts +0 -13
  54. package/dist/shared-ui/DataTable/hooks/usePageInput.d.ts +0 -6
  55. package/dist/shared-ui/DataTable/hooks/useRowIdentity.d.ts +0 -5
  56. package/dist/shared-ui/DataTable/hooks/useSelection.d.ts +0 -6
  57. package/dist/shared-ui/DataTable/hooks/useTableData.d.ts +0 -9
  58. package/dist/shared-ui/DataTable/hooks/useTableStatus.d.ts +0 -17
  59. package/dist/shared-ui/DataTable/index.d.ts +0 -25
  60. package/dist/shared-ui/DataTable/types/button.d.ts +0 -12
  61. package/dist/shared-ui/DataTable/types/column/actionColumn.d.ts +0 -4
  62. package/dist/shared-ui/DataTable/types/column/baseColumn.d.ts +0 -7
  63. package/dist/shared-ui/DataTable/types/column/columnConfig.d.ts +0 -13
  64. package/dist/shared-ui/DataTable/types/column/columnDefinitions.d.ts +0 -35
  65. package/dist/shared-ui/DataTable/types/column/columnLayout.d.ts +0 -5
  66. package/dist/shared-ui/DataTable/types/column/columnType.d.ts +0 -1
  67. package/dist/shared-ui/DataTable/types/column/editableCell.d.ts +0 -4
  68. package/dist/shared-ui/DataTable/types/column/editableColumn.d.ts +0 -5
  69. package/dist/shared-ui/DataTable/types/column/optionColumn.d.ts +0 -9
  70. package/dist/shared-ui/DataTable/types/column/renderColumn.d.ts +0 -6
  71. package/dist/shared-ui/DataTable/types/column/treeColumn.d.ts +0 -3
  72. package/dist/shared-ui/DataTable/types/column/validateColumn.d.ts +0 -4
  73. package/dist/shared-ui/DataTable/types/column/visibilityColumn.d.ts +0 -6
  74. package/dist/shared-ui/DataTable/types/filtering.d.ts +0 -43
  75. package/dist/shared-ui/DataTable/types/hooks/useEditingProps.d.ts +0 -8
  76. package/dist/shared-ui/DataTable/types/hooks/useFilterPanel.d.ts +0 -7
  77. package/dist/shared-ui/DataTable/types/pagination.d.ts +0 -5
  78. package/dist/shared-ui/DataTable/types/sorting.d.ts +0 -5
  79. package/dist/shared-ui/DataTable/types/table/baseDataTable.d.ts +0 -5
  80. package/dist/shared-ui/DataTable/types/table/crudOptions.d.ts +0 -12
  81. package/dist/shared-ui/DataTable/types/table/dataTable.d.ts +0 -46
  82. package/dist/shared-ui/DataTable/types/table/dataTableBodyProps.d.ts +0 -23
  83. package/dist/shared-ui/DataTable/types/table/dataTablePaginationProps.d.ts +0 -13
  84. package/dist/shared-ui/DataTable/types/table/dataTableToolbarProps.d.ts +0 -46
  85. package/dist/shared-ui/DataTable/types/table/errorWrapper.d.ts +0 -4
  86. package/dist/shared-ui/DataTable/types/table/importExportOptions.d.ts +0 -12
  87. package/dist/shared-ui/DataTable/types/table/saveConfirmDialog.d.ts +0 -11
  88. package/dist/shared-ui/DataTable/types/table/serverSideConfig.d.ts +0 -38
  89. package/dist/shared-ui/DataTable/types/table/statusConfig.d.ts +0 -15
  90. package/dist/shared-ui/DataTable/types/table/tableMeta.d.ts +0 -3
  91. package/dist/shared-ui/DataTable/types/table/tablePermissions.d.ts +0 -6
  92. package/dist/shared-ui/DataTable/types/table/treeOptions.d.ts +0 -7
  93. package/dist/shared-ui/DataTable/types/table-panel/detailTableCard.d.ts +0 -12
  94. package/dist/shared-ui/DataTable/utils/column.d.ts +0 -11
  95. package/dist/shared-ui/DataTable/utils/compare.d.ts +0 -2
  96. package/dist/shared-ui/DataTable/utils/filter.d.ts +0 -2
  97. package/dist/shared-ui/DataTable/utils/image.d.ts +0 -4
  98. package/dist/shared-ui/DataTable/utils/index.d.ts +0 -6
  99. package/dist/shared-ui/DataTable/utils/row.d.ts +0 -2
  100. package/dist/shared-ui/DataTable/utils/search.d.ts +0 -4
  101. package/dist/shared-ui/DataTable/utils/status.d.ts +0 -18
  102. package/dist/shared-ui/DataTable/utils/tree.d.ts +0 -3
  103. package/dist/shared-ui/Dropdown/index.d.ts +0 -16
  104. package/dist/shared-ui/Modal/index.d.ts +0 -12
  105. package/dist/shared-ui/MyCounter/index.d.ts +0 -8
  106. package/dist/shared-ui/MyTitle/index.d.ts +0 -6
  107. package/dist/shared-ui/Notification/NotificationContainer.d.ts +0 -1
  108. package/dist/shared-ui/Notification/index.d.ts +0 -9
  109. package/dist/shared-ui/Sonner/index.d.ts +0 -1
  110. package/dist/shared-ui/ThreeDotsLoader/index.d.ts +0 -1
  111. package/dist/shared-ui/sonnerHelper.d.ts +0 -3
  112. package/dist/shared-ui/ui/alert.d.ts +0 -8
  113. package/dist/shared-ui/ui/button.d.ts +0 -11
  114. package/dist/shared-ui/ui/sonner.d.ts +0 -4
  115. package/dist/usage-example/example-apiService.d.ts +0 -1
  116. package/dist/usage-example/example-components.d.ts +0 -1
  117. package/dist/utils/date.d.ts +0 -1
  118. package/dist/utils/excel.d.ts +0 -1
package/README.md CHANGED
@@ -1,140 +1,185 @@
1
- # Installation
2
- 1. npm i
3
- 2. npm run storybook
4
-
5
- Project using **React component library**, with **Vite**, **TypeScript** and **Storybook**.
6
-
7
- Link download : https://www.npmjs.com/package/@lgsm/modules
8
-
9
- ## Shared HRIS tables
10
-
11
- `DataTable`, `ServerTable`, `SortableHeader` and their configuration types now live
12
- in this package. `Input`, `Badge`, the `DropdownMenu` primitives and `BaseButton`
13
- are also exported. `BaseButton` uses children/variant/size; the existing branded
14
- `Button` keeps its label/primary API.
15
-
16
- ```tsx
17
- import { DataTable, type ColumnConfig } from '@lgsm/modules'
18
-
19
- const columns: ColumnConfig[] = [{ key: 'name', label: 'Name', type: 'text' }]
20
-
21
- <DataTable
22
- columns={columns}
23
- data={rows}
24
- permissions={{ canCreate, canModify, canDelete }}
25
- onSave={handleSave}
26
- />
27
- ```
28
-
29
- The app supplies data, column definitions, validation, save callbacks and access
30
- flags. Missing permissions make the built-in editing actions read-only. Custom
31
- `headerActions` and custom cell renderers remain the app's responsibility.
32
- The table does not import HRIS stores, routes, layouts or LMS services. Its
33
- supporting UI and CSS are included in the library build.
34
- Library utilities are scoped to `[data-lgsm-ui]`. Public UI roots and portal
35
- content carry this attribute so their CSS cannot hide or resize the host shell.
36
- Keep it on new public components and on content rendered through a portal.
37
- After `bun run build`, open `scripts/check-style-isolation.html` in a browser.
38
- It checks standalone controls, nested controls and isolation from app siblings.
39
-
40
- HRIS keeps a small adapter in `src/components/data-table/adapters.tsx` that reads
41
- its menu permissions. The LMS remote receives access from the federation host
42
- and passes it to the same shared table. Layout, sidebar, breadcrumbs, profile
43
- and authentication remain in HRIS; LMS Settings business logic remains in LMS.
44
-
45
- ### Local verification before publishing
46
-
47
- The two apps currently use `"@lgsm/modules": "file:../lampung-fe"`. Keep the three
48
- repositories beside each other. After changing this library, build it and refresh
49
- the installed local package in both apps:
50
-
51
- ```powershell
52
- # lampung-fe
53
- bun run build
54
-
55
- # hris-admin-fe and admin-lms-fe, each in its own terminal
56
- bun install --force
57
- bun run dev
58
- ```
59
-
60
- Keep both app dev servers running. Edits to LMS page code use federation hot
61
- updates; they do not require rebuilding this library. Library source changes do
62
- require its build and a package refresh because the apps consume `dist`.
63
-
64
- Before CI/CD, publish a new package version and replace the local `file:`
65
- dependency in both apps with that version. Nothing is published by local
66
- installation. Federation still loads the separately deployed LMS remote at
67
- runtime; npm provides the shared table implementation to the app builds.
68
-
69
- Focused checks: `bun run test --run src/shared-ui/DataTable/DataTable.test.tsx`.
70
-
71
- ## Features
72
-
73
- - ⚛️ **React** component library with **TypeScript**.
74
-
75
- - 🏗️ **Vite** as development environment.
76
-
77
- - 🌳 **Tree shaking**, for not distributing dead-code.
78
-
79
- - 📚 **Storybook** for live viewing the components.
80
-
81
- - 🎨 **PostCSS** for processing our CSS.
82
-
83
- - 🖌️ **CSS Modules** in development, compiled CSS for production builds.
84
-
85
- - 🧪 Testing with **Vitest** and **React Testing Library**.
86
-
87
- - ✅ Code quality tools with **ESLint**, **Prettier** and **Stylelint**.
88
-
89
- ## 🤖 Scripts
90
-
91
- | Script | Function |
92
- | :---------------: | ---------------------------------------------------------------------------------- |
93
- | `build` | Build the `dist`, with types declarations, after checking types with TypeScript. |
94
- | `lint` | Lint the project with **Eslint**. |
95
- | `lint:fix` | Lint and fix the project with **Eslint**. |
96
- | `format` | Check the project format with **Prettier**. |
97
- | `format:fix` | Format the project code with **Prettier**. |
98
- | `stylelint` | Lint the styles code with **Stylelint**. |
99
- | `stylelint:fix` | Lint and fix the styles code with **Stylelint**. |
100
- | `storybook` | Start a Storybook development server. |
101
- | `build-storybook` | Build the Storybook `dist`. |
102
- | `test` | Run the tests with **Vitest** using `jsdom` and starts a **Vitest UI** dev server. |
103
- | `coverage` | Generate a coverage report, with **v8**. |
104
-
105
- ## How to setup API Service
106
- 1. Installation
107
- ```
108
- npm i
109
- ```
110
- 2. Create your environment files (eg: '.env.dev' or '.env.prod') and define your base URL
111
- ```
112
- VITE_BASE_URL=https://your-api-domain.com
113
- ```
114
- 3. Update your package.json to include appropriate Vite modes for each environment
115
- ```"scripts": {
116
- "dev": "vite --mode dev [your settings]",
117
- "prod": "vite --mode prod [your settings]"
118
- }
119
- ```
120
- 4. In your main.tsx, (or wherever your app initializes), import and set up the base URL using setupBaseURL.
121
- ```
122
- import { setupBaseURL } from "@lgsm/modules";
123
-
124
- setupBaseURL(import.meta.env.VITE_BASE_URL);
125
- ```
126
- 5. The API client automatically handles certain error codes and displays notifications (popups). To enable this behavior, make sure the NotificationContainer component is rendered at the root level of your app, for example in App.tsx:
127
- ```
128
- <ErrorBoundary fallback={}>
129
- <Suspense fallback={<ThreeDotsLoader />}>
130
- <NotificationContainer />
131
- </Suspense>
132
- </ErrorBoundary>
133
- ```
134
-
135
- ## Usage Example
136
- Please refer to:
137
- ### For API Service
138
- src > usage-example > example-apiService.tsx
139
- ### For Components
140
- src > usage-example > example-components.tsx
1
+ # LGSM shared packages
2
+
3
+ One repository maintains four focused packages and the full-library entry point.
4
+ All packages currently use version 1.6.20-beta.7; this release has not been published.
5
+
6
+ | Package | Owns | LGSM dependencies |
7
+ | --- | --- | --- |
8
+ | @lgsm/core | API client, authentication redirects and token decoding | None |
9
+ | @lgsm/ui | Basic controls, dropdowns, dialogs/side drawers, loaders, notifications and error views | None |
10
+ | @lgsm/account | ProfileMenu, SystemSwitcher shell and profile URL helpers | ui |
11
+ | @lgsm/data-table | Tables, editing/filtering/pagination, date/command controls and Excel export | ui |
12
+ | @lgsm/modules | Re-exports all four packages and preserves existing imports | All four |
13
+
14
+ The feature packages never import @lgsm/modules. Account and UI do not depend on
15
+ TanStack Table, Excel/file-export libraries, date pickers or command controls.
16
+ React and React DOM remain peer dependencies. Source code has one home under
17
+ packages/; the umbrella contains exports and the legacy API notification adapter.
18
+
19
+ ## Install everything
20
+
21
+ After this release is published:
22
+
23
+ ~~~sh
24
+ bun add @lgsm/modules
25
+ ~~~
26
+
27
+ Existing imports continue to work:
28
+
29
+ ~~~tsx
30
+ import { DataTable, ProfileMenu, SystemSwitcher, Sheet, MainErrorFallback } from '@lgsm/modules'
31
+ ~~~
32
+
33
+ The umbrella depends on the feature packages, so one command installs all of them.
34
+ A teammate cloning an app only runs bun install, using its package.json and lockfile.
35
+
36
+ ## Install selected features
37
+
38
+ ~~~sh
39
+ bun add @lgsm/account
40
+ # Or choose several packages in one command:
41
+ bun add @lgsm/core @lgsm/ui @lgsm/data-table
42
+ ~~~
43
+
44
+ ~~~tsx
45
+ import { ProfileMenu, SystemSwitcher } from '@lgsm/account'
46
+ import { DataTable, type ColumnConfig } from '@lgsm/data-table'
47
+ import { Sheet, SheetContent, SheetTitle, SheetTrigger, NotFound } from '@lgsm/ui'
48
+ ~~~
49
+
50
+ Only required dependencies are installed automatically. Installing account does
51
+ not install core, data-table or the umbrella. The package entry points import their
52
+ compiled, scoped CSS; no source files need to be copied into the app. The shared
53
+ UI package supplies fonts and base styles. Apps intentionally suppressing library
54
+ CSS must register the installed @lgsm packages with Tailwind @source, as LMS does.
55
+ CSS is also exported at each UI package's /styles.css subpath.
56
+
57
+ ## Develop this repository
58
+
59
+ ~~~sh
60
+ bun install
61
+ bun run build
62
+ bun run test --run
63
+ bun run check:packages
64
+ bun run check:install
65
+ ~~~
66
+
67
+ Run bun install once at the repository root. Workspaces link the local packages.
68
+ The build command type-checks and builds core, UI, account, data-table and finally
69
+ the umbrella in dependency order. Existing Storybook stories now live beside their
70
+ components in packages/*/src; start them with bun run storybook.
71
+
72
+ check:packages verifies package boundaries, declared imports, build outputs and
73
+ account-only dependency isolation. check:install packs the actual release files
74
+ and performs clean account-only and full-library installs in temporary directories.
75
+ It asserts that heavy table dependencies are absent from the account-only install.
76
+ It does not publish anything. Open scripts/check-style-isolation.html through the
77
+ local Vite server after building to verify shared CSS isolation in a browser.
78
+
79
+ ## Local consumer repositories
80
+
81
+ HRIS, Jakarta and LMS currently keep @lgsm/modules as file:../lampung-fe.
82
+ Their package.json overrides resolve the four unpublished packages from sibling
83
+ folders in packages/. Run bun install in each app after building Lampung. After
84
+ subsequent library-only edits, rebuild Lampung and refresh the app's copied local
85
+ packages with bun install --force. App feature edits do not need a library build.
86
+
87
+ Keep `resolve.dedupe: ['react', 'react-dom']` in each consuming app's Vite config
88
+ so linked library dependencies use the app's React instance. After changing this
89
+ setting, restart the dev server with `bun run dev --force` to refresh Vite's cache.
90
+
91
+ Another local app can use a selective file dependency, for example
92
+ file:../lampung-fe/packages/account, with a local override for its UI dependency.
93
+ Keep overrides in the consuming app, not in published packages.
94
+ When using the published release, replace the file dependency with the package
95
+ version and remove the local LGSM overrides.
96
+
97
+ ## Shared account controls
98
+
99
+ ~~~tsx
100
+ import { DropdownMenuItem, ProfileMenu, SystemSwitcher } from '@lgsm/modules'
101
+
102
+ <div className="flex items-center gap-4">
103
+ <SystemSwitcher label="Open navigation menus" contentClassName="w-100">
104
+ <div className="grid grid-cols-4 gap-2">
105
+ {menus.map((menu) => (
106
+ <DropdownMenuItem key={menu.path} onSelect={() => navigate(menu.path)}>
107
+ {menu.name}
108
+ </DropdownMenuItem>
109
+ ))}
110
+ </div>
111
+ </SystemSwitcher>
112
+ <ProfileMenu
113
+ avatarUrl={user?.userDetails.avtrPath}
114
+ jakartaUrl={import.meta.env.VITE_APP_URL_JAKARTA}
115
+ onChangePassword={changePassword}
116
+ onLogout={logout}
117
+ />
118
+ </div>
119
+ ~~~
120
+
121
+ ProfileMenu owns the bundled fallback avatar and account-menu behavior. My Profile
122
+ opens /profile on the configured Jakarta base URL. Jakarta passes
123
+ window.location.origin. Authentication actions remain app callbacks.
124
+
125
+ SystemSwitcher owns only the shared 32px button, dropdown container, focus and
126
+ open/close behavior. Pass the content as children, use label to name the button,
127
+ and optionally change container sizing through contentClassName. Use
128
+ DropdownMenuItem for selectable children so keyboard navigation and dismissal work.
129
+ Selective consumers import SystemSwitcher from @lgsm/account and declare @lgsm/ui
130
+ when importing DropdownMenuItem directly.
131
+
132
+ Each app owns its API calls, filtering, grid layout and navigation. HRIS's local
133
+ MenuSwitcher uses the existing access-menu context and internal router links in a
134
+ four-column grid. Jakarta supplies its already-loaded application list through a
135
+ local ApplicationSwitcher. LMS's ApplicationSwitcher calls its own SystemService
136
+ and handles loading, retry, inactive systems and HTTP(S)-only external links.
137
+ There are no API calls or application data types in @lgsm/account. The previous
138
+ userId and systems props are replaced by children in this unpublished release.
139
+
140
+ ## API initialization
141
+
142
+ The full @lgsm/modules setupBaseURL export keeps existing toast notifications.
143
+ It delegates to the shared core client. Existing five-argument initialization
144
+ calls remain compatible.
145
+
146
+ Selective consumers importing the client directly should declare @lgsm/core as
147
+ an app dependency and provide their notification callback when needed:
148
+
149
+ ~~~ts
150
+ import { setupBaseURL } from '@lgsm/core'
151
+
152
+ setupBaseURL(apiUrl, getAccessToken, loginUrl, environment, setAccessToken, showApiError)
153
+ ~~~
154
+
155
+ The last callback receives (message, description). Core defaults to console.error
156
+ and has no UI dependency. Apps wanting the shared notifications can pass notifyError
157
+ from @lgsm/ui and render Sonner from that same package. Keep API configuration and
158
+ token state in the host app; feature packages share the configured core client.
159
+
160
+ ## Tables, drawers and errors
161
+
162
+ DataTable and ServerTable retain their existing props and permission behavior.
163
+ The app supplies data, columns, validation, save callbacks and access flags.
164
+ Missing permissions keep built-in editing actions read-only. Table-specific
165
+ calendar/command controls and Excel code live only in @lgsm/data-table.
166
+
167
+ Sheet, SheetContent, SheetTrigger, SheetTitle and the other Sheet primitives provide
168
+ the side drawer. MainErrorFallback and NotFound provide the shared error views.
169
+ The host app still owns its router, error-boundary wiring, navigation and permissions.
170
+ All shared roots and portal content retain data-lgsm-ui for style isolation.
171
+
172
+ ## Publish
173
+
174
+ Build, test and run both package checks first. Publish to your existing registry
175
+ with the intended package visibility, in this order:
176
+
177
+ 1. packages/core and packages/ui
178
+ 2. packages/account and packages/data-table
179
+ 3. repository root (@lgsm/modules)
180
+
181
+ Each folder is independently publishable; only dist, package metadata and README
182
+ are shipped. Runtime package dependencies use registry versions, not local file or
183
+ workspace paths. Use the same release version across the five package manifests
184
+ for now and update internal versions together. No release-management service or
185
+ additional build framework is required.
package/dist/main.d.ts CHANGED
@@ -1,21 +1,5 @@
1
- export { Button } from './shared-ui/Button';
2
- export { MyCounter } from './shared-ui/MyCounter';
3
- export { MyTitle } from './shared-ui/MyTitle';
4
- export { Notification } from './shared-ui/Notification';
5
- export { ThreeDotsLoader } from './shared-ui/ThreeDotsLoader';
6
- export { NotificationContainer } from './shared-ui/Notification/NotificationContainer';
7
- export { Sonner } from './shared-ui/Sonner';
8
- export { Modal } from './shared-ui/Modal';
9
- export { Dropdown } from './shared-ui/Dropdown';
10
- export { notifyError, notifySuccess, notifyWarning } from './shared-ui/sonnerHelper';
11
- export { default as apiService } from './shared-service/apiService';
12
- export { setupBaseURL } from './shared-service/axiosInstance';
13
- export { loginRedirect } from './shared-function/loginRedirect';
14
- export { decodeToken } from './shared-function/jwtDecodeFunc';
15
- export { DataTable, ServerTable, SortableHeader } from './shared-ui/DataTable';
16
- export type { DataTableProps, ServerTableProps, TablePermissions, ColumnConfig, ColumnType, ButtonSet, TableButton, StatusConfig, CustomFilter, ImportOption, SortField, SortDirection, TableMeta, ServerSideConfig, ServerFetchParams, ServerTableConfig, CellContext, ColumnDef, PaginationState, SortingState, ExpandedState, Row, } from './shared-ui/DataTable';
17
- export { exportToExcel } from './utils/excel';
18
- export { Button as BaseButton, buttonVariants as baseButtonVariants } from './components/ui/button';
19
- export { Input } from './components/ui/input';
20
- export { Badge } from './components/ui/badge';
21
- export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, } from './components/ui/dropdown-menu';
1
+ export * from '@lgsm/core';
2
+ export * from '@lgsm/ui';
3
+ export * from '@lgsm/account';
4
+ export * from '@lgsm/data-table';
5
+ export { setupBaseURL } from './setupBaseURL';