@axdspub/axiom-ui-forms 0.1.1 → 0.1.3
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 +14 -1
- package/library/axiom-ui-forms.d.ts +194 -0
- package/library/index.js +16216 -0
- package/library/index.js.map +1 -0
- package/library/umd.js +16253 -0
- package/library/umd.js.map +1 -0
- package/package.json +1 -1
- package/rollup.config.mjs +10 -0
- package/src/Form/index.ts +1 -0
- package/.dockerignore +0 -4
- package/.storybook/main.ts +0 -43
- package/.storybook/preview.ts +0 -16
- package/.vscode/extensions.json +0 -5
- package/.vscode/settings.json +0 -10
- package/Dockerfile +0 -34
- package/docker/nginx/conf.d/default.conf +0 -46
- package/public/exampleForm.json +0 -77
- package/public/favicon.ico +0 -0
- package/public/index.html +0 -43
- package/public/logo192.png +0 -0
- package/public/logo512.png +0 -0
- package/public/manifest.json +0 -25
- package/public/robots.txt +0 -3
package/package.json
CHANGED
package/rollup.config.mjs
CHANGED
@@ -30,6 +30,16 @@ const config = [
|
|
30
30
|
if (warning.code === 'MODULE_LEVEL_DIRECTIVE') {
|
31
31
|
return
|
32
32
|
}
|
33
|
+
// got same warning as with d3.. assuming same deal for now (bostock sez: it's allowed in the spec, not gonna fix. just supress it)
|
34
|
+
// https://github.com/d3/d3-selection/issues/168#issuecomment-451983830
|
35
|
+
if (warning.code === 'CIRCULAR_DEPENDENCY') return
|
36
|
+
|
37
|
+
// rollup says - what do you expect to happen with eval? make sure code isn't evil https://github.com/rollup/rollup/issues/4366#issuecomment-1023346209
|
38
|
+
// cesium says - there's a reason we use eval and (I'm assuming they aren't particularly evil)
|
39
|
+
// also, it sounds like they're getting close to removing eval
|
40
|
+
// https://github.com/CesiumGS/cesium/issues/9024#issuecomment-1533025563 and https://github.com/CesiumGS/cesium/issues/9473 (and FF blocker https://bugzilla.mozilla.org/show_bug.cgi?id=1247687)
|
41
|
+
if (warning.code === 'EVAL') return
|
42
|
+
|
33
43
|
warn(warning)
|
34
44
|
},
|
35
45
|
output: [
|
package/src/Form/index.ts
CHANGED
package/.dockerignore
DELETED
package/.storybook/main.ts
DELETED
@@ -1,43 +0,0 @@
|
|
1
|
-
import type { StorybookConfig } from "@storybook/react-webpack5"
|
2
|
-
import path from "path"
|
3
|
-
const cracoConfig = require('../craco.config.js')
|
4
|
-
|
5
|
-
const config: StorybookConfig = {
|
6
|
-
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
|
7
|
-
addons: [
|
8
|
-
"@storybook/addon-links",
|
9
|
-
"@storybook/addon-essentials",
|
10
|
-
"@storybook/preset-create-react-app",
|
11
|
-
"@storybook/addon-onboarding",
|
12
|
-
"@storybook/addon-interactions",
|
13
|
-
],
|
14
|
-
framework: {
|
15
|
-
name: "@storybook/react-webpack5",
|
16
|
-
options: {},
|
17
|
-
},
|
18
|
-
webpackFinal(config, {
|
19
|
-
configType
|
20
|
-
}) {
|
21
|
-
return {
|
22
|
-
...config,
|
23
|
-
resolve: {
|
24
|
-
...config.resolve,
|
25
|
-
alias: {
|
26
|
-
...config?.resolve?.alias,
|
27
|
-
...{
|
28
|
-
'@': path.resolve(__dirname, "../src")
|
29
|
-
}
|
30
|
-
},
|
31
|
-
fallback: {
|
32
|
-
...config?.resolve?.fallback,
|
33
|
-
...cracoConfig?.webpack?.configure?.resolve?.fallback
|
34
|
-
}
|
35
|
-
}
|
36
|
-
};
|
37
|
-
},
|
38
|
-
docs: {
|
39
|
-
autodocs: "tag",
|
40
|
-
},
|
41
|
-
staticDirs: ["../public"],
|
42
|
-
};
|
43
|
-
export default config;
|
package/.storybook/preview.ts
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
import type { Preview } from "@storybook/react";
|
2
|
-
import '../src/index.css'
|
3
|
-
|
4
|
-
const preview: Preview = {
|
5
|
-
parameters: {
|
6
|
-
actions: { argTypesRegex: "^on[A-Z].*" },
|
7
|
-
controls: {
|
8
|
-
matchers: {
|
9
|
-
color: /(background|color)$/i,
|
10
|
-
date: /Date$/,
|
11
|
-
},
|
12
|
-
},
|
13
|
-
},
|
14
|
-
};
|
15
|
-
|
16
|
-
export default preview;
|
package/.vscode/extensions.json
DELETED
package/.vscode/settings.json
DELETED
package/Dockerfile
DELETED
@@ -1,34 +0,0 @@
|
|
1
|
-
# Install dependencies only when needed
|
2
|
-
FROM node:18-alpine AS deps
|
3
|
-
WORKDIR /app
|
4
|
-
COPY package.json package-lock.json ./
|
5
|
-
# TODO: Maybe revisit this, as we probably shouldn't be relying on
|
6
|
-
# legacy-peer-deps
|
7
|
-
COPY .npmrc ./
|
8
|
-
RUN npm ci
|
9
|
-
|
10
|
-
# Rebuild the source code only when needed
|
11
|
-
FROM node:18-alpine AS builder
|
12
|
-
|
13
|
-
# RUN apk --no-cache add curl
|
14
|
-
WORKDIR /app
|
15
|
-
COPY src/example-jwt-tokens.json src/jwt-tokens.json
|
16
|
-
COPY package.json package-lock.json ./
|
17
|
-
COPY .storybook .storybook
|
18
|
-
COPY public public
|
19
|
-
COPY src src
|
20
|
-
COPY .eslintrc.json craco.config.js tailwind.config.js tsconfig.json tsconfig.paths.json ./
|
21
|
-
COPY --from=deps /app/node_modules ./node_modules
|
22
|
-
RUN npm run build
|
23
|
-
|
24
|
-
# Production image, copy all the files and run craco
|
25
|
-
FROM nginx:1.25.1 AS nginx
|
26
|
-
WORKDIR /app
|
27
|
-
|
28
|
-
ENV NODE_ENV production
|
29
|
-
|
30
|
-
COPY --from=builder /app/build/ /usr/share/nginx/html
|
31
|
-
|
32
|
-
COPY ./docker/nginx/conf.d/* /etc/nginx/conf.d/
|
33
|
-
|
34
|
-
EXPOSE 80
|
@@ -1,46 +0,0 @@
|
|
1
|
-
server {
|
2
|
-
listen 80;
|
3
|
-
listen [::]:80;
|
4
|
-
server_name localhost;
|
5
|
-
|
6
|
-
#access_log /var/log/nginx/host.access.log main;
|
7
|
-
|
8
|
-
location / {
|
9
|
-
root /usr/share/nginx/html;
|
10
|
-
index index.html index.htm;
|
11
|
-
|
12
|
-
try_files $uri /index.html;
|
13
|
-
}
|
14
|
-
|
15
|
-
#error_page 404 /404.html;
|
16
|
-
|
17
|
-
# redirect server error pages to the static page /50x.html
|
18
|
-
#
|
19
|
-
error_page 500 502 503 504 /50x.html;
|
20
|
-
location = /50x.html {
|
21
|
-
root /usr/share/nginx/html;
|
22
|
-
}
|
23
|
-
|
24
|
-
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
|
25
|
-
#
|
26
|
-
#location ~ \.php$ {
|
27
|
-
# proxy_pass http://127.0.0.1;
|
28
|
-
#}
|
29
|
-
|
30
|
-
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
|
31
|
-
#
|
32
|
-
#location ~ \.php$ {
|
33
|
-
# root html;
|
34
|
-
# fastcgi_pass 127.0.0.1:9000;
|
35
|
-
# fastcgi_index index.php;
|
36
|
-
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
|
37
|
-
# include fastcgi_params;
|
38
|
-
#}
|
39
|
-
|
40
|
-
# deny access to .htaccess files, if Apache's document root
|
41
|
-
# concurs with nginx's one
|
42
|
-
#
|
43
|
-
#location ~ /\.ht {
|
44
|
-
# deny all;
|
45
|
-
#}
|
46
|
-
}
|
package/public/exampleForm.json
DELETED
@@ -1,77 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"label": "New form",
|
3
|
-
"id": "newForm",
|
4
|
-
"fields": [
|
5
|
-
{
|
6
|
-
"label": "Label",
|
7
|
-
"id": "label",
|
8
|
-
"type": "text",
|
9
|
-
"required": true
|
10
|
-
},
|
11
|
-
{
|
12
|
-
"label": "Description",
|
13
|
-
"id": "description",
|
14
|
-
"type": "long_text",
|
15
|
-
"required": true
|
16
|
-
},
|
17
|
-
{
|
18
|
-
"label": "Is it true?",
|
19
|
-
"id": "isit",
|
20
|
-
"type": "boolean",
|
21
|
-
"required": false
|
22
|
-
},
|
23
|
-
{
|
24
|
-
"label": "You must agree",
|
25
|
-
"id": "agree",
|
26
|
-
"type": "boolean",
|
27
|
-
"required": true
|
28
|
-
},
|
29
|
-
{
|
30
|
-
"label": "Select one",
|
31
|
-
"id": "color",
|
32
|
-
"type": "select",
|
33
|
-
"required": true,
|
34
|
-
"options": [
|
35
|
-
{
|
36
|
-
"label": "Red",
|
37
|
-
"value": "red"
|
38
|
-
},
|
39
|
-
{
|
40
|
-
"label": "Green",
|
41
|
-
"value": "green"
|
42
|
-
},
|
43
|
-
{
|
44
|
-
"label": "Blue",
|
45
|
-
"value": "blue"
|
46
|
-
}
|
47
|
-
]
|
48
|
-
},
|
49
|
-
{
|
50
|
-
"label": "Pick a size",
|
51
|
-
"id": "size",
|
52
|
-
"type": "radio",
|
53
|
-
"required": true,
|
54
|
-
"layout": "vertical",
|
55
|
-
"options": [
|
56
|
-
{
|
57
|
-
"label": "Small",
|
58
|
-
"value": "small"
|
59
|
-
},
|
60
|
-
{
|
61
|
-
"label": "Medium",
|
62
|
-
"value": "medium"
|
63
|
-
},
|
64
|
-
{
|
65
|
-
"label": "Large",
|
66
|
-
"value": "large"
|
67
|
-
}
|
68
|
-
]
|
69
|
-
},
|
70
|
-
{
|
71
|
-
"label": "A few of your favorite things",
|
72
|
-
"id": "favorites",
|
73
|
-
"type": "text",
|
74
|
-
"multiple": true
|
75
|
-
}
|
76
|
-
]
|
77
|
-
}
|
package/public/favicon.ico
DELETED
Binary file
|
package/public/index.html
DELETED
@@ -1,43 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html lang="en">
|
3
|
-
|
4
|
-
<head>
|
5
|
-
<meta charset="utf-8" />
|
6
|
-
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
|
7
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
8
|
-
<meta name="theme-color" content="#000000" />
|
9
|
-
<meta name="description" content="Web site created using create-react-app" />
|
10
|
-
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
|
11
|
-
<!--
|
12
|
-
manifest.json provides metadata used when your web app is installed on a
|
13
|
-
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
|
14
|
-
-->
|
15
|
-
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
|
16
|
-
<!--
|
17
|
-
Notice the use of %PUBLIC_URL% in the tags above.
|
18
|
-
It will be replaced with the URL of the `public` folder during the build.
|
19
|
-
Only files inside the `public` folder can be referenced from the HTML.
|
20
|
-
|
21
|
-
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
|
22
|
-
work correctly both with client-side routing and a non-root public URL.
|
23
|
-
Learn how to configure a non-root public URL by running `npm run build`.
|
24
|
-
-->
|
25
|
-
<title>Asset Manager</title>
|
26
|
-
</head>
|
27
|
-
|
28
|
-
<body>
|
29
|
-
<noscript>You need to enable JavaScript to run this app.</noscript>
|
30
|
-
<div id="root"></div>
|
31
|
-
<!--
|
32
|
-
This HTML file is a template.
|
33
|
-
If you open it directly in the browser, you will see an empty page.
|
34
|
-
|
35
|
-
You can add webfonts, meta tags, or analytics to this file.
|
36
|
-
The build step will place the bundled scripts into the <body> tag.
|
37
|
-
|
38
|
-
To begin the development, run `npm start` or `yarn start`.
|
39
|
-
To create a production bundle, use `npm run build` or `yarn build`.
|
40
|
-
-->
|
41
|
-
</body>
|
42
|
-
|
43
|
-
</html>
|
package/public/logo192.png
DELETED
Binary file
|
package/public/logo512.png
DELETED
Binary file
|
package/public/manifest.json
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"short_name": "React App",
|
3
|
-
"name": "Create React App Sample",
|
4
|
-
"icons": [
|
5
|
-
{
|
6
|
-
"src": "favicon.ico",
|
7
|
-
"sizes": "64x64 32x32 24x24 16x16",
|
8
|
-
"type": "image/x-icon"
|
9
|
-
},
|
10
|
-
{
|
11
|
-
"src": "logo192.png",
|
12
|
-
"type": "image/png",
|
13
|
-
"sizes": "192x192"
|
14
|
-
},
|
15
|
-
{
|
16
|
-
"src": "logo512.png",
|
17
|
-
"type": "image/png",
|
18
|
-
"sizes": "512x512"
|
19
|
-
}
|
20
|
-
],
|
21
|
-
"start_url": ".",
|
22
|
-
"display": "standalone",
|
23
|
-
"theme_color": "#000000",
|
24
|
-
"background_color": "#ffffff"
|
25
|
-
}
|
package/public/robots.txt
DELETED