@awenovations/aura 0.0.30 → 0.0.32
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/dist/dialog/dialog.stories.svelte +18 -0
- package/dist/dialog/dialog.stories.svelte.d.ts +22 -0
- package/dist/dialog/dialog.svelte +33 -0
- package/dist/dialog/dialog.svelte.d.ts +24 -0
- package/dist/icons/meta.json +1 -1
- package/dist/text-field/text-field.svelte.d.ts +1 -1
- package/dist/tokens/_variables.css +1 -1
- package/package.json +108 -107
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<script context="module">import "../../app.scss";
|
|
2
|
+
import Dialog from "./dialog.svelte";
|
|
3
|
+
export const meta = {
|
|
4
|
+
title: "AURA/Dialog",
|
|
5
|
+
component: Dialog,
|
|
6
|
+
tags: ["autodocs"]
|
|
7
|
+
};
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<script>import { Story, Template } from "@storybook/addon-svelte-csf";
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
<Template>
|
|
15
|
+
<Dialog />
|
|
16
|
+
</Template>
|
|
17
|
+
|
|
18
|
+
<Story name="Default Dialog" />
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
import '../../app.scss';
|
|
3
|
+
export declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof Dialog;
|
|
6
|
+
tags: string[];
|
|
7
|
+
};
|
|
8
|
+
declare const __propDef: {
|
|
9
|
+
props: Record<string, never>;
|
|
10
|
+
events: {
|
|
11
|
+
[evt: string]: CustomEvent<any>;
|
|
12
|
+
};
|
|
13
|
+
slots: {};
|
|
14
|
+
exports?: {} | undefined;
|
|
15
|
+
bindings?: string | undefined;
|
|
16
|
+
};
|
|
17
|
+
export type DialogProps = typeof __propDef.props;
|
|
18
|
+
export type DialogEvents = typeof __propDef.events;
|
|
19
|
+
export type DialogSlots = typeof __propDef.slots;
|
|
20
|
+
export default class Dialog extends SvelteComponent<DialogProps, DialogEvents, DialogSlots> {
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<script>import classNames from "classnames";
|
|
2
|
+
import Button from "../button/button.svelte";
|
|
3
|
+
import Container from "../container/container.svelte";
|
|
4
|
+
export let cancelText = "Cancel";
|
|
5
|
+
export let confirmText = "Confirm";
|
|
6
|
+
export let onConfirm = () => {
|
|
7
|
+
};
|
|
8
|
+
export let onCancel = () => {
|
|
9
|
+
};
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<Container {...$$restProps} clearPadding variant="elevated" class={classNames('dialog', $$restProps.class)}>
|
|
13
|
+
<slot>Are you sure you wish to take this action?</slot>
|
|
14
|
+
<div class="action-buttons">
|
|
15
|
+
<Button size="small" on:click={onCancel}>{cancelText}</Button>
|
|
16
|
+
<Button size="small" on:click={onConfirm} variant="secondary">{confirmText}</Button>
|
|
17
|
+
</div>
|
|
18
|
+
</Container>
|
|
19
|
+
|
|
20
|
+
<style>:global(.dialog) {
|
|
21
|
+
font: var(--aura-default);
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
gap: 20px;
|
|
25
|
+
padding: 20px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.action-buttons {
|
|
29
|
+
display: flex;
|
|
30
|
+
justify-content: flex-end;
|
|
31
|
+
gap: 8px;
|
|
32
|
+
transform: translate(12px, 12px);
|
|
33
|
+
}</style>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
cancelText?: string;
|
|
6
|
+
confirmText?: string;
|
|
7
|
+
onConfirm?: () => void;
|
|
8
|
+
onCancel?: () => void;
|
|
9
|
+
};
|
|
10
|
+
events: {
|
|
11
|
+
[evt: string]: CustomEvent<any>;
|
|
12
|
+
};
|
|
13
|
+
slots: {
|
|
14
|
+
default: {};
|
|
15
|
+
};
|
|
16
|
+
exports?: undefined;
|
|
17
|
+
bindings?: undefined;
|
|
18
|
+
};
|
|
19
|
+
export type DialogProps = typeof __propDef.props;
|
|
20
|
+
export type DialogEvents = typeof __propDef.events;
|
|
21
|
+
export type DialogSlots = typeof __propDef.slots;
|
|
22
|
+
export default class Dialog extends SvelteComponent<DialogProps, DialogEvents, DialogSlots> {
|
|
23
|
+
}
|
|
24
|
+
export {};
|
package/dist/icons/meta.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"lastGenerated":
|
|
1
|
+
{"lastGenerated":1739318777221,"icons":[{"name":"apple","size":"large"},{"name":"apple","size":"medium"},{"name":"apple","size":"small"},{"name":"arrow-circle-left","size":"large"},{"name":"arrow-circle-left","size":"medium"},{"name":"arrow-circle-left","size":"small"},{"name":"bug","size":"large"},{"name":"bug","size":"medium"},{"name":"bug","size":"small"},{"name":"caret-down","size":"large"},{"name":"caret-down","size":"medium"},{"name":"caret-down","size":"small"},{"name":"circle-plus","size":"large"},{"name":"circle-plus","size":"medium"},{"name":"circle-plus","size":"small"},{"name":"google-color","size":"large"},{"name":"google-color","size":"medium"},{"name":"google-color","size":"small"},{"name":"microsoft-color","size":"large"},{"name":"microsoft-color","size":"medium"},{"name":"microsoft-color","size":"small"},{"name":"pencil","size":"large"},{"name":"pencil","size":"medium"},{"name":"pencil","size":"small"},{"name":"plan","size":"large"},{"name":"plan","size":"medium"},{"name":"plan","size":"small"},{"name":"trash","size":"large"},{"name":"trash","size":"medium"},{"name":"trash","size":"small"},{"name":"user-story","size":"large"},{"name":"user-story","size":"medium"},{"name":"user-story","size":"small"}]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
2
|
declare const __propDef: {
|
|
3
|
-
props: Omit<import("svelte/elements").HTMLInputAttributes, "class" | "
|
|
3
|
+
props: Omit<import("svelte/elements").HTMLInputAttributes, "class" | "id" | "size" | "value" | `on:${string}` | "type"> & {
|
|
4
4
|
type?: "number" | "text" | "search" | "time" | "hidden" | "color" | "date" | "datetime-local" | "email" | "file" | "month" | "password" | "range" | "tel" | "url" | "week" | "multi";
|
|
5
5
|
value?: string | number | boolean;
|
|
6
6
|
showErrors?: boolean;
|
package/package.json
CHANGED
|
@@ -1,109 +1,110 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
2
|
+
"name": "@awenovations/aura",
|
|
3
|
+
"version": "0.0.32",
|
|
4
|
+
"scripts": {
|
|
5
|
+
"dev": "vite dev",
|
|
6
|
+
"build": "npm run transform-tokens && vite build && npm run package",
|
|
7
|
+
"preview": "vite preview",
|
|
8
|
+
"copy-icons": "cp -rf icons dist/icons",
|
|
9
|
+
"copy-svgs": "cp -rf svgs dist/svgs",
|
|
10
|
+
"package": "svelte-kit sync && svelte-package && cp -rf tokens dist/tokens && npm run copy-icons && npm run copy-svgs && publint",
|
|
11
|
+
"prepublishOnly": "npm run package",
|
|
12
|
+
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
|
13
|
+
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
|
14
|
+
"lint": "prettier --check . && eslint .",
|
|
15
|
+
"format": "prettier --write .",
|
|
16
|
+
"transform-tokens": "node ./src/tokens/transform-tokens.js",
|
|
17
|
+
"storybook": "npm run generate-icon-meta-data && npm run transform-tokens && storybook dev -p 6006",
|
|
18
|
+
"build-storybook": "npm run generate-icon-meta-data && npm run transform-tokens && storybook build",
|
|
19
|
+
"replace-icons": "replace-in-file //icons//g ../icons/ docs/**/*.* --isRegex",
|
|
20
|
+
"replace-svgs": "replace-in-file //svgs//g ../svgs/ docs/**/*.* --isRegex",
|
|
21
|
+
"replace-meta-json-for-gh-pages": "replace-in-file ../icons/meta.json /aura/icons/meta.json docs/**/*.*",
|
|
22
|
+
"generate-icon-meta-data": "node src/tokens/generate-icon-meta.js",
|
|
23
|
+
"build-storybook-for-pages": "rimraf docs && npm run generate-icon-meta-data && npm run transform-tokens && storybook build --output-dir docs && npm run replace-icons && npm run replace-svgs && npm run replace-meta-json-for-gh-pages && touch docs/.nojekyll"
|
|
24
|
+
},
|
|
25
|
+
"exports": {
|
|
26
|
+
".": {
|
|
27
|
+
"types": "./dist/index.d.ts",
|
|
28
|
+
"svelte": "./dist/index.js"
|
|
29
|
+
},
|
|
30
|
+
"./package.json": "./package.json",
|
|
31
|
+
"./button.svelte": "./dist/button/button.svelte",
|
|
32
|
+
"./icon.svelte": "./dist/icon/icon.svelte",
|
|
33
|
+
"./container.svelte": "./dist/container/container.svelte",
|
|
34
|
+
"./dialog.svelte": "./dist/dialog/dialog.svelte",
|
|
35
|
+
"./dropdown.svelte": "./dist/dropdown/dropdown.svelte",
|
|
36
|
+
"./panel.svelte": "./dist/panel/panel.svelte",
|
|
37
|
+
"./form-item.svelte": "./dist/form-item/form-item.svelte",
|
|
38
|
+
"./zero-state.svelte": "./dist/zero-state/zero-state.svelte",
|
|
39
|
+
"./error-state.svelte": "./dist/error-state/error-state.svelte",
|
|
40
|
+
"./float.svelte": "./dist/float/float.svelte",
|
|
41
|
+
"./text-field.svelte": "./dist/text-field/text-field.svelte",
|
|
42
|
+
"./progress-ring.svelte": "./dist/progress/progress-ring.svelte",
|
|
43
|
+
"./skeleton.svelte": "./dist/skeleton/skeleton.svelte",
|
|
44
|
+
"./alert.svelte": "./dist/alert/alert.svelte",
|
|
45
|
+
"./link.svelte": "./dist/link/link.svelte",
|
|
46
|
+
"./divider.svelte": "./dist/divider/divider.svelte",
|
|
47
|
+
"./tooltip.svelte": "./dist/tooltip/tooltip.svelte",
|
|
48
|
+
"./toast.svelte": "./dist/toast/toast.svelte",
|
|
49
|
+
"./toast.store": "./dist/toast/toast.store.js",
|
|
50
|
+
"./dist/tokens/_variables.css": {
|
|
51
|
+
"import": "./dist/tokens/_variables.css",
|
|
52
|
+
"require": "./dist/tokens/_variables.css"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"files": [
|
|
56
|
+
"dist",
|
|
57
|
+
"!dist/**/*.test.*",
|
|
58
|
+
"!dist/**/*.spec.*"
|
|
59
|
+
],
|
|
60
|
+
"peerDependencies": {
|
|
61
|
+
"svelte": "^4.0.0"
|
|
62
|
+
},
|
|
63
|
+
"devDependencies": {
|
|
64
|
+
"@storybook/addon-essentials": "^8.4.7",
|
|
65
|
+
"@storybook/addon-interactions": "^8.4.7",
|
|
66
|
+
"@storybook/addon-links": "^8.4.7",
|
|
67
|
+
"@storybook/blocks": "^8.4.7",
|
|
68
|
+
"@storybook/svelte": "^8.4.7",
|
|
69
|
+
"@storybook/sveltekit": "^8.4.7",
|
|
70
|
+
"@storybook/test": "^8.4.7",
|
|
71
|
+
"@sveltejs/adapter-auto": "^3.2.2",
|
|
72
|
+
"@sveltejs/kit": "^2.5.18",
|
|
73
|
+
"@sveltejs/package": "^2.3.2",
|
|
74
|
+
"@sveltejs/vite-plugin-svelte": "^3.1.1",
|
|
75
|
+
"@typescript-eslint/eslint-plugin": "^7.14.1",
|
|
76
|
+
"@typescript-eslint/parser": "^7.14.1",
|
|
77
|
+
"eslint": "^9.6.0",
|
|
78
|
+
"eslint-config-prettier": "^9.1.0",
|
|
79
|
+
"eslint-plugin-storybook": "^0.8.0",
|
|
80
|
+
"eslint-plugin-svelte": "^2.41.0",
|
|
81
|
+
"prettier": "^3.3.2",
|
|
82
|
+
"prettier-plugin-svelte": "^3.2.5",
|
|
83
|
+
"publint": "^0.2.8",
|
|
84
|
+
"react": "^18.3.1",
|
|
85
|
+
"react-dom": "^18.3.1",
|
|
86
|
+
"rimraf": "^5.0.7",
|
|
87
|
+
"sass": "^1.77.6",
|
|
88
|
+
"storybook": "^8.4.7",
|
|
89
|
+
"style-dictionary": "^3.9.1",
|
|
90
|
+
"style-dictionary-utils": "^2.4.1",
|
|
91
|
+
"svelte": "^4.2.18",
|
|
92
|
+
"svelte-check": "^3.8.4",
|
|
93
|
+
"tslib": "^2.6.3",
|
|
94
|
+
"typescript": "^5.5.2",
|
|
95
|
+
"vite": "^5.3.2"
|
|
96
|
+
},
|
|
97
|
+
"svelte": "./dist/index.js",
|
|
98
|
+
"types": "./dist/index.d.ts",
|
|
99
|
+
"type": "module",
|
|
100
|
+
"dependencies": {
|
|
101
|
+
"@awenovations/aura": "^0.0.10",
|
|
102
|
+
"@floating-ui/dom": "^1.6.6",
|
|
103
|
+
"@storybook/addon-svelte-csf": "^4.1.3",
|
|
104
|
+
"@storybook/addon-themes": "^8.4.7",
|
|
105
|
+
"classnames": "^2.5.1",
|
|
106
|
+
"replace-in-file": "^8.0.1",
|
|
107
|
+
"reset-css": "^5.0.2",
|
|
108
|
+
"uuid": "^10.0.0"
|
|
109
|
+
}
|
|
109
110
|
}
|