diff --git a/src/plugins/components/input-file-regular/index.ts b/src/plugins/components/input-file-regular/index.ts index 789465d..9a9425d 100644 --- a/src/plugins/components/input-file-regular/index.ts +++ b/src/plugins/components/input-file-regular/index.ts @@ -258,6 +258,36 @@ export default plugin(({ addComponents, theme }) => { '@apply top-[1.2rem]': {}, }, }, + //Without icon && Size:xl + '&.nui-input-xl:not(.nui-has-icon)': { + [`@apply text-${config.icon.disabled.xl.font.size} leading-5`]: {}, + '.nui-input-file-inner': { + '@apply h-14 gap-2': {}, + }, + '.nui-input-file-addon': { + '@apply h-14 px-5': {}, + }, + '.nui-input-file-placeload': { + '@apply top-[1.4rem]': {}, + }, + }, + //With icon && Size:xl + '&.nui-input-xl.nui-has-icon': { + [`@apply text-${config.icon.enabled.xl.font.size} leading-5`]: {}, + '.nui-input-file-inner': { + '@apply h-14 pe-4': {}, + }, + '.nui-input-file-addon': { + '@apply h-14 px-5': {}, + }, + '.nui-input-file-icon': { + [`@apply w-${config.icon.enabled.xl.icon.size} h-${config.icon.enabled.xl.icon.size}`]: + {}, + }, + '.nui-input-file-placeload': { + '@apply top-[1.4rem]': {}, + }, + }, //Input:hover '&:hover': { '.nui-input-file-addon': { diff --git a/src/plugins/components/input-file-regular/input-file-regular.config.ts b/src/plugins/components/input-file-regular/input-file-regular.config.ts index 4f88671..d89a315 100644 --- a/src/plugins/components/input-file-regular/input-file-regular.config.ts +++ b/src/plugins/components/input-file-regular/input-file-regular.config.ts @@ -167,6 +167,11 @@ export const defaultConfig = { size: 'sm', }, }, + xl: { + font: { + size: 'sm', + }, + }, }, enabled: { sm: { @@ -193,6 +198,14 @@ export const defaultConfig = { size: '5', }, }, + xl: { + font: { + size: 'sm', + }, + icon: { + size: '6', + }, + }, }, }, } diff --git a/src/plugins/components/input-file-regular/input-file-regular.doc.mdx b/src/plugins/components/input-file-regular/input-file-regular.doc.mdx index 79260e1..a16108c 100644 --- a/src/plugins/components/input-file-regular/input-file-regular.doc.mdx +++ b/src/plugins/components/input-file-regular/input-file-regular.doc.mdx @@ -70,10 +70,11 @@ File input shapes allow you to change the border radiuses. Below is an example o File input size allows you to change the input size. -