vueless 0.0.416 → 0.0.417

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.416",
3
+ "version": "0.0.417",
4
4
  "license": "MIT",
5
5
  "description": "Vue Styleless UI Component Library, powered by Tailwind CSS.",
6
6
  "keywords": [
@@ -1,54 +1,45 @@
1
1
  <template>
2
2
  <div ref="wrapperRef" tabindex="1" v-bind="wrapperAttrs" @keydown="onKeydown">
3
3
  <div v-bind="navigationAttrs">
4
- <Teleport
5
- v-if="rangeSwitchViewContainerRef"
6
- :to="rangeSwitchViewContainerRef"
7
- :disabled="!range"
4
+ <UButton
5
+ square
6
+ no-ring
7
+ size="sm"
8
+ color="grayscale"
9
+ variant="thirdary"
10
+ :left-icon="config.defaults.prevIcon"
11
+ v-bind="nextPrevButtonAttrs"
12
+ @mousedown.prevent.capture
13
+ @click="onClickPrevButton"
14
+ />
15
+
16
+ <UButton
17
+ no-ring
18
+ size="sm"
19
+ color="grayscale"
20
+ variant="thirdary"
21
+ v-bind="viewSwitchButtonAttrs"
22
+ @mousedown.prevent.capture
23
+ @click="onClickViewSwitch"
8
24
  >
9
- <UButton
10
- square
11
- no-ring
12
- size="sm"
13
- variant="thirdary"
14
- :right-icon="isCurrentView.day ? config.defaults.viewSwitchIcon : undefined"
15
- v-bind="viewSwitchButtonAttrs"
16
- @mousedown.prevent.capture
17
- @click="onClickViewSwitch"
18
- >
19
- <template v-if="isCurrentView.day">
20
- {{ viewSwitchLabel.month }} {{ viewSwitchLabel.year }}
21
- </template>
22
- <template v-if="isCurrentView.month">{{ viewSwitchLabel.year }}</template>
23
- <template v-if="isCurrentView.year">{{ viewSwitchLabel.yearsRange }}</template>
24
- </UButton>
25
- </Teleport>
26
-
27
- <div v-bind="nextPrevWrapperAttrs">
28
- <UButton
29
- square
30
- no-ring
31
- size="sm"
32
- variant="thirdary"
33
- :left-icon="config.defaults.prevIcon"
34
- v-bind="nextPrevButtonAttrs"
35
- @mousedown.prevent.capture
36
- @click="onClickPrevButton"
37
- />
25
+ <template v-if="isCurrentView.day">
26
+ {{ viewSwitchLabel.month }} {{ viewSwitchLabel.year }}
27
+ </template>
28
+ <template v-if="isCurrentView.month">{{ viewSwitchLabel.year }}</template>
29
+ <template v-if="isCurrentView.year">{{ viewSwitchLabel.yearsRange }}</template>
30
+ </UButton>
38
31
 
39
- <div ref="rangeSwitchViewContainerRef" />
40
-
41
- <UButton
42
- square
43
- no-ring
44
- size="sm"
45
- variant="thirdary"
46
- :left-icon="config.defaults.nextIcon"
47
- v-bind="nextPrevButtonAttrs"
48
- @mousedown.prevent.capture
49
- @click="onClickNextButton"
50
- />
51
- </div>
32
+ <UButton
33
+ square
34
+ no-ring
35
+ size="sm"
36
+ color="grayscale"
37
+ variant="thirdary"
38
+ :left-icon="config.defaults.nextIcon"
39
+ v-bind="nextPrevButtonAttrs"
40
+ @mousedown.prevent.capture
41
+ @click="onClickNextButton"
42
+ />
52
43
  </div>
53
44
 
54
45
  <DayView
@@ -134,6 +125,7 @@
134
125
  square
135
126
  filled
136
127
  no-ring
128
+ color="grayscale"
137
129
  v-bind="timepickerSubmitButtonAttrs"
138
130
  @click="onClickSubmit"
139
131
  >
@@ -343,14 +335,12 @@ const {
343
335
  timepickerInputMinutesAttrs,
344
336
  timepickerInputSecondsAttrs,
345
337
  timepickerSubmitButtonAttrs,
346
- nextPrevWrapperAttrs,
347
338
  } = useAttrs(props);
348
339
 
349
340
  const wrapperRef = ref(null);
350
341
  const hoursRef = ref(null);
351
342
  const minutesRef = ref(null);
352
343
  const secondsRef = ref(null);
353
- const rangeSwitchViewContainerRef = ref(null);
354
344
 
355
345
  const activeDate = ref(null);
356
346
  const activeMonth = ref(null);
@@ -66,7 +66,7 @@
66
66
  <UButton
67
67
  v-else-if="getDayState(day).isFirstDayInRange"
68
68
  tabindex="-1"
69
- variant="thirdary"
69
+ variant="primary"
70
70
  color="brand"
71
71
  no-ring
72
72
  square
@@ -81,7 +81,7 @@
81
81
  <UButton
82
82
  v-else-if="getDayState(day).isLastDayInRange"
83
83
  tabindex="-1"
84
- variant="thirdary"
84
+ variant="primary"
85
85
  color="brand"
86
86
  no-ring
87
87
  square
@@ -169,7 +169,7 @@
169
169
  v-else-if="getDayState(day).isAnotherMonthDay"
170
170
  tabindex="-1"
171
171
  variant="thirdary"
172
- color="brand"
172
+ color="grayscale"
173
173
  no-ring
174
174
  square
175
175
  v-bind="anotherMonthDayAttrs"
@@ -183,7 +183,7 @@
183
183
  v-else-if="!getDayState(day).isSelectedDay"
184
184
  tabindex="-1"
185
185
  variant="thirdary"
186
- color="brand"
186
+ color="grayscale"
187
187
  no-ring
188
188
  square
189
189
  v-bind="dayAttrs"
@@ -151,7 +151,7 @@
151
151
  <UButton
152
152
  v-else
153
153
  variant="thirdary"
154
- color="brand"
154
+ color="grayscale"
155
155
  no-ring
156
156
  v-bind="monthAttrs"
157
157
  :disabled="dateIsOutOfRange(month, minDate, maxDate, locale, dateFormat)"
@@ -147,7 +147,7 @@
147
147
  <UButton
148
148
  v-else
149
149
  variant="thirdary"
150
- color="brand"
150
+ color="grayscale"
151
151
  no-ring
152
152
  v-bind="yearAttrs"
153
153
  :disabled="dateIsOutOfRange(year, minDate, maxDate, locale, dateFormat)"
@@ -1,21 +1,13 @@
1
1
  export default /*tw*/ {
2
- wrapper: "p-3 pb-4 w-64 border border-gray-300 rounded-dynamic bg-white shadow overflow-hidden focus:outline-none",
2
+ wrapper: "p-2 w-80 border border-gray-300 rounded-dynamic bg-white shadow overflow-hidden focus:outline-none",
3
3
  navigation: "mb-2 pb-2 border-b flex items-center justify-between",
4
- viewSwitchButton: "{UButton} -ml-3 pl-3 text-sm rounded-l-none",
5
- nextPrevWrapper: {
6
- base: "flex",
7
- variants: {
8
- range: {
9
- true: "justify-between items-center w-full",
10
- },
11
- },
12
- },
4
+ viewSwitchButton: "{UButton}",
13
5
  nextPrevButton: "{UButton}",
14
6
  dayView: "",
15
- weekDays: "grid grid-cols-7",
7
+ weekDays: "grid grid-cols-7 justify-items-center gap-1",
16
8
  weekDay: "flex size-8 items-center justify-center text-xs uppercase text-gray-500",
17
- days: "grid grid-cols-7",
18
- dateInRange: "bg-brand-100 text-brand-900 hover:!bg-brand-200 rounded-none",
9
+ days: "grid grid-cols-7 justify-items-center gap-1",
10
+ dateInRange: "bg-brand/15 !text-brand-900 hover:bg-brand/30 rounded-none",
19
11
  edgeDateInRange: "",
20
12
  firstDateInRange: "rounded-r-none",
21
13
  lastDateInRange: "rounded-l-none",
@@ -23,7 +15,7 @@ export default /*tw*/ {
23
15
  activeDate: "bg-brand-100",
24
16
  selectedDate: "",
25
17
  currentDate: "border-2 border-brand-600",
26
- day: `{UButton} size-9 w-auto`,
18
+ day: "{UButton} size-9 w-full font-normal",
27
19
  currentDay: "",
28
20
  dayInRange: "",
29
21
  currentDayInRange: "",
@@ -36,7 +28,7 @@ export default /*tw*/ {
36
28
  anotherMonthLastDayInRange: "",
37
29
  selectedDay: "",
38
30
  activeDay: "",
39
- monthView: "grid grid-cols-4 items-center justify-center",
31
+ monthView: "grid grid-cols-4 justify-items-center gap-1",
40
32
  month: "{UButton} mx-auto flex h-12 w-full",
41
33
  currentMonth: "",
42
34
  currentMonthInRange: "",
@@ -49,7 +41,7 @@ export default /*tw*/ {
49
41
  monthInRange: "",
50
42
  selectedMonth: "",
51
43
  activeMonth: "",
52
- yearView: "grid grid-cols-4 items-center justify-center",
44
+ yearView: "grid grid-cols-4 justify-items-center gap-1",
53
45
  year: "{UButton} mx-auto flex h-12 w-full",
54
46
  currentYear: "",
55
47
  currentYearInRange: "",
@@ -7,6 +7,7 @@
7
7
  filled
8
8
  no-ring
9
9
  size="xs"
10
+ color="grayscale"
10
11
  variant="thirdary"
11
12
  :label="periodButton.title"
12
13
  v-bind="periodButtonAttrs"
@@ -19,6 +20,7 @@
19
20
  filled
20
21
  no-ring
21
22
  size="xs"
23
+ color="grayscale"
22
24
  variant="thirdary"
23
25
  :label="periodButton.title"
24
26
  v-bind="periodButtonActiveAttrs"
@@ -34,6 +36,7 @@
34
36
  filled
35
37
  no-ring
36
38
  size="xs"
39
+ color="grayscale"
37
40
  variant="thirdary"
38
41
  v-bind="periodButtonAttrs"
39
42
  @click="onClickCustomRangeButton"
@@ -52,6 +55,7 @@
52
55
  filled
53
56
  no-ring
54
57
  size="xs"
58
+ color="grayscale"
55
59
  variant="thirdary"
56
60
  v-bind="periodButtonActiveAttrs"
57
61
  @click="onClickCustomRangeButton"
@@ -70,6 +74,7 @@
70
74
  filled
71
75
  no-ring
72
76
  size="xs"
77
+ color="grayscale"
73
78
  variant="thirdary"
74
79
  :label="locale.ownRange"
75
80
  :left-icon="config.defaults.ownRangeIcon"
@@ -83,6 +88,7 @@
83
88
  filled
84
89
  no-ring
85
90
  size="xs"
91
+ color="grayscale"
86
92
  variant="thirdary"
87
93
  :label="locale.ownRange"
88
94
  :left-icon="config.defaults.ownRangeIcon"
@@ -97,7 +103,7 @@
97
103
  square
98
104
  no-ring
99
105
  size="xs"
100
- color="gray"
106
+ color="grayscale"
101
107
  variant="thirdary"
102
108
  :left-icon="config.defaults.prevIcon"
103
109
  v-bind="rangeSwitchButtonAttrs"
@@ -112,7 +118,7 @@
112
118
  square
113
119
  no-ring
114
120
  size="xs"
115
- color="gray"
121
+ color="grayscale"
116
122
  variant="thirdary"
117
123
  :left-icon="config.defaults.nextIcon"
118
124
  v-bind="rangeSwitchButtonAttrs"
@@ -126,6 +132,7 @@
126
132
  v-if="getDatePeriodState(date, index).isActive"
127
133
  no-ring
128
134
  size="sm"
135
+ color="grayscale"
129
136
  variant="thirdary"
130
137
  :disabled="isDatePeriodOutOfRange(date)"
131
138
  v-bind="periodDateActiveAttrs"
@@ -138,6 +145,7 @@
138
145
  v-else-if="getDatePeriodState(date, index).isFirstInRange && !isListType"
139
146
  no-ring
140
147
  size="sm"
148
+ color="grayscale"
141
149
  variant="thirdary"
142
150
  :disabled="isDatePeriodOutOfRange(date)"
143
151
  v-bind="firstPeriodGridDateAttrs"
@@ -150,6 +158,7 @@
150
158
  v-else-if="getDatePeriodState(date, index).isFirstInRange && isListType"
151
159
  no-ring
152
160
  size="sm"
161
+ color="grayscale"
153
162
  variant="thirdary"
154
163
  :disabled="isDatePeriodOutOfRange(date)"
155
164
  v-bind="firstPeriodListDateAttrs"
@@ -162,6 +171,7 @@
162
171
  v-else-if="getDatePeriodState(date, index).isLastInRange && !isListType"
163
172
  no-ring
164
173
  size="sm"
174
+ color="grayscale"
165
175
  variant="thirdary"
166
176
  :disabled="isDatePeriodOutOfRange(date)"
167
177
  v-bind="lastPeriodGridDateAttrs"
@@ -174,6 +184,7 @@
174
184
  v-else-if="getDatePeriodState(date, index).isLastInRange && isListType"
175
185
  no-ring
176
186
  size="sm"
187
+ color="grayscale"
177
188
  variant="thirdary"
178
189
  :disabled="isDatePeriodOutOfRange(date)"
179
190
  v-bind="lastPeriodListDateAttrs"
@@ -186,6 +197,7 @@
186
197
  v-else-if="getDatePeriodState(date, index).isInRange"
187
198
  no-ring
188
199
  size="sm"
200
+ color="grayscale"
189
201
  variant="thirdary"
190
202
  :disabled="isDatePeriodOutOfRange(date)"
191
203
  v-bind="periodDateInRangeAttrs"
@@ -198,6 +210,7 @@
198
210
  v-else
199
211
  no-ring
200
212
  size="sm"
213
+ color="grayscale"
201
214
  variant="thirdary"
202
215
  :disabled="isDatePeriodOutOfRange(date)"
203
216
  v-bind="periodDateAttrs"
@@ -19,7 +19,7 @@ export default /*tw*/ {
19
19
  menu: {
20
20
  base: `
21
21
  absolute z-40 mb-3 w-80 overflow-hidden rounded-dynamic
22
- border border-brand-300 bg-white p-2 shadow focus:outline-none
22
+ border border-gray-300 bg-white p-2 shadow focus:outline-none
23
23
  `,
24
24
  variants: {
25
25
  openDirectionX: {
@@ -76,8 +76,11 @@ export default /*tw*/ {
76
76
  wrapper: "w-full hover:z-10 focus:z-10 !rounded-none",
77
77
  description: "hidden",
78
78
  },
79
- wrapper: "focus-within:z-10 focus-within:ring-0 rounded-r-none",
80
79
  input: "rounded-r-none",
80
+ wrapper: `
81
+ rounded-r-none
82
+ focus-within:z-10 focus-within:ring-0 focus-within:border-gray-500 hover:focus-within:border-gray-500
83
+ `,
81
84
  },
82
85
  rangeInputLast: {
83
86
  component: "{UInput}",
@@ -86,19 +89,19 @@ export default /*tw*/ {
86
89
  wrapper: "w-full hover:z-10 focus:z-10",
87
90
  description: "hidden",
88
91
  },
89
- wrapper: "focus-within:z-10 focus-within:ring-0 rounded-l-none",
90
92
  input: "rounded-l-none",
93
+ wrapper: `
94
+ rounded-l-none
95
+ focus-within:z-10 focus-within:ring-0 focus-within:border-gray-500 hover:focus-within:border-gray-500
96
+ `,
91
97
  },
92
98
  rangeInputError: "text-xs font-normal leading-none mt-2 text-center text-red-500",
93
99
  calendar: {
94
100
  component: "{UCalendar}",
95
- wrapper: "p-0 w-full border-none shadow-none rounded-none",
96
- navigation: "mb-0 border-none",
97
- viewSwitchButton: {
98
- base: "rounded-dynamic px-4",
99
- rightIcon: "hidden",
100
- },
101
- day: "w-full h-10 mb-0.5",
101
+ wrapper: "p-0 pt-2 w-full border-none shadow-none rounded-none",
102
+ navigation: "pb-0 mb-0 border-none",
103
+ days: "gap-0 gap-y-0.5",
104
+ day: "w-full",
102
105
  },
103
106
  i18n: {
104
107
  ownRange: "Own range",
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "framework": "vue",
3
3
  "name": "vueless",
4
- "version": "0.0.416",
4
+ "version": "0.0.417",
5
5
  "contributions": {
6
6
  "html": {
7
7
  "description-markup": "markdown",