@avakhula/ui 0.0.150 → 0.0.153
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/index.js +596 -577
- package/dist/index.umd.cjs +33 -33
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/App.vue +22 -16
- package/src/components/Form/Input/Input.vue +7 -0
- package/src/components/Form/Label/Label.vue +28 -1
- package/src/components/Pagination/pagination.scss +8 -14
- package/.cache/storybook/dev-server/a5a8bf6e622aef57065c6498611f40c911543d7d-3920d97c51b8ad2521918fb1205babd22b0ed3d7 +0 -1
- package/.cache/storybook/dev-server/a5a8bf6e622aef57065c6498611f40c911543d7d-43fdebe5fc35e4e9fabee9a83c7faea931b05ea0 +0 -1
- package/.cache/storybook/dev-server/a5a8bf6e622aef57065c6498611f40c911543d7d-64f3ef45467d4722d7a1f900d5dd06071eac4f63 +0 -1
- package/.cache/storybook/dev-server/a5a8bf6e622aef57065c6498611f40c911543d7d-d227207cad914a4f490b34ea9dfafe6ab1e6a0ab +0 -1
- package/.cache/storybook/dev-server/a5a8bf6e622aef57065c6498611f40c911543d7d-f086b87885981c04ce7a583ff90a49313de83de7 +0 -1
package/package.json
CHANGED
package/src/App.vue
CHANGED
|
@@ -1,25 +1,31 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
<ib-form-group class="form-group">
|
|
3
|
+
<ib-label for=email required>
|
|
4
|
+
Email address
|
|
5
|
+
</ib-label>
|
|
6
|
+
|
|
7
|
+
<ib-input required autofocus type="email" id="email" name="email" ref="email"
|
|
8
|
+
placeholder="Enter your email address" />
|
|
9
|
+
</ib-form-group>
|
|
10
|
+
|
|
11
|
+
<ib-form-group class="form-group">
|
|
12
|
+
<ib-label for=password required>
|
|
13
|
+
Password
|
|
14
|
+
</ib-label>
|
|
15
|
+
|
|
16
|
+
<ib-input required autofocus type="password" id="password" name="password" />
|
|
17
|
+
</ib-form-group>
|
|
8
18
|
</template>
|
|
9
19
|
|
|
10
20
|
<script>
|
|
11
|
-
import
|
|
21
|
+
import IbInput from "./components/Form/Input/Input.vue"
|
|
22
|
+
import IbLabel from "./components/Form/Label/Label.vue"
|
|
23
|
+
import IbFormGroup from "./components/Form/FormGroup/FormGroup.vue"
|
|
24
|
+
|
|
12
25
|
|
|
13
26
|
export default {
|
|
14
27
|
components: {
|
|
15
|
-
|
|
28
|
+
IbInput, IbLabel, IbFormGroup
|
|
16
29
|
}
|
|
17
30
|
}
|
|
18
|
-
|
|
19
|
-
</script>
|
|
20
|
-
|
|
21
|
-
<style>
|
|
22
|
-
.test {
|
|
23
|
-
padding-top: 110vh;
|
|
24
|
-
}
|
|
25
|
-
</style>
|
|
31
|
+
</script>
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
@input="onInput($event)"
|
|
14
14
|
@blur="onBlur($event)"
|
|
15
15
|
@focus="onFocus($event)"
|
|
16
|
+
@keypress.stop
|
|
16
17
|
/>
|
|
17
18
|
|
|
18
19
|
<ib-icon v-if="showIcon" class="icon-search" name="search-outline" />
|
|
@@ -20,6 +21,7 @@
|
|
|
20
21
|
<ib-icon-button
|
|
21
22
|
kind="ghost"
|
|
22
23
|
class="button-clear"
|
|
24
|
+
prevent-default
|
|
23
25
|
:disabled="readonly"
|
|
24
26
|
:help-text="clearButtonMessage"
|
|
25
27
|
@click.prevent="clearInput"
|
|
@@ -31,6 +33,7 @@
|
|
|
31
33
|
<ib-icon-button
|
|
32
34
|
kind="ghost"
|
|
33
35
|
class="toggle-password"
|
|
36
|
+
prevent-default
|
|
34
37
|
:disabled="readonly"
|
|
35
38
|
:help-text="showPassword ? hidePasswordMessage : showPasswordMessage"
|
|
36
39
|
@click.prevent="toggleShowPassword"
|
|
@@ -49,6 +52,7 @@
|
|
|
49
52
|
>
|
|
50
53
|
<template #trigger>
|
|
51
54
|
<ib-icon-button
|
|
55
|
+
prevent-default
|
|
52
56
|
:help-text="settingsButtonMessage"
|
|
53
57
|
class="options-trigger"
|
|
54
58
|
kind="ghost"
|
|
@@ -228,6 +232,9 @@ export default {
|
|
|
228
232
|
value(newVal) {
|
|
229
233
|
this.actualValue = newVal;
|
|
230
234
|
},
|
|
235
|
+
disabled(val) {
|
|
236
|
+
this.$globalEvents.$emit(`label:disabled:${this.id}`, val);
|
|
237
|
+
},
|
|
231
238
|
},
|
|
232
239
|
components: {
|
|
233
240
|
IbAlert,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<label :class="classes">
|
|
2
|
+
<label :class="classes" :for="for">
|
|
3
3
|
<span v-if="required" class="required">* </span>
|
|
4
4
|
<slot></slot>
|
|
5
5
|
|
|
@@ -24,6 +24,9 @@ import IbIcon from "../../Icon.vue";
|
|
|
24
24
|
export default {
|
|
25
25
|
name: "IbLabel",
|
|
26
26
|
props: {
|
|
27
|
+
for: {
|
|
28
|
+
type: String,
|
|
29
|
+
},
|
|
27
30
|
required: {
|
|
28
31
|
type: Boolean,
|
|
29
32
|
default: false,
|
|
@@ -36,6 +39,16 @@ export default {
|
|
|
36
39
|
type: String,
|
|
37
40
|
},
|
|
38
41
|
},
|
|
42
|
+
mounted() {
|
|
43
|
+
// this.$globalEvents.$on(`label:disabled:${this.for}`, (value) => {
|
|
44
|
+
// this.disabled = value;
|
|
45
|
+
// });
|
|
46
|
+
},
|
|
47
|
+
data() {
|
|
48
|
+
return {
|
|
49
|
+
disabled: false,
|
|
50
|
+
};
|
|
51
|
+
},
|
|
39
52
|
computed: {
|
|
40
53
|
classes() {
|
|
41
54
|
const classList = ["ib-label"];
|
|
@@ -44,6 +57,10 @@ export default {
|
|
|
44
57
|
classList.push("has-info-text");
|
|
45
58
|
}
|
|
46
59
|
|
|
60
|
+
if (this.disabled) {
|
|
61
|
+
classList.push("label-disabled");
|
|
62
|
+
}
|
|
63
|
+
|
|
47
64
|
return classList;
|
|
48
65
|
},
|
|
49
66
|
},
|
|
@@ -74,6 +91,16 @@ export default {
|
|
|
74
91
|
align-items: center;
|
|
75
92
|
}
|
|
76
93
|
|
|
94
|
+
&.label-disabled {
|
|
95
|
+
color: $neutral-500;
|
|
96
|
+
|
|
97
|
+
.info-button {
|
|
98
|
+
.ib-icon {
|
|
99
|
+
color: $neutral-500;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
77
104
|
.info-button {
|
|
78
105
|
display: inline-block;
|
|
79
106
|
margin-left: 3px;
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.report-controls {
|
|
28
|
-
|
|
28
|
+
display: flex;
|
|
29
29
|
justify-content: space-between;
|
|
30
30
|
align-items: center;
|
|
31
31
|
|
|
@@ -62,7 +62,6 @@
|
|
|
62
62
|
input[type=number] {
|
|
63
63
|
-moz-appearance: textfield;
|
|
64
64
|
}
|
|
65
|
-
|
|
66
65
|
}
|
|
67
66
|
|
|
68
67
|
.button-prev {
|
|
@@ -87,13 +86,12 @@
|
|
|
87
86
|
.icon-button-wrapper.button-prev {
|
|
88
87
|
&.disabled {
|
|
89
88
|
pointer-events: none;
|
|
90
|
-
|
|
89
|
+
|
|
91
90
|
button {
|
|
92
91
|
color: $neutral-500;
|
|
93
92
|
}
|
|
94
93
|
}
|
|
95
94
|
}
|
|
96
|
-
|
|
97
95
|
|
|
98
96
|
.pagination-wrapper {
|
|
99
97
|
display: flex;
|
|
@@ -101,14 +99,13 @@
|
|
|
101
99
|
margin: 0;
|
|
102
100
|
position: relative;
|
|
103
101
|
|
|
104
|
-
|
|
105
|
-
|
|
106
102
|
.pagination-item {
|
|
107
103
|
list-style: none;
|
|
108
104
|
@include Ib-H4-medium;
|
|
109
105
|
margin: 0 5px;
|
|
110
106
|
height: 36px;
|
|
111
|
-
width: 36px;
|
|
107
|
+
min-width: 36px;
|
|
108
|
+
width: fit-content;
|
|
112
109
|
background: $gray-100;
|
|
113
110
|
border-radius: 4px;
|
|
114
111
|
@include Ib-H4-medium;
|
|
@@ -117,7 +114,7 @@
|
|
|
117
114
|
&.dots-left {
|
|
118
115
|
position: relative;
|
|
119
116
|
margin-left: 29px;
|
|
120
|
-
|
|
117
|
+
|
|
121
118
|
&::before {
|
|
122
119
|
content: '...';
|
|
123
120
|
position: absolute;
|
|
@@ -128,13 +125,12 @@
|
|
|
128
125
|
transform: translateX(-50%);
|
|
129
126
|
width: 14px;
|
|
130
127
|
}
|
|
131
|
-
|
|
132
128
|
}
|
|
133
129
|
|
|
134
130
|
&.dots-right {
|
|
135
131
|
position: relative;
|
|
136
132
|
margin-right: 29px;
|
|
137
|
-
|
|
133
|
+
|
|
138
134
|
&::after {
|
|
139
135
|
content: '...';
|
|
140
136
|
position: absolute;
|
|
@@ -145,7 +141,6 @@
|
|
|
145
141
|
transform: translateX(50%);
|
|
146
142
|
width: 14px;
|
|
147
143
|
}
|
|
148
|
-
|
|
149
144
|
}
|
|
150
145
|
|
|
151
146
|
&.active button {
|
|
@@ -155,7 +150,7 @@
|
|
|
155
150
|
|
|
156
151
|
button {
|
|
157
152
|
height: inherit;
|
|
158
|
-
width:
|
|
153
|
+
width: 100%;
|
|
159
154
|
border: none;
|
|
160
155
|
background: $gray-100;
|
|
161
156
|
border-radius: 4px;
|
|
@@ -171,7 +166,7 @@
|
|
|
171
166
|
color: $blue-700;
|
|
172
167
|
background: $blue-100;
|
|
173
168
|
}
|
|
174
|
-
|
|
169
|
+
|
|
175
170
|
&:active {
|
|
176
171
|
border-color: transparent;
|
|
177
172
|
color: $blue-900;
|
|
@@ -181,7 +176,6 @@
|
|
|
181
176
|
&:focus {
|
|
182
177
|
@include focus(2px);
|
|
183
178
|
}
|
|
184
|
-
|
|
185
179
|
}
|
|
186
180
|
}
|
|
187
181
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"value":{"id":"kGkbBgDq7MDeYMZ2Nc7gM","lastUsed":1690197070909},"type":"Object","created":"2023-07-24T11:11:10.910Z","ttl":0}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"value":1690197067886,"type":"Number","created":"2023-07-24T11:11:07.886Z","ttl":0}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"value":{"success":true,"cached":false,"data":{"latest":{"version":"7.1.0","info":{"plain":"Storybook 7.1 is here! 🎉\n\n- 🏄♀️ [**In-app onboarding**](https://storybook.js.org/blog/in-app-tour-for-new-users/) to help you set up new projects\n- 💅 [**Zero-config styling support**](https://storybook.js.org/blog/zero-config-support-for-tailwind-mui-styled-components-and-emotion/) for major libraries\n- 🗃️ [**API reference documentation**](https://storybook.js.org/blog/docs-updates/) and TypeScript-first snippets\n- 📇 [**Table of Contents for docs**](https://storybook.js.org/docs/7.1/react/writing-docs/autodocs#generate-a-table-of-contents)\n- 🎨 [**Figma** **Design addon**](https://github.com/storybookjs/addon-designs) official support\n- 📗 **Vue3 source snippets** and reactivity improvements\n- 💯 **Hundreds more** fixes and improvements\n\n7.1 contains hundreds more fixes, features, and tweaks. Browse the changelogs matching `7.1.0-alpha.*`, `7.1.0-beta.*`, and `7.1.0-rc.*` for the full list of changes.\n\nFor a better upgrade experience, please use one of the following commands:\n\nnpm or yarn 1:\n`npx storybook@latest upgrade`\n\npnpm:\n`pnpm dlx storybook@latest upgrade`\n\nyarn berry:\n`yarn dlx storybook@latest upgrade`"}},"next":{"version":"7.2.0-alpha.0","info":{"plain":"- Angular: Make enableProdMode optional - [#23489](https://github.com/storybookjs/storybook/pull/23489), thanks [@valentinpalkovic](https://github.com/valentinpalkovic)!\n- Features: For 7.2 - [#23446](https://github.com/storybookjs/storybook/pull/23446), thanks [@ndelangen](https://github.com/ndelangen)!\n- Svelte-vite: Improve error when sveltekit plugins found in non-sveltekit projects - [#23472](https://github.com/storybookjs/storybook/pull/23472), thanks [@yannbf](https://github.com/yannbf)!\n- Svelte-vite: Remove unused import - [#23475](https://github.com/storybookjs/storybook/pull/23475), thanks [@yannbf](https://github.com/yannbf)!"}}},"time":1690197066594},"type":"Object","created":"2023-07-24T11:11:07.118Z","ttl":0}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"type":"Undefined","created":"2023-07-24T11:11:10.513Z","ttl":0}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"value":{"boot":{"body":{"eventType":"boot","eventId":"T80WNSRsoCZkPnq1TWlUc","sessionId":"kGkbBgDq7MDeYMZ2Nc7gM","payload":{"eventType":"dev"},"context":{"inCI":false,"isTTY":true,"cliVersion":"7.1.0"}},"timestamp":1690197067119},"version-update":{"body":{"eventType":"version-update","eventId":"VdTA2WWuKA17-2gX6E_Qe","sessionId":"kGkbBgDq7MDeYMZ2Nc7gM","metadata":{"generatedAt":1690197067920,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":true,"hasStorybookEslint":true,"refCount":0,"packageManager":{"type":"npm","version":"9.5.1"},"features":{"storyStoreV7":true},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/vue3-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/vue3","storybookVersion":"7.1.0","storybookVersionSpecifier":"^7.1.0","language":"javascript","storybookPackages":{"@storybook/addon-actions":{"version":"7.1.0"},"@storybook/testing-library":{"version":"0.2.0"},"@storybook/vue3":{"version":"7.1.0"},"@storybook/vue3-vite":{"version":"7.1.0"},"eslint-plugin-storybook":{"version":"0.6.13"},"storybook":{"version":"7.1.0"}},"addons":{"@storybook/addon-docs":{"version":"7.1.0"},"@storybook/addon-links":{"version":"7.1.0"},"@storybook/addon-essentials":{"version":"7.1.0"},"@storybook/addon-interactions":{"version":"7.1.0"},"@storybook/addon-a11y":{"version":"7.1.0"},"@storybook/addon-mdx-gfm":{"version":"7.1.0"}}},"payload":{},"context":{"inCI":false,"isTTY":true,"cliVersion":"7.1.0","anonymousId":"b7c813caa4cfbc9fa043b566d041be374aa5a7a7880900529f85a724d5eed236"}},"timestamp":1690197068558},"error":{"body":{"eventType":"error","eventId":"uf6Jupc1GJu7nnLdu29Oa","sessionId":"kGkbBgDq7MDeYMZ2Nc7gM","metadata":{"generatedAt":1690197067920,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":true,"hasStorybookEslint":true,"refCount":0,"packageManager":{"type":"npm","version":"9.5.1"},"features":{"storyStoreV7":true},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/vue3-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/vue3","storybookVersion":"7.1.0","storybookVersionSpecifier":"^7.1.0","language":"javascript","storybookPackages":{"@storybook/addon-actions":{"version":"7.1.0"},"@storybook/testing-library":{"version":"0.2.0"},"@storybook/vue3":{"version":"7.1.0"},"@storybook/vue3-vite":{"version":"7.1.0"},"eslint-plugin-storybook":{"version":"0.6.13"},"storybook":{"version":"7.1.0"}},"addons":{"@storybook/addon-docs":{"version":"7.1.0"},"@storybook/addon-links":{"version":"7.1.0"},"@storybook/addon-essentials":{"version":"7.1.0"},"@storybook/addon-interactions":{"version":"7.1.0"},"@storybook/addon-a11y":{"version":"7.1.0"},"@storybook/addon-mdx-gfm":{"version":"7.1.0"}}},"payload":{"eventType":"dev","error":{"stack":"Error: Could not create/find cache directory\n at $SNIP/node_modules/@storybook/builder-manager/dist/index.js:1:3584\n at Array.map (<anonymous>)\n at wrapManagerEntries ($SNIP/node_modules/@storybook/builder-manager/dist/index.js:1:3422)\n at getConfig ($SNIP/node_modules/@storybook/builder-manager/dist/index.js:1:5992)\n at async Promise.all (index 1)\n at async getData ($SNIP/node_modules/@storybook/builder-manager/dist/index.js:1:4512)\n at async starter ($SNIP/node_modules/@storybook/builder-manager/dist/index.js:1:7556)\n at async Module.start ($SNIP/node_modules/@storybook/builder-manager/dist/index.js:1:9838)\n at async storybookDevServer ($SNIP/node_modules/@storybook/core-server/dist/index.js:113:6556)\n at async buildDevStandalone ($SNIP/node_modules/@storybook/core-server/dist/index.js:128:2592)","message":"Could not create/find cache directory"},"errorHash":"fcc953fd5b0e3b47f04fc4db6f5be2f939c44fa04809beb08ae2f3666c59a812"},"context":{"inCI":false,"isTTY":true,"cliVersion":"7.1.0","anonymousId":"b7c813caa4cfbc9fa043b566d041be374aa5a7a7880900529f85a724d5eed236"}},"timestamp":1690197070912}},"type":"Object","created":"2023-07-24T11:11:10.912Z","ttl":0}
|