vueless 0.0.106 → 0.0.107

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.
@@ -8,7 +8,7 @@ import calendarConfig from "../../ui.form-calendar/configs/default.config";
8
8
  import datepickerConfig from "../../ui.form-date-picker/configs/default.config";
9
9
  import datepickerRangeConfig from "../../ui.form-date-picker-range/configs/default.config";
10
10
  import dataListConfig from "../../ui.data-list/configs/default.config";
11
- import notifyDefaultConfig from "../../ui.notify/configs/default.config";
11
+ import notifyDefaultConfig from "../../ui.text-notify/configs/default.config";
12
12
 
13
13
  export default {
14
14
  USelect: selectConfig.i18n,
package/index.js CHANGED
@@ -23,7 +23,7 @@ export {
23
23
  clearAllNotifications,
24
24
  setDelayedNotify,
25
25
  getDelayedNotify,
26
- } from "./ui.notify/services";
26
+ } from "./ui.text-notify/services";
27
27
 
28
28
  export function createVueless(options = {}) {
29
29
  const i18n = createLocale(options.i18n);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vueless",
3
- "version": "0.0.106",
3
+ "version": "0.0.107",
4
4
  "license": "MIT",
5
5
  "description": "Vue Styleless Component Framework.",
6
6
  "homepage": "https://vueless.com",
@@ -17,9 +17,9 @@
17
17
  "release:patch": "release-it patch --ci --npm.publish",
18
18
  "release:minor": "release-it minor --ci --npm.publish --git.tag --github.release",
19
19
  "release:major": "release-it major --ci --npm.publish --git.tag --github.release",
20
- "sb:dev-full": "STORYBOOK_FULL=1 storybook dev -p 6006 --no-open",
21
- "sb:dev": "storybook dev -p 6006 --docs --no-open",
22
- "sb:build": "storybook build --docs",
20
+ "sb:dev-full": "npx @vueless/web-types && node prepare.icons && STORYBOOK_FULL=1 storybook dev -p 6006 --no-open",
21
+ "sb:dev": "npx @vueless/web-types && node prepare.icons && storybook dev -p 6006 --docs --no-open",
22
+ "sb:build": "npx @vueless/web-types && node prepare.icons && storybook build --docs",
23
23
  "sb:preview": "vite preview --host --outDir=storybook-static",
24
24
  "package:prepare": "npx @vueless/web-types && node prepare.icons && rm -rf dist && mkdir -p dist && cp -r src/. package.json LICENSE web-types.json README.md dist/ && node prepare.dist"
25
25
  },
@@ -1,5 +1,6 @@
1
1
  <template>
2
2
  <div :data-cy="dataCy" v-bind="wrapperAttrs">
3
+ <!-- @slot Use it to add UToggleItem directly. -->
3
4
  <slot>
4
5
  <UToggleItem
5
6
  v-for="(item, index) in options"
@@ -1,34 +1,37 @@
1
1
  <template>
2
- <ULabel :error="error" :align="labelAlign" :label="label" :size="size" v-bind="labelAttrs">
2
+ <ULabel :label="label" :align="labelAlign" :error="error" :size="size" v-bind="labelAttrs">
3
3
  <div ref="dropZoneRef" :ondrop="onDrop" v-bind="dropzoneWrapperAttrs">
4
- <UText :size="nestedComponentSize" v-bind="descriptionAttrs" :html="description" />
4
+ <UText :size="nestedComponentSize" :html="description" v-bind="descriptionAttrs" />
5
5
 
6
6
  <div v-bind="contentWrapperAttrs">
7
+ <!-- @slot Use it to add something before placeholder. -->
7
8
  <slot name="left" />
9
+
8
10
  <span v-if="!isValue" v-bind="placeholderAttrs" v-text="currentLocale.noFile" />
11
+
9
12
  <div v-else v-bind="fileListAttrs">
10
13
  <template v-if="props.multiple">
11
14
  <span
12
15
  v-for="(file, idx) in currentFiles"
