frappe-ui 0.1.153 → 0.1.155

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": "frappe-ui",
3
- "version": "0.1.153",
3
+ "version": "0.1.155",
4
4
  "description": "A set of components and utilities for rapid UI development",
5
5
  "main": "./src/index.ts",
6
6
  "type": "module",
@@ -15,7 +15,7 @@
15
15
  :class="inputClass"
16
16
  v-bind="$attrs"
17
17
  >
18
- <template #prefix><LucideCalendar class="size-4" /></template>
18
+ <template v-if="!hideIcon" #prefix><LucideCalendar class="size-4" /></template>
19
19
  </TextInput>
20
20
  </template>
21
21
 
@@ -131,6 +131,7 @@ import { Button } from '../Button'
131
131
  import { Popover } from '../Popover'
132
132
  import FeatherIcon from '../FeatherIcon.vue'
133
133
  import { TextInput } from '../TextInput'
134
+ import LucideCalendar from '~icons/lucide/calendar'
134
135
 
135
136
  import { getDate, getDateValue } from './utils'
136
137
  import { useDatePicker } from './useDatePicker'
@@ -16,7 +16,7 @@
16
16
  :class="inputClass"
17
17
  v-bind="$attrs"
18
18
  >
19
- <template #prefix><LucideCalendar class="size-4" /></template>
19
+ <template v-if="!hideIcon" #prefix><LucideCalendar class="size-4" /></template>
20
20
  </TextInput>
21
21
  </template>
22
22
 
@@ -195,6 +195,7 @@ import { Button } from '../Button'
195
195
  import { Popover } from '../Popover'
196
196
  import FeatherIcon from '../FeatherIcon.vue'
197
197
  import { TextInput } from '../TextInput'
198
+ import LucideCalendar from '~icons/lucide/calendar'
198
199
 
199
200
  import { getDate } from './utils'
200
201
  import { useDatePicker } from './useDatePicker'
@@ -5,7 +5,8 @@ export interface DatePickerProps {
5
5
  formatter?: (date: string) => string
6
6
  readonly?: boolean
7
7
  inputClass?: string | Array<string> | Record<string, boolean>
8
- placement?: string
8
+ placement?: string,
9
+ hideIcon?: boolean
9
10
  }
10
11
 
11
12
  export type DatePickerEmits = {
@@ -12,6 +12,7 @@ export interface SelectProps {
12
12
  placeholder?: string
13
13
  disabled?: boolean
14
14
  id?: string
15
+ value?: string | number
15
16
  modelValue?: string | number
16
17
  options?: SelectOption[]
17
18
  }
@@ -83,10 +83,10 @@ const switchCircleClasses = computed(() => {
83
83
  props.size === 'md' ? 'h-3.5 w-3.5' : 'h-3 w-3',
84
84
  props.size === 'md'
85
85
  ? props.modelValue
86
- ? 'translate-x-3'
86
+ ? 'ltr:translate-x-3 rtl:-translate-x-3'
87
87
  : 'translate-x-0'
88
88
  : props.modelValue
89
- ? 'translate-x-2.5'
89
+ ? 'ltr:translate-x-2.5 rtl:-translate-x-2.5'
90
90
  : 'translate-x-0',
91
91
  ]
92
92
  })
@@ -129,6 +129,6 @@ const switchGroupClasses = computed(() => {
129
129
  })
130
130
 
131
131
  const labelContainerClasses = computed(() => {
132
- return ['flex flex-col text-left space-y-0.5']
132
+ return ['flex flex-col space-y-0.5']
133
133
  })
134
134
  </script>
@@ -7,6 +7,7 @@ export interface TextInputProps {
7
7
  placeholder?: string
8
8
  disabled?: boolean
9
9
  id?: string
10
+ value?: string | number
10
11
  modelValue?: string | number
11
12
  debounce?: number
12
13
  required?: boolean