vueless 0.0.515 → 0.0.517

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vueless",
3
- "version": "0.0.515",
3
+ "version": "0.0.517",
4
4
  "license": "MIT",
5
5
  "description": "Vue Styleless UI Component Library, powered by Tailwind CSS.",
6
6
  "keywords": [
@@ -103,7 +103,7 @@ onMounted(() => {
103
103
  <template #left>
104
104
  <UIcon
105
105
  internal
106
- size="xs"
106
+ size="2xs"
107
107
  color="gray"
108
108
  :name="config.defaults.backIcon"
109
109
  v-bind="backLinkIconAttrs"
@@ -36,8 +36,8 @@ export default /*tw*/ {
36
36
  },
37
37
  },
38
38
  header: "flex items-start justify-between mb-4 md:mb-6",
39
- headerLeft: "flex items-center space-x-4",
40
- headerLeftFallback: "flex flex-col",
39
+ headerLeft: "flex items-center gap-4",
40
+ headerLeftFallback: "flex flex-col gap-0.5",
41
41
  backLink: "{ULink}",
42
42
  backLinkIcon: "{UIcon}",
43
43
  title: "{UHeader}",
@@ -24,6 +24,7 @@
24
24
  :item-key="valueKey"
25
25
  :group="{ name: group }"
26
26
  handle=".icon-drag"
27
+ :animation="animationDuration"
27
28
  :ghost-class="config.draggableGhost"
28
29
  :drag-class="config.draggableDrag"
29
30
  :data-test="dataTest"
@@ -49,6 +50,7 @@
49
50
  <UIcon
50
51
  internal
51
52
  color="gray"
53
+ variant="light"
52
54
  :size="iconSize"
53
55
  :name="config.defaults.dragIcon"
54
56
  v-bind="dragIconAttrs"
@@ -10,7 +10,7 @@ export default /*tw*/ {
10
10
  group-last/item-wrapper:border-b-0 group-[]/nested:group-last/item-wrapper:border-b
11
11
  py-4 space-x-4 flex flex-auto items-center justify-between
12
12
  `,
13
- dragIcon: "{UIcon} icon-drag cursor-move opacity-100 fill-gray-400 md:fill-gray-500",
13
+ dragIcon: "{UIcon} icon-drag cursor-move opacity-100",
14
14
  label: {
15
15
  base: "font-normal text-gray-900 flex-auto pt-px",
16
16
  variants: {
@@ -1,11 +1,21 @@
1
1
  import useUI from "../composables/useUI.ts";
2
2
 
3
3
  import defaultConfig from "./config.js";
4
+ import { computed } from "vue";
4
5
 
5
6
  export default function useAttrs(props) {
6
- const { config, getKeysAttrs, hasSlotContent } = useUI(defaultConfig, () => props.config);
7
+ const { config, getKeysAttrs, getExtendingKeysClasses, hasSlotContent } = useUI(
8
+ defaultConfig,
9
+ () => props.config,
10
+ );
7
11
 
8
- const keysAttrs = getKeysAttrs();
12
+ const extendingKeysClasses = getExtendingKeysClasses(["label"]);
13
+
14
+ const keysAttrs = getKeysAttrs({}, [], {
15
+ labelCrossed: {
16
+ base: computed(() => [extendingKeysClasses.label.value]),
17
+ },
18
+ });
9
19
 
10
20
  return {
11
21
  config,
@@ -30,7 +30,7 @@ export default /*tw*/ {
30
30
  textarea: {
31
31
  base: `
32
32
  p-0 block w-full bg-transparent border-none !leading-none font-normal text-gray-900
33
- placeholder:font-normal placeholder:text-gray-400
33
+ placeholder:text-gray-400 placeholder:font-normal placeholder:leading-none
34
34
  focus:border-none focus:outline-none focus:ring-0
35
35
  `,
36
36
  variants: {
@@ -61,7 +61,7 @@ const mathSign = computed(() => {
61
61
 
62
62
  const preparedMoney = computed(() => {
63
63
  return separatedMoney(
64
- Math.abs(props.value),
64
+ Math.abs(props.value || 0),
65
65
  props.minFractionDigits,
66
66
  props.maxFractionDigits,
67
67
  props.decimalSeparator,
@@ -17,13 +17,13 @@ export default /*tw*/ {
17
17
  sum: {
18
18
  variants: {
19
19
  size: {
20
- sm: "text-xs",
21
- md: "text-sm",
22
- lg: "text-base",
23
- xl: "text-lg",
24
- "2xl": "text-xl",
25
- "3xl": "text-2xl",
26
- "4xl": "text-3xl",
20
+ xs: "text-xs",
21
+ sm: "text-sm",
22
+ md: "text-base",
23
+ lg: "text-lg",
24
+ xl: "text-xl",
25
+ "2xl": "text-2xl",
26
+ "3xl": "text-3xl",
27
27
  },
28
28
  planned: {
29
29
  true: "opacity-75 before:content-['('] after:content-[')']",
@@ -38,12 +38,11 @@ export default /*tw*/ {
38
38
  size: {
39
39
  xs: "text-2xs",
40
40
  sm: "text-xs",
41
- md: "text-xs",
42
- lg: "text-sm",
43
- xl: "text-base",
44
- "2xl": "text-lg",
45
- "3xl": "text-xl",
46
- "4xl": "text-2xl",
41
+ md: "text-sm",
42
+ lg: "text-base",
43
+ xl: "text-lg",
44
+ "2xl": "text-xl",
45
+ "3xl": "text-2xl",
47
46
  },
48
47
  },
49
48
  },
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "framework": "vue",
3
3
  "name": "vueless",
4
- "version": "0.0.515",
4
+ "version": "0.0.517",
5
5
  "contributions": {
6
6
  "html": {
7
7
  "description-markup": "markdown",