mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-05 17:58:55 +00:00
Move SearchFilter
This commit is contained in:
1 parent
f0dbeca36a
commit
074e340cb5
22 files changed
+226
-17
No files matched your search
@@ -1 +0,0 @@
|
||||
export * from "./SearchFilter";
|
||||
@@ -1,4 +1,3 @@
|
||||
export * from "./SearchFilter";
|
||||
export * from "./UploadModal";
|
||||
export * from "./UploadModal3D";
|
||||
export * from "./UploadModalMedia";
|
||||
+1
-1
@@ -8,9 +8,9 @@ import {
|
||||
MediaFileAnimationType,
|
||||
} from "~/enums";
|
||||
import {
|
||||
SearchFilter,
|
||||
UploadModal,
|
||||
} from "~/components";
|
||||
import { SearchFilter } from "@storyteller/ui-search";
|
||||
import { Pagination } from "@storyteller/ui-pagination";
|
||||
import { Button, FilterButtons } from "@storyteller/ui-button";
|
||||
import { ItemElements } from "~/pages/PageEnigma/comps/SidePanelTabs/sharedComps";
|
||||
|
||||
+1
-1
@@ -10,9 +10,9 @@ import {
|
||||
} from "~/enums";
|
||||
import { MediaItem } from "~/pages/PageEnigma/models";
|
||||
import {
|
||||
SearchFilter,
|
||||
UploadModal,
|
||||
} from "~/components";
|
||||
import { SearchFilter } from "@storyteller/ui-search";
|
||||
import { Pagination } from "@storyteller/ui-pagination";
|
||||
import { Button, FilterButtons } from "@storyteller/ui-button";
|
||||
import { ItemElements } from "~/pages/PageEnigma/comps/SidePanelTabs/sharedComps";
|
||||
|
||||
+1
-1
@@ -6,9 +6,9 @@ import {
|
||||
MediaFileAnimationType,
|
||||
} from "~/enums";
|
||||
import {
|
||||
SearchFilter,
|
||||
UploadModal,
|
||||
} from "~/components";
|
||||
import { SearchFilter } from "@storyteller/ui-search";
|
||||
import { Pagination } from "@storyteller/ui-pagination";
|
||||
import { Button, FilterButtons } from "@storyteller/ui-button";
|
||||
import { ItemElements } from "~/pages/PageEnigma/comps/SidePanelTabs/sharedComps";
|
||||
|
||||
+1
-1
@@ -13,9 +13,9 @@ import {
|
||||
ItemElements,
|
||||
} from "~/pages/PageEnigma/comps/SidePanelTabs/sharedComps";
|
||||
import {
|
||||
SearchFilter,
|
||||
UploadModal3D,
|
||||
} from "~/components";
|
||||
import { SearchFilter } from "@storyteller/ui-search";
|
||||
import { Pagination } from "@storyteller/ui-pagination";
|
||||
|
||||
import { Button, FilterButtons } from "@storyteller/ui-button"
|
||||
|
||||
+1
-1
@@ -14,9 +14,9 @@ import {
|
||||
ItemElements,
|
||||
} from "~/pages/PageEnigma/comps/SidePanelTabs/sharedComps";
|
||||
import {
|
||||
SearchFilter,
|
||||
UploadModal3D,
|
||||
} from "~/components";
|
||||
import { SearchFilter } from "@storyteller/ui-search";
|
||||
import { Pagination } from "@storyteller/ui-pagination";
|
||||
import { Button, FilterButtons } from "@storyteller/ui-button"
|
||||
import { isAnyStatusFetching } from "../utilities";
|
||||
|
||||
+1
-1
@@ -6,9 +6,9 @@ import {
|
||||
IMAGEPLANE_FILE_TYPE,
|
||||
} from "~/enums";
|
||||
import {
|
||||
SearchFilter,
|
||||
UploadModalMedia,
|
||||
} from "~/components";
|
||||
import { SearchFilter } from "@storyteller/ui-search";
|
||||
import { Button } from "@storyteller/ui-button";
|
||||
import { Pagination } from "@storyteller/ui-pagination";
|
||||
import { ItemElements } from "~/pages/PageEnigma/comps/SidePanelTabs/sharedComps";
|
||||
|
||||
+1
-1
@@ -6,9 +6,9 @@ import {
|
||||
VIDEOPLANE_FILE_TYPE,
|
||||
} from "~/enums";
|
||||
import {
|
||||
SearchFilter,
|
||||
UploadModalMedia,
|
||||
} from "~/components";
|
||||
import { SearchFilter } from "@storyteller/ui-search";
|
||||
import { Button } from "@storyteller/ui-button";
|
||||
import { Pagination } from "@storyteller/ui-pagination";
|
||||
import { ItemElements } from "~/pages/PageEnigma/comps/SidePanelTabs/sharedComps";
|
||||
|
||||
+1
-1
@@ -12,9 +12,9 @@ import {
|
||||
} from "~/enums";
|
||||
|
||||
import {
|
||||
SearchFilter,
|
||||
UploadModal3D,
|
||||
} from "~/components";
|
||||
import { SearchFilter } from "@storyteller/ui-search";
|
||||
import { Button, FilterButtons } from "@storyteller/ui-button"
|
||||
|
||||
import {
|
||||
|
||||
@@ -28,12 +28,21 @@
|
||||
"noEmit": true
|
||||
},
|
||||
"references": [
|
||||
{
|
||||
"path": "../../libs/components/pagination"
|
||||
},
|
||||
{
|
||||
"path": "../../libs/components/search"
|
||||
},
|
||||
{
|
||||
"path": "../../libs/components/badge"
|
||||
},
|
||||
{
|
||||
"path": "../../libs/components/lightbox-modal"
|
||||
},
|
||||
{
|
||||
"path": "../../libs/components/button-icon"
|
||||
},
|
||||
{
|
||||
"path": "../../libs/components/loading-spinner"
|
||||
},
|
||||
@@ -118,12 +127,6 @@
|
||||
{
|
||||
"path": "../../libs/components/input"
|
||||
},
|
||||
{
|
||||
"path": "../../libs/components/button-icon"
|
||||
},
|
||||
{
|
||||
"path": "../../libs/components/pagination"
|
||||
},
|
||||
{
|
||||
"path": "../../libs/tauri-utils"
|
||||
}
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"presets": [
|
||||
[
|
||||
"@nx/react/babel",
|
||||
{
|
||||
"runtime": "automatic",
|
||||
"useBuiltIns": "usage"
|
||||
}
|
||||
]
|
||||
],
|
||||
"plugins": []
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
# @storyteller/ui-search
|
||||
|
||||
This library was generated with [Nx](https://nx.dev).
|
||||
|
||||
## Running unit tests
|
||||
|
||||
Run `nx test @storyteller/ui-search` to execute the unit tests via [Vitest](https://vitest.dev/).
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"name": "@storyteller/ui-search",
|
||||
"version": "0.0.1",
|
||||
"type": "module",
|
||||
"main": "./dist/index.js",
|
||||
"module": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
"exports": {
|
||||
"./package.json": "./package.json",
|
||||
".": {
|
||||
"development": "./src/index.ts",
|
||||
"types": "./dist/index.d.ts",
|
||||
"import": "./dist/index.js",
|
||||
"default": "./dist/index.js"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
export * from './lib/SearchFilter';
|
||||
-1
@@ -1,4 +1,3 @@
|
||||
// TODO: DELETE
|
||||
import {
|
||||
faCircleXmark,
|
||||
faFilterList,
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"files": [],
|
||||
"include": [],
|
||||
"references": [
|
||||
{
|
||||
"path": "../tooltip"
|
||||
},
|
||||
{
|
||||
"path": "../button"
|
||||
},
|
||||
{
|
||||
"path": "../input"
|
||||
},
|
||||
{
|
||||
"path": "./tsconfig.lib.json"
|
||||
},
|
||||
{
|
||||
"path": "./tsconfig.spec.json"
|
||||
}
|
||||
],
|
||||
"extends": "../../../tsconfig.base.json"
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
{
|
||||
"extends": "../../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "dist",
|
||||
"types": [
|
||||
"node",
|
||||
"@nx/react/typings/cssmodule.d.ts",
|
||||
"@nx/react/typings/image.d.ts",
|
||||
"vite/client"
|
||||
],
|
||||
"rootDir": "src",
|
||||
"jsx": "react-jsx",
|
||||
"tsBuildInfoFile": "dist/tsconfig.lib.tsbuildinfo"
|
||||
},
|
||||
"exclude": [
|
||||
"out-tsc",
|
||||
"dist",
|
||||
"**/*.spec.ts",
|
||||
"**/*.test.ts",
|
||||
"**/*.spec.tsx",
|
||||
"**/*.test.tsx",
|
||||
"**/*.spec.js",
|
||||
"**/*.test.js",
|
||||
"**/*.spec.jsx",
|
||||
"**/*.test.jsx",
|
||||
"vite.config.ts",
|
||||
"vite.config.mts",
|
||||
"vitest.config.ts",
|
||||
"vitest.config.mts",
|
||||
"src/**/*.test.ts",
|
||||
"src/**/*.spec.ts",
|
||||
"src/**/*.test.tsx",
|
||||
"src/**/*.spec.tsx",
|
||||
"src/**/*.test.js",
|
||||
"src/**/*.spec.js",
|
||||
"src/**/*.test.jsx",
|
||||
"src/**/*.spec.jsx"
|
||||
],
|
||||
"include": [
|
||||
"src/**/*.js",
|
||||
"src/**/*.jsx",
|
||||
"src/**/*.ts",
|
||||
"src/**/*.tsx"
|
||||
],
|
||||
"references": [
|
||||
{
|
||||
"path": "../tooltip/tsconfig.lib.json"
|
||||
},
|
||||
{
|
||||
"path": "../button/tsconfig.lib.json"
|
||||
},
|
||||
{
|
||||
"path": "../input/tsconfig.lib.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"extends": "../../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "./out-tsc/vitest",
|
||||
"types": [
|
||||
"vitest/globals",
|
||||
"vitest/importMeta",
|
||||
"vite/client",
|
||||
"node",
|
||||
"vitest"
|
||||
],
|
||||
"jsx": "react-jsx"
|
||||
},
|
||||
"include": [
|
||||
"vite.config.ts",
|
||||
"vite.config.mts",
|
||||
"vitest.config.ts",
|
||||
"vitest.config.mts",
|
||||
"src/**/*.test.ts",
|
||||
"src/**/*.spec.ts",
|
||||
"src/**/*.test.tsx",
|
||||
"src/**/*.spec.tsx",
|
||||
"src/**/*.test.js",
|
||||
"src/**/*.spec.js",
|
||||
"src/**/*.test.jsx",
|
||||
"src/**/*.spec.jsx",
|
||||
"src/**/*.d.ts"
|
||||
],
|
||||
"references": [
|
||||
{
|
||||
"path": "./tsconfig.lib.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
/// <reference types='vitest' />
|
||||
import { defineConfig } from 'vite';
|
||||
import react from '@vitejs/plugin-react';
|
||||
import dts from 'vite-plugin-dts';
|
||||
import * as path from 'path';
|
||||
|
||||
export default defineConfig(() => ({
|
||||
root: __dirname,
|
||||
cacheDir: '../../../node_modules/.vite/libs/components/search',
|
||||
plugins: [react(), dts({ entryRoot: 'src', tsconfigPath: path.join(__dirname, 'tsconfig.lib.json') })],
|
||||
// Uncomment this if you are using workers.
|
||||
// worker: {
|
||||
// plugins: [ nxViteTsPaths() ],
|
||||
// },
|
||||
// Configuration for building your library.
|
||||
// See: https://vitejs.dev/guide/build.html#library-mode
|
||||
build: {
|
||||
outDir: './dist',
|
||||
emptyOutDir: true,
|
||||
reportCompressedSize: true,
|
||||
commonjsOptions: {
|
||||
transformMixedEsModules: true,
|
||||
},
|
||||
lib: {
|
||||
// Could also be a dictionary or array of multiple entry points.
|
||||
entry: 'src/index.ts',
|
||||
name: '@storyteller/ui-search',
|
||||
fileName: 'index',
|
||||
// Change this to the formats you want to support.
|
||||
// Don't forget to update your package.json as well.
|
||||
formats: ['es' as const]
|
||||
},
|
||||
rollupOptions: {
|
||||
// External packages that should not be bundled into your library.
|
||||
external: ['react','react-dom','react/jsx-runtime']
|
||||
},
|
||||
},
|
||||
test: {
|
||||
watch: false,
|
||||
globals: true,
|
||||
environment: 'jsdom',
|
||||
include: ['{src,tests}/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
|
||||
reporters: ['default'],
|
||||
coverage: {
|
||||
reportsDirectory: './test-output/vitest/coverage',
|
||||
provider: 'v8' as const,
|
||||
}
|
||||
},
|
||||
}));
|
||||
Generated
+8
@@ -1393,6 +1393,10 @@
|
||||
"name": "@storyteller/ui-promptbox",
|
||||
"version": "0.0.1"
|
||||
},
|
||||
"libs/components/search": {
|
||||
"name": "@storyteller/ui-search",
|
||||
"version": "0.0.1"
|
||||
},
|
||||
"libs/components/select": {
|
||||
"name": "@storyteller/ui-select",
|
||||
"version": "0.0.1"
|
||||
@@ -9259,6 +9263,10 @@
|
||||
"resolved": "libs/components/promptbox",
|
||||
"link": true
|
||||
},
|
||||
"node_modules/@storyteller/ui-search": {
|
||||
"resolved": "libs/components/search",
|
||||
"link": true
|
||||
},
|
||||
"node_modules/@storyteller/ui-select": {
|
||||
"resolved": "libs/components/select",
|
||||
"link": true
|
||||
|
||||
@@ -122,6 +122,9 @@
|
||||
},
|
||||
{
|
||||
"path": "./libs/components/pagination"
|
||||
},
|
||||
{
|
||||
"path": "./libs/components/search"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user