vueless 0.0.825-beta.13 → 0.0.825-beta.15

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.825-beta.13",
3
+ "version": "0.0.825-beta.15",
4
4
  "license": "MIT",
5
5
  "description": "Vue Styleless UI Component Library, powered by Tailwind CSS.",
6
6
  "keywords": [
package/tailwind.css CHANGED
@@ -87,10 +87,27 @@
87
87
  --color-grayscale-lifted: var(--vl-grayscale-lifted);
88
88
  --color-grayscale-accented: var(--vl-grayscale-accented);
89
89
 
90
- /* Border radius rounding values */
91
- --radius-small: var(--vl-rounding-sm);
92
- --radius-medium: var(--vl-rounding-md);
93
- --radius-large: var(--vl-rounding-lg);
90
+ /* Border colors */
91
+ --border-color-default: var(--vl-border);
92
+ --border-color-lifted: var(--vl-border-lifted);
93
+ --border-color-accented: var(--vl-border-accented);
94
+ --border-color-muted: var(--vl-border-muted);
95
+
96
+ /* Background colors
97
+ TODO: find how to declare like below
98
+ --bg-color-default: var(--vl-bg);
99
+ --bg-color-lifted: var(--vl-bg-lifted);
100
+ --bg-color-accented: var(--vl-bg-accented);
101
+ --bg-color-muted: var(--vl-bg-muted);
102
+ --bg-color-inverted: var(--vl-bg-inverted);
103
+ */
104
+
105
+ /* Text colors */
106
+ --text-color-default: var(--vl-text);
107
+ --text-color-lifted: var(--vl-text-lifted);
108
+ --text-color-accented: var(--vl-text-accented);
109
+ --text-color-muted: var(--vl-text-muted);
110
+ --text-color-inverted: var(--vl-text-inverted);
94
111
 
95
112
  /* Text size */
96
113
  --text-tiny: var(--vl-text-xs);
@@ -102,6 +119,11 @@
102
119
  --text-large: var(--vl-text-lg);
103
120
  --text-large--line-height: calc(1 / var(--vl-text-lg));
104
121
 
122
+ /* Border radius rounding values */
123
+ --radius-small: var(--vl-rounding-sm);
124
+ --radius-medium: var(--vl-rounding-md);
125
+ --radius-large: var(--vl-rounding-lg);
126
+
105
127
  /* Mobile safe area spaceing. */
106
128
  --spacing-safe-top: "env(safe-area-inset-top)";
107
129
  --spacing-safe-bottom: "env(safe-area-inset-bottom)";
@@ -109,47 +131,7 @@
109
131
  --spacing-safe-right: "env(safe-area-inset-right)";
110
132
  }
111
133
 
112
- /* ------ Text color utilities ------ */
113
-
114
- @utility text-default {
115
- color: var(--vl-text);
116
- }
117
-
118
- @utility text-lifted {
119
- color: var(--vl-text-lifted);
120
- }
121
-
122
- @utility text-accented {
123
- color: var(--vl-text-accented);
124
- }
125
-
126
- @utility text-muted {
127
- color: var(--vl-text-muted);
128
- }
129
-
130
- @utility text-inverted {
131
- color: var(--vl-text-inverted);
132
- }
133
-
134
- /* ------ Border color utilities ------ */
135
-
136
- @utility border-default {
137
- border-color: var(--vl-border);
138
- }
139
-
140
- @utility border-lifted {
141
- border-color: var(--vl-border-lifted);
142
- }
143
-
144
- @utility border-accented {
145
- border-color: var(--vl-border-accented);
146
- }
147
-
148
- @utility border-muted {
149
- border-color: var(--vl-border-muted);
150
- }
151
-
152
- /* ------ Background color utilities ------ */
134
+ /* Background color utilities */
153
135
 
154
136
  @utility bg-default {
155
137
  background-color: var(--vl-bg);
@@ -167,10 +149,6 @@
167
149
  background-color: var(--vl-bg-muted);
168
150
  }
169
151
 
170
- @utility bg-inverted {
171
- background-color: var(--vl-bg-inverted);
172
- }
173
-
174
152
  /* ------ Outline width utilities ------ */
175
153
 
176
154
  @utility outline-small {
@@ -64,7 +64,7 @@ export interface Props {
64
64
  disabled?: boolean;
65
65
 
66
66
  /**
67
- * Make the Button fill the width with its container.
67
+ * Make the Button expand to fill the entire width of its container.
68
68
  */
69
69
  block?: boolean;
70
70
 
@@ -1,11 +1,12 @@
1
1
  export default /*tw*/ {
2
2
  link: {
3
3
  base: `
4
- inline-block cursor-pointer !leading-none rounded-small transition
4
+ inline-block cursor-pointer !leading-none transition
5
5
  text-{color} decoration-{color} underline-offset-4
6
6
  hover:text-{color}-lifted hover:decoration-{color}-lifted
7
7
  active:text-{color}-accented active:decoration-{color}-accented
8
- focus-visible:outline-medium focus-visible:outline-offset-4 focus-visible:outline-{color}
8
+ focus-visible:outline-medium focus-visible:rounded-small
9
+ focus-visible:outline-offset-4 focus-visible:outline-{color}
9
10
  `,
10
11
  variants: {
11
12
  size: {
@@ -12,7 +12,7 @@ export interface ULinkSlotProps {
12
12
 
13
13
  export interface Props {
14
14
  /**
15
- * Button label.
15
+ * Link label.
16
16
  */
17
17
  label?: string;
18
18
 
@@ -91,7 +91,7 @@ export interface Props {
91
91
  disabled?: boolean;
92
92
 
93
93
  /**
94
- * Make the Button fill the width with its container.
94
+ * Make the Link expand to fill the entire width of its container.
95
95
  */
96
96
  block?: boolean;
97
97
 
@@ -52,7 +52,7 @@ export interface Props {
52
52
  disabled?: boolean;
53
53
 
54
54
  /**
55
- * Make the toggle fill the width with its container.
55
+ * Make the Toggle expand to fill the entire width of its container.
56
56
  */
57
57
  block?: boolean;
58
58
 
@@ -1,16 +1,16 @@
1
1
  export default /*tw*/ {
2
2
  wrapper: {
3
- base: "flex w-full",
3
+ base: "flex",
4
4
  variants: {
5
5
  reverse: {
6
- false: "flex-col md:flex-row",
7
- true: "flex-col-reverse md:flex-row-reverse",
6
+ false: "flex-row",
7
+ true: "flex-row-reverse",
8
8
  },
9
9
  wrap: {
10
10
  true: "flex-wrap",
11
11
  },
12
- noMobile: {
13
- true: "flex-row",
12
+ block: {
13
+ true: "w-full",
14
14
  },
15
15
  gap: {
16
16
  none: "gap-0",
@@ -56,7 +56,7 @@ export default /*tw*/ {
56
56
  content: "start",
57
57
  justify: "start",
58
58
  wrap: false,
59
+ block: false,
59
60
  reverse: false,
60
- noMobile: false,
61
61
  },
62
62
  };
@@ -128,22 +128,6 @@ Justify.parameters = {
128
128
  },
129
129
  };
130
130
 
131
- export const NoMobile = DefaultTemplate.bind({});
132
- NoMobile.args = {
133
- noMobile: true,
134
- slotTemplate: `
135
- <UInput label="First Name" />
136
- <UInput label="Last Name" />
137
- `,
138
- };
139
- NoMobile.parameters = {
140
- docs: {
141
- description: {
142
- story: "Disables mobile adaptivity.",
143
- },
144
- },
145
- };
146
-
147
131
  export const SlotDefault = DefaultTemplate.bind({});
148
132
  SlotDefault.args = {
149
133
  slotTemplate: `
@@ -45,9 +45,9 @@ export interface Props {
45
45
  wrap?: boolean;
46
46
 
47
47
  /**
48
- * Disables mobile adaptivity.
48
+ * Make the Row expand to fill the entire width of its container.
49
49
  */
50
- noMobile?: boolean;
50
+ block?: boolean;
51
51
 
52
52
  /**
53
53
  * Component config object.
@@ -9,7 +9,6 @@ export default /*tw*/ {
9
9
  `,
10
10
  },
11
11
  overlayTransition: {
12
- enterFromClass: "scale-110 transform",
13
12
  leaveActiveClass: "scale-110 transform",
14
13
  },
15
14
  nestedLoader: "{ULoader}",
@@ -36,7 +36,7 @@ export interface Props {
36
36
  scrollable?: boolean;
37
37
 
38
38
  /**
39
- * Make the Tabs fill the width with its container.
39
+ * Make the Tabs expand to fill the entire width of its container.
40
40
  */
41
41
  block?: boolean;
42
42
 
@@ -4,7 +4,7 @@ export default /*tw*/ {
4
4
  font-normal leading-normal
5
5
  [&_b]:font-bold [&_i]:italic [&_p]:font-normal
6
6
  [&_a:not([class])]:underline [&_a:not([class])]:underline-offset-4
7
- [&_a:not([class]):hover]:no-underline [&_a:not([class])]:font-bold
7
+ [&_a:not([class]):hover]:no-underline [&_a:not([class])]:font-medium
8
8
  [&_ul]:font-normal [&_ol]:font-normal
9
9
  [&_ul]:leading-normal [&_ol]:leading-normal
10
10
  [&_ul]:list-disc [&_ol]:list-decimal