pimelon-ui 0.1.61 → 0.1.63

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": "pimelon-ui",
3
- "version": "0.1.61",
3
+ "version": "0.1.63",
4
4
  "description": "A set of components and utilities for rapid UI development",
5
5
  "main": "./src/index.js",
6
6
  "scripts": {
@@ -107,7 +107,14 @@ import FeatherIcon from './FeatherIcon.vue'
107
107
  import TextInput from './TextInput.vue'
108
108
  export default {
109
109
  name: 'DateRangePicker',
110
- props: ['modelValue', 'placeholder', 'formatter', 'readonly', 'inputClass'],
110
+ props: [
111
+ 'value',
112
+ 'modelValue',
113
+ 'placeholder',
114
+ 'formatter',
115
+ 'readonly',
116
+ 'inputClass',
117
+ ],
111
118
  emits: ['update:modelValue', 'change'],
112
119
  components: {
113
120
  Popover,
@@ -12,17 +12,31 @@
12
12
  :class="[
13
13
  active ? 'ring-gray-300 focus-visible:ring' : '',
14
14
  checked ? 'bg-white text-gray-900 shadow' : 'text-gray-700',
15
- 'rounded-[7px] px-2 py-1.5 leading-none transition-colors focus:outline-none',
15
+ 'flex flex-1 justify-center gap-2 whitespace-nowrap rounded-[7px] px-3 py-[5px] leading-none transition-colors focus:outline-none',
16
16
  ]"
17
17
  >
18
- <RadioGroupLabel as="span">{{ button.label }}</RadioGroupLabel>
18
+ <FeatherIcon
19
+ class="h-4 w-4"
20
+ v-if="button.icon"
21
+ :name="button.icon"
22
+ :label="button.label"
23
+ :aria-label="button.label"
24
+ />
25
+ <RadioGroupLabel
26
+ as="span"
27
+ class="flex h-4 items-center"
28
+ v-show="button.label && !button.hideLabel"
29
+ >{{ button.label }}</RadioGroupLabel
30
+ >
19
31
  </button>
20
32
  </RadioGroupOption>
21
33
  </div>
22
34
  </RadioGroup>
23
35
  </template>
24
36
  <script>
25
- import { RadioGroup, RadioGroupOption, RadioGroupLabel } from '@headlessui/vue'
37
+ import { RadioGroup, RadioGroupLabel, RadioGroupOption } from '@headlessui/vue'
38
+ import FeatherIcon from './FeatherIcon.vue'
39
+
26
40
  export default {
27
41
  name: 'TabButtons',
28
42
  props: {