uibee 2.17.4 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +34 -0
- package/dist/icons-lZYQ6Vlr.js +125 -0
- package/dist/src/components/index.d.ts +706 -30
- package/dist/src/components/index.js +3243 -44
- package/dist/src/hooks/index.d.ts +15 -3
- package/dist/src/hooks/index.js +44 -3
- package/dist/src/icons/index.d.ts +420 -0
- package/dist/src/icons/index.js +3 -0
- package/dist/src/styles/index.d.ts +1 -1
- package/dist/src/styles/index.js +2 -1
- package/dist/src/utils/index.d.ts +38 -5
- package/dist/src/utils/index.js +125 -6
- package/dist/{src/globals.css → style.css} +1226 -607
- package/dist/useClickOutside-Cmp-RsP3.js +13 -0
- package/index.d.ts +0 -1
- package/package.json +22 -23
- package/src/components/alert/alert.tsx +20 -18
- package/src/components/buttons/button.tsx +28 -35
- package/src/components/confirm/confirmPopup.tsx +15 -17
- package/src/components/container/accordion.tsx +54 -0
- package/src/components/container/glassCard.tsx +14 -0
- package/src/components/container/iconBubble.tsx +30 -0
- package/src/components/container/leftBarPanel.tsx +15 -0
- package/src/components/container/pulseDot.tsx +31 -0
- package/src/components/container/statCard.tsx +24 -0
- package/src/components/container/tabs.tsx +64 -0
- package/src/components/footer/footer.tsx +124 -0
- package/src/components/footer/loginContent.tsx +70 -0
- package/src/components/index.ts +15 -0
- package/src/components/inputs/checkbox.tsx +4 -4
- package/src/components/inputs/input.tsx +11 -13
- package/src/components/inputs/multiSelect.tsx +144 -0
- package/src/components/inputs/radio.tsx +4 -4
- package/src/components/inputs/range.tsx +6 -5
- package/src/components/inputs/searchInput.tsx +1 -1
- package/src/components/inputs/select.tsx +19 -18
- package/src/components/inputs/shared/colorPickerPopup.tsx +5 -5
- package/src/components/inputs/shared/dateTimePickerPopup.tsx +9 -9
- package/src/components/inputs/shared/inputError.tsx +1 -1
- package/src/components/inputs/switch.tsx +7 -7
- package/src/components/inputs/tagInput.tsx +6 -7
- package/src/components/inputs/textarea.tsx +8 -10
- package/src/components/inputs/toggle.tsx +6 -6
- package/src/components/markdownrender/markdownRender.tsx +4 -2
- package/src/components/table/body.tsx +6 -6
- package/src/components/table/format.ts +1 -1
- package/src/components/table/header.tsx +1 -1
- package/src/components/table/pagination.tsx +17 -31
- package/src/components/table/table.tsx +2 -2
- package/src/components/version/version.tsx +1 -1
- package/src/components/vulnerability/constants.ts +6 -6
- package/src/components/vulnerability/severityPill.tsx +6 -7
- package/src/globals.css +12 -1
- package/src/hooks/index.ts +1 -0
- package/src/hooks/useClickOutside.ts +5 -22
- package/src/icons/icons.tsx +431 -0
- package/src/icons/index.ts +2 -0
- package/src/index.ts +0 -1
- package/src/types/hooks.d.ts +8 -2
- package/src/utils/index.ts +1 -1
- package/src/utils/logoConsoleOutput/logoConsoleOutput.ts +31 -0
- package/tsconfig.json +3 -2
- package/tsdown.config.ts +26 -0
- package/Readme.md +0 -29
- package/bun.lock +0 -662
- package/dist/src/components/alert/alert.d.ts +0 -8
- package/dist/src/components/alert/alert.js +0 -15
- package/dist/src/components/buttons/button.d.ts +0 -13
- package/dist/src/components/buttons/button.js +0 -30
- package/dist/src/components/confirm/confirmPopup.d.ts +0 -12
- package/dist/src/components/confirm/confirmPopup.js +0 -18
- package/dist/src/components/container/highlight.d.ts +0 -4
- package/dist/src/components/container/highlight.js +0 -4
- package/dist/src/components/container/page.d.ts +0 -8
- package/dist/src/components/container/page.js +0 -4
- package/dist/src/components/inputs/checkbox.d.ts +0 -17
- package/dist/src/components/inputs/checkbox.js +0 -37
- package/dist/src/components/inputs/input.d.ts +0 -12
- package/dist/src/components/inputs/input.js +0 -124
- package/dist/src/components/inputs/radio.d.ts +0 -17
- package/dist/src/components/inputs/radio.js +0 -27
- package/dist/src/components/inputs/range.d.ts +0 -11
- package/dist/src/components/inputs/range.js +0 -22
- package/dist/src/components/inputs/searchInput.d.ts +0 -6
- package/dist/src/components/inputs/searchInput.js +0 -42
- package/dist/src/components/inputs/select.d.ts +0 -23
- package/dist/src/components/inputs/select.js +0 -70
- package/dist/src/components/inputs/shared/colorPickerPopup.d.ts +0 -8
- package/dist/src/components/inputs/shared/colorPickerPopup.js +0 -191
- package/dist/src/components/inputs/shared/dateTimePickerPopup.d.ts +0 -9
- package/dist/src/components/inputs/shared/dateTimePickerPopup.js +0 -128
- package/dist/src/components/inputs/shared/fieldWrapper.d.ts +0 -14
- package/dist/src/components/inputs/shared/fieldWrapper.js +0 -8
- package/dist/src/components/inputs/shared/index.d.ts +0 -5
- package/dist/src/components/inputs/shared/index.js +0 -5
- package/dist/src/components/inputs/shared/inputError.d.ts +0 -6
- package/dist/src/components/inputs/shared/inputError.js +0 -6
- package/dist/src/components/inputs/shared/inputInfo.d.ts +0 -5
- package/dist/src/components/inputs/shared/inputInfo.js +0 -5
- package/dist/src/components/inputs/shared/inputLabel.d.ts +0 -9
- package/dist/src/components/inputs/shared/inputLabel.js +0 -4
- package/dist/src/components/inputs/switch.d.ts +0 -11
- package/dist/src/components/inputs/switch.js +0 -14
- package/dist/src/components/inputs/tagInput.d.ts +0 -15
- package/dist/src/components/inputs/tagInput.js +0 -40
- package/dist/src/components/inputs/textarea.d.ts +0 -11
- package/dist/src/components/inputs/textarea.js +0 -36
- package/dist/src/components/inputs/toggle.d.ts +0 -14
- package/dist/src/components/inputs/toggle.js +0 -12
- package/dist/src/components/login/loginPage.d.ts +0 -2
- package/dist/src/components/login/loginPage.js +0 -18
- package/dist/src/components/logo/logo.d.ts +0 -5
- package/dist/src/components/logo/logo.js +0 -6
- package/dist/src/components/logo/logoSmall.d.ts +0 -1
- package/dist/src/components/logo/logoSmall.js +0 -6
- package/dist/src/components/markdownrender/markdownRender.d.ts +0 -6
- package/dist/src/components/markdownrender/markdownRender.js +0 -25
- package/dist/src/components/navbar/bubble.d.ts +0 -14
- package/dist/src/components/navbar/bubble.js +0 -8
- package/dist/src/components/navbar/navbar.d.ts +0 -34
- package/dist/src/components/navbar/navbar.js +0 -36
- package/dist/src/components/navbar/navbarDropdown.d.ts +0 -7
- package/dist/src/components/navbar/navbarDropdown.js +0 -19
- package/dist/src/components/navbar/navbarItem.d.ts +0 -11
- package/dist/src/components/navbar/navbarItem.js +0 -12
- package/dist/src/components/table/body.d.ts +0 -15
- package/dist/src/components/table/body.js +0 -116
- package/dist/src/components/table/format.d.ts +0 -1
- package/dist/src/components/table/format.js +0 -27
- package/dist/src/components/table/header.d.ts +0 -8
- package/dist/src/components/table/header.js +0 -47
- package/dist/src/components/table/menu.d.ts +0 -17
- package/dist/src/components/table/menu.js +0 -30
- package/dist/src/components/table/pagination.d.ts +0 -6
- package/dist/src/components/table/pagination.js +0 -86
- package/dist/src/components/table/table.d.ts +0 -14
- package/dist/src/components/table/table.js +0 -14
- package/dist/src/components/toast/toastItem.d.ts +0 -2
- package/dist/src/components/toast/toastItem.js +0 -38
- package/dist/src/components/toast/toaster.d.ts +0 -9
- package/dist/src/components/toast/toaster.js +0 -86
- package/dist/src/components/toggle/language.d.ts +0 -4
- package/dist/src/components/toggle/language.js +0 -29
- package/dist/src/components/toggle/theme.d.ts +0 -3
- package/dist/src/components/toggle/theme.js +0 -30
- package/dist/src/components/version/version.d.ts +0 -7
- package/dist/src/components/version/version.js +0 -12
- package/dist/src/components/vulnerability/constants.d.ts +0 -4
- package/dist/src/components/vulnerability/constants.js +0 -14
- package/dist/src/components/vulnerability/severityPill.d.ts +0 -8
- package/dist/src/components/vulnerability/severityPill.js +0 -8
- package/dist/src/hooks/useClickOutside.d.ts +0 -2
- package/dist/src/hooks/useClickOutside.js +0 -27
- package/dist/src/hooks/useDarkMode.d.ts +0 -1
- package/dist/src/hooks/useDarkMode.js +0 -17
- package/dist/src/hooks/useVisibility.d.ts +0 -4
- package/dist/src/hooks/useVisibility.js +0 -23
- package/dist/src/index.d.ts +0 -5
- package/dist/src/index.js +0 -5
- package/dist/src/scripts/buildCss.d.ts +0 -1
- package/dist/src/scripts/buildCss.js +0 -22
- package/dist/src/scripts/index.d.ts +0 -1
- package/dist/src/scripts/index.js +0 -1
- package/dist/src/scripts/rewriteAlias.d.ts +0 -1
- package/dist/src/scripts/rewriteAlias.js +0 -31
- package/dist/src/utils/LogoConsoleOutput/LogoConsoleOutput.d.ts +0 -1
- package/dist/src/utils/LogoConsoleOutput/LogoConsoleOutput.js +0 -44
- package/dist/src/utils/auth/callback.d.ts +0 -2
- package/dist/src/utils/auth/callback.js +0 -63
- package/dist/src/utils/auth/getDomain.d.ts +0 -2
- package/dist/src/utils/auth/getDomain.js +0 -6
- package/dist/src/utils/auth/login.d.ts +0 -3
- package/dist/src/utils/auth/login.js +0 -14
- package/dist/src/utils/auth/logout.d.ts +0 -3
- package/dist/src/utils/auth/logout.js +0 -18
- package/dist/src/utils/auth/token.d.ts +0 -3
- package/dist/src/utils/auth/token.js +0 -33
- package/dist/tailwind.config.d.ts +0 -3
- package/dist/tailwind.config.js +0 -7
- package/src/scripts/buildCss.ts +0 -25
- package/src/scripts/index.ts +0 -1
- package/src/scripts/rewriteAlias.ts +0 -39
- package/src/utils/LogoConsoleOutput/LogoConsoleOutput.ts +0 -61
package/src/index.ts
CHANGED
package/src/types/hooks.d.ts
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
/* eslint-disable @stylistic/semi */
|
|
2
|
+
import type { RefObject } from 'react'
|
|
2
3
|
declare module 'uibee/hooks' {
|
|
3
|
-
export
|
|
4
|
+
export function useVisibility<T extends HTMLElement>(
|
|
4
5
|
onVisible: () => void,
|
|
5
6
|
rootMargin?: string
|
|
6
7
|
): { ref: RefObject<T>; isVisible: boolean };
|
|
7
8
|
|
|
8
|
-
export
|
|
9
|
+
export function useDarkMode(): boolean;
|
|
10
|
+
|
|
11
|
+
export function useClickOutside<T extends HTMLElement>(
|
|
12
|
+
ref: RefObject<T | null>,
|
|
13
|
+
callback: () => void
|
|
14
|
+
): void;
|
|
9
15
|
}
|
package/src/utils/index.ts
CHANGED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export function LogoConsoleOutput() {
|
|
2
|
+
const ua = navigator.userAgent
|
|
3
|
+
|
|
4
|
+
if (!ua.includes('Chrome') && !ua.includes('Firefox') && !ua.includes('Safari')) {
|
|
5
|
+
console.log('Login - Linjeforeningen for IT')
|
|
6
|
+
return
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
const str =
|
|
10
|
+
'%c███████╗ ███████╗\n' +
|
|
11
|
+
'██╔════╝ ╚════██║\n' +
|
|
12
|
+
'██║%c ██╗ ██████╗ ██████╗ ██╗███╗ ██╗ %c██║\n' +
|
|
13
|
+
'╚═╝%c ██║ ██╔═══██╗██╔════╝ ██║████╗ ██║ %c╚═╝%c\n' +
|
|
14
|
+
' ██║ ██║ ██║██║ ███╗██║██╔██╗ ██║\n' +
|
|
15
|
+
' ██║ ██║ ██║██║ ██║██║██║╚██╗██║\n' +
|
|
16
|
+
'%c██╗%c ██████╗╚██████╔╝╚██████╔╝██║██║ ╚████║ %c██╗\n' +
|
|
17
|
+
'██║%c ╚═════╝ ╚═════╝ ╚═════╝ ╚═╝╚═╝ ╚═══╝ %c██║\n' +
|
|
18
|
+
'███████╗%c %c███████║\n' +
|
|
19
|
+
'╚══════╝ ╚══════╝%c\n\n' +
|
|
20
|
+
' - Laget av TekKom med 🍕 og ❤️'
|
|
21
|
+
|
|
22
|
+
console.log(str,
|
|
23
|
+
'color: #fd8738', '',
|
|
24
|
+
'color: #fd8738', '',
|
|
25
|
+
'color: #fd8738', '',
|
|
26
|
+
'color: #fd8738', '',
|
|
27
|
+
'color: #fd8738', '',
|
|
28
|
+
'color: #fd8738', '',
|
|
29
|
+
'color: #fd8738', ''
|
|
30
|
+
)
|
|
31
|
+
}
|
package/tsconfig.json
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"skipLibCheck": true,
|
|
14
14
|
"jsx": "react-jsx",
|
|
15
15
|
"resolveJsonModule": true,
|
|
16
|
+
"types": ["@types/bun"],
|
|
16
17
|
"paths": {
|
|
17
18
|
"@components/*": [
|
|
18
19
|
"./src/components/*"
|
|
@@ -25,8 +26,8 @@
|
|
|
25
26
|
],
|
|
26
27
|
"@styles/*": [
|
|
27
28
|
"./src/styles/*"
|
|
28
|
-
]
|
|
29
|
-
}
|
|
29
|
+
]
|
|
30
|
+
},
|
|
30
31
|
},
|
|
31
32
|
"include": [
|
|
32
33
|
"src",
|
package/tsdown.config.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import tailwindPostcss from '@tailwindcss/postcss'
|
|
2
|
+
import { defineConfig } from 'tsdown'
|
|
3
|
+
|
|
4
|
+
export default defineConfig({
|
|
5
|
+
entry: {
|
|
6
|
+
'src/components/index': 'src/components/index.ts',
|
|
7
|
+
'src/hooks/index': 'src/hooks/index.ts',
|
|
8
|
+
'src/utils/index': 'src/utils/index.ts',
|
|
9
|
+
'src/icons/index': 'src/icons/index.ts',
|
|
10
|
+
'src/styles/index': 'src/styles/index.ts',
|
|
11
|
+
},
|
|
12
|
+
format: 'esm',
|
|
13
|
+
outExtensions: () => ({ js: '.js', dts: '.d.ts' }),
|
|
14
|
+
dts: true,
|
|
15
|
+
clean: true,
|
|
16
|
+
deps: {
|
|
17
|
+
onlyBundle: false,
|
|
18
|
+
},
|
|
19
|
+
css: {
|
|
20
|
+
transformer: 'postcss',
|
|
21
|
+
postcss: {
|
|
22
|
+
plugins: [tailwindPostcss()],
|
|
23
|
+
},
|
|
24
|
+
inject: true,
|
|
25
|
+
},
|
|
26
|
+
})
|
package/Readme.md
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# Uibee
|
|
3
|
-
|
|
4
|
-
This package includes shared components, functions and hooks for reuse across Login projects.
|
|
5
|
-
|
|
6
|
-
## Getting Started
|
|
7
|
-
|
|
8
|
-
```bash
|
|
9
|
-
# Install dependencies
|
|
10
|
-
npm install
|
|
11
|
-
|
|
12
|
-
# Build the project
|
|
13
|
-
npm run build
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
## Folder Structure
|
|
17
|
-
```
|
|
18
|
-
.
|
|
19
|
-
├── src/
|
|
20
|
-
│ ├── components/ # Reusable NextJS components
|
|
21
|
-
│ ├── hooks/ # Custom React hooks
|
|
22
|
-
│ ├── scripts/ # Build and utility scripts
|
|
23
|
-
│ ├── types/ # TypeScript type definitions
|
|
24
|
-
│ ├── utils/ # Utility functions
|
|
25
|
-
│ └── globals.css # Global styles
|
|
26
|
-
├── package.json # Project metadata and scripts
|
|
27
|
-
├── tailwind.config.ts # Tailwind CSS configuration
|
|
28
|
-
├── tsconfig.json # TypeScript configuration
|
|
29
|
-
```
|