uibee 2.3.6 → 2.3.8

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.
@@ -2,3 +2,4 @@ export * from './hooks';
2
2
  export * from './components';
3
3
  export * from './utils';
4
4
  export * from './scripts';
5
+ export * from './styles';
package/dist/src/index.js CHANGED
@@ -2,3 +2,4 @@ export * from './hooks';
2
2
  export * from './components';
3
3
  export * from './utils';
4
4
  export * from './scripts';
5
+ export * from './styles';
@@ -6,7 +6,7 @@ export default async function buildCss() {
6
6
  const tailwindConfig = tailwindModule.default ?? tailwindModule;
7
7
  const tailwindPostcss = (await import('@tailwindcss/postcss')).default;
8
8
  const inputPath = path.resolve('./src/globals.css');
9
- const outputPath = path.resolve('./dist/globals.css');
9
+ const outputPath = path.resolve('./dist/src/globals.css');
10
10
  const inputCss = readFileSync(inputPath, 'utf-8');
11
11
  const result = await postcss([tailwindPostcss(tailwindConfig)]).process(inputCss, {
12
12
  from: inputPath,
@@ -0,0 +1 @@
1
+ import '../globals.css';
@@ -0,0 +1 @@
1
+ import '../globals.css';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uibee",
3
- "version": "2.3.6",
3
+ "version": "2.3.8",
4
4
  "description": "Shared components, functions and hooks for reuse across Login projects",
5
5
  "homepage": "https://github.com/Login-Linjeforening-for-IT/uibee#readme",
6
6
  "bugs": {
@@ -13,15 +13,15 @@
13
13
  "license": "ISC",
14
14
  "author": "",
15
15
  "type": "module",
16
- "main": "dist/index.js",
17
- "types": "dist/index.d.ts",
16
+ "main": "./dist/src/index.js",
17
+ "types": "./dist/src/index.d.ts",
18
18
  "exports": {
19
19
  ".": "./dist/src/index.js",
20
20
  "./hooks": "./dist/src/hooks/index.js",
21
21
  "./components": "./dist/src/components/index.js",
22
22
  "./scripts": "./dist/src/scripts/index.js",
23
23
  "./utils": "./dist/src/utils/index.js",
24
- "./styles": "./dist/globals.css"
24
+ "./styles": "./dist/src/styles/index.js"
25
25
  },
26
26
  "scripts": {
27
27
  "build:clean": "rm -rf dist",
package/src/index.ts CHANGED
@@ -2,3 +2,4 @@ export * from './hooks'
2
2
  export * from './components'
3
3
  export * from './utils'
4
4
  export * from './scripts'
5
+ export * from './styles'
@@ -7,7 +7,7 @@ export default async function buildCss() {
7
7
  const tailwindConfig = tailwindModule.default ?? tailwindModule
8
8
  const tailwindPostcss = (await import('@tailwindcss/postcss')).default
9
9
  const inputPath = path.resolve('./src/globals.css')
10
- const outputPath = path.resolve('./dist/globals.css')
10
+ const outputPath = path.resolve('./dist/src/globals.css')
11
11
  const inputCss = readFileSync(inputPath, 'utf-8')
12
12
  const result = await postcss([tailwindPostcss(tailwindConfig)]).process(inputCss, {
13
13
  from: inputPath,
@@ -0,0 +1 @@
1
+ import '../globals.css'
package/tsconfig.json CHANGED
@@ -21,7 +21,10 @@
21
21
  ],
22
22
  "@hooks/*": [
23
23
  "./src/hooks/*"
24
- ]
24
+ ],
25
+ "@styles/*": [
26
+ "./src/styles/*"
27
+ ],
25
28
  }
26
29
  },
27
30
  "include": [
File without changes