13
- v-bind="selectedItemAttrs"
14
16
  :key="idx"
17
+ v-bind="selectedItemAttrs"
15
18
  v-text="file.name"
16
19
  />
17
20
  </template>
21
+
18
22
  <span v-else v-bind="selectedItemAttrs" v-text="currentFiles.name" />
19
23
  </div>
20
24
 
21
25
  <div v-bind="buttonWrapperAttrs">
22
26
  <template v-if="Array.isArray(currentFiles) || !currentFiles">
23
27
  <UButton
24
- class="hover:cursor-pointer"
25
- :label="currentLocale.uploadFile"
26
- variant="thirdary"
27
28
  filled
28
- :size="nestedComponentSize"
29
- v-bind="buttonAttrs"
30
29
  tag="label"
31
30
  :for="id"
31
+ variant="thirdary"
32
+ :size="nestedComponentSize"
33
+ :label="currentLocale.uploadFile"
34
+ v-bind="buttonAttrs"
32
35
  >
33
36
  <template #right>
34
37
  <UIcon
@@ -43,20 +46,21 @@
43
46
  <input
44
47
  :id="id"
45
48
  ref="fileInputRef"
46
- :multiple="multiple"
47
49
  type="file"
48
50
  :accept="accept"
51
+ :multiple="multiple"
49
52
  v-bind="inputAttrs"
50
53
  @change="onChangeFile"
51
54
  />
52
55
  </template>
56
+
53
57
  <UIcon
54
58
  v-if="isValue"
55
- interactive
59
+ pill
56
60
  internal
61
+ interactive
57
62
  :size="nestedComponentSize"
58
63
  :name="config.clearIconName"
59
- pill
60
64
  v-bind="clearIconAttrs"
61
65
  @click="onClickResetFiles"
62
66
  />
@@ -4,7 +4,7 @@ import URow from "../ui.container-row";
4
4
  import { getArgTypes } from "../service.storybook";
5
5
 
6
6
  export default {
7
- id: "9020",
7
+ id: "9010",
8
8
  title: "Loaders and Skeletons / Loader",
9
9
  component: ULoader,
10
10
  argTypes: {
@@ -6,7 +6,7 @@ import { useLoaderRendering } from "./composables/useLoaderRendering";
6
6
  import { getArgTypes } from "../service.storybook";
7
7
 
8
8
  export default {
9
- id: "9023",
9
+ id: "9030",
10
10
  title: "Loaders and Skeletons / Loader rendering",
11
11
  component: ULoaderRendering,
12
12
  argTypes: {
@@ -21,7 +21,7 @@ const DefaultTemplate = (args) => ({
21
21
  },
22
22
  template: `
23
23
  <div>
24
- <ULoaderRendering v-bind="args" class="!static !w-full" />
24
+ <ULoaderRendering v-bind="args" class="!static !w-full" />
25
25
  </div>
26
26
  `,
27
27
  });
@@ -43,7 +43,7 @@ const LoadingTemplate = (args) => ({
43
43
  <UButton label="Toggle loading" @click="toggleLoading"/>
44
44
  </div>
45
45
  <div>
46
- <ULoaderRendering v-bind="args" class="!static !w-full" />
46
+ <ULoaderRendering v-bind="args" class="!static !w-full" />
47
47
  </div>
48
48
  `,
49
49
  });
@@ -1,5 +1,5 @@
1
- import useUI from "vueless/composable.ui";
2
- import { cva } from "vueless/service.ui";
1
+ import useUI from "../../composable.ui";
2
+ import { cva } from "../../service.ui";
3
3
 
4
4
  import defaultConfig from "../configs/default.config";
5
5
  import { computed } from "vue";
@@ -1,13 +1,13 @@
1
1
  import ULoaderTop from "../ui.loader-top";
2
2
  import UButton from "../ui.button";
3
3
 
4
- import { useLoaderTop } from "../ui.loader-top/composables/useLoaderTop";
5
- import { loaderTopOff, loaderTopOn } from "../ui.loader-top/services/loaderTop.service";
4
+ import { useLoaderTop } from "./composables/useLoaderTop";
5
+ import { loaderTopOff, loaderTopOn } from "./services/loaderTop.service";
6
6
 
7
7
  import { getArgTypes } from "../service.storybook";
8
8
 
9
9
  export default {
10
- id: "9024",
10
+ id: "9020",
11
11
  title: "Loaders and Skeletons / Loader top",
12
12
  component: ULoaderTop,
13
13
  argTypes: {
@@ -3,7 +3,7 @@ import { getArgTypes } from "../service.storybook";
3
3
  import UPagination from "../ui.navigation-pagination";
4
4
 
5
5
  export default {
6
- id: "8040",
6
+ id: "8050",
7
7
  title: "Navigation / Pagination",
8
8
  component: UPagination,
9
9
  args: {
@@ -4,8 +4,8 @@ import UButton from "../ui.button/index.vue";
4
4
  import { getArgTypes } from "../service.storybook";
5
5
 
6
6
  export default {
7
- id: "9015",
8
- title: "Other / Progress",
7
+ id: "8040",
8
+ title: "Navigation / Progress",
9
9
  component: UProgress,
10
10
  argTypes: {
11
11
  ...getArgTypes(UProgress.name),
@@ -4,7 +4,7 @@ import URow from "../ui.container-row";
4
4
  import { getArgTypes } from "../service.storybook";
5
5
 
6
6
  export default {
7
- id: "9010",
7
+ id: "100010",
8
8
  title: "Other / Dot",
9
9
  component: UDot,
10
10
  argTypes: {
@@ -245,7 +245,6 @@ slotLeft.args = {
245
245
  <UIcon
246
246
  :src="icons.Debit"
247
247
  size="xs"
248
- color="grayscale"
249
248
  />
250
249
  </template>
251
250
  `,
@@ -1,12 +1,13 @@
1
- import { notify } from "../ui.notify/services";
1
+ import { notify } from "./services";
2
2
 
3
- import UNotify from "../ui.notify";
3
+ import UNotify from "../ui.text-notify";
4
4
  import UButton from "../ui.button";
5
5
 
6
6
  import { getArgTypes } from "../service.storybook";
7
7
 
8
8
  export default {
9
- title: "Other / Notify",
9
+ id: "4035",
10
+ title: "Text & Content / Notify",
10
11
  component: UNotify,
11
12
  args: {
12
13
  type: "success",
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "framework": "vue",
3
3
  "name": "vueless",
4
- "version": "0.0.106",
4
+ "version": "0.0.107",
5
5
  "contributions": {
6
6
  "html": {
7
7
  "description-markup": "markdown",
@@ -3550,7 +3550,8 @@
3550
3550
  ],
3551
3551
  "slots": [
3552
3552
  {
3553
- "name": "left"
3553
+ "name": "left",
3554
+ "description": "Use it to add something before placeholder."
3554
3555
  }
3555
3556
  ],
3556
3557
  "source": {
@@ -5128,7 +5129,7 @@
5128
5129
  }
5129
5130
  ],
5130
5131
  "source": {
5131
- "module": "vueless/ui.notify/index.vue",
5132
+ "module": "vueless/ui.text-notify/index.vue",
5132
5133
  "symbol": "default"
5133
5134
  }
5134
5135
  },
@@ -5472,7 +5473,7 @@
5472
5473
  }
5473
5474
  ],
5474
5475
  "source": {
5475
- "module": "vueless/ui.progress/index.vue",
5476
+ "module": "vueless/ui.navigation-progress/index.vue",
5476
5477
  "symbol": "default"
5477
5478
  }
5478
5479
  },
@@ -7031,7 +7032,8 @@
7031
7032
  ],
7032
7033
  "slots": [
7033
7034
  {
7034
- "name": "default"
7035
+ "name": "default",
7036
+ "description": "Use it to add UToggleItem directly."
7035
7037
  }
7036
7038
  ],
7037
7039
  "source": {
File without changes
File without changes
File without changes