1
0
Fork 0
mirror of synced 2024-07-07 07:15:43 +12:00

Merge pull request #2050 from Budibase/fix/select-icons

Fix select icons
This commit is contained in:
Andrew Kingston 2021-07-21 15:12:00 +01:00 committed by GitHub
commit 8687f74239
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 13 deletions

View file

@ -18,7 +18,7 @@
export let onSelectOption = () => {} export let onSelectOption = () => {}
export let getOptionLabel = option => option export let getOptionLabel = option => option
export let getOptionValue = option => option export let getOptionValue = option => option
export let getOptionIcon = null export let getOptionIcon = () => null
export let open = false export let open = false
export let readonly = false export let readonly = false
export let quiet = false export let quiet = false
@ -45,7 +45,7 @@
> >
{#if fieldIcon} {#if fieldIcon}
<span class="icon-Placeholder-Padding"> <span class="icon-Placeholder-Padding">
<img src={fieldIcon} alt="Picker Icon" width="20" height="15" /> <img src={fieldIcon} alt="icon" width="20" height="15" />
</span> </span>
{/if} {/if}
@ -115,7 +115,7 @@
<span class="icon-Padding"> <span class="icon-Padding">
<img <img
src={getOptionIcon(option, idx)} src={getOptionIcon(option, idx)}
alt="test" alt="icon"
width="20" width="20"
height="15" height="15"
/> />

View file

@ -10,7 +10,7 @@
export let options = [] export let options = []
export let getOptionLabel = option => option export let getOptionLabel = option => option
export let getOptionValue = option => option export let getOptionValue = option => option
export let getOptionIcon = null export let getOptionIcon = () => null
export let readonly = false export let readonly = false
export let quiet = false export let quiet = false
export let autoWidth = false export let autoWidth = false

View file

@ -1,7 +1,6 @@
export const FIELDS = { export const FIELDS = {
STRING: { STRING: {
name: "Text", name: "Text",
icon: "ri-text",
type: "string", type: "string",
constraints: { constraints: {
type: "string", type: "string",
@ -11,7 +10,6 @@ export const FIELDS = {
}, },
LONGFORM: { LONGFORM: {
name: "Long Form Text", name: "Long Form Text",
icon: "ri-file-text-line",
type: "longform", type: "longform",
constraints: { constraints: {
type: "string", type: "string",
@ -21,7 +19,6 @@ export const FIELDS = {
}, },
OPTIONS: { OPTIONS: {
name: "Options", name: "Options",
icon: "ri-list-check-2",
type: "options", type: "options",
constraints: { constraints: {
type: "string", type: "string",
@ -31,7 +28,6 @@ export const FIELDS = {
}, },
NUMBER: { NUMBER: {
name: "Number", name: "Number",
icon: "ri-number-1",
type: "number", type: "number",
constraints: { constraints: {
type: "number", type: "number",
@ -41,7 +37,6 @@ export const FIELDS = {
}, },
BOOLEAN: { BOOLEAN: {
name: "Boolean", name: "Boolean",
icon: "ri-toggle-line",
type: "boolean", type: "boolean",
constraints: { constraints: {
type: "boolean", type: "boolean",
@ -50,7 +45,6 @@ export const FIELDS = {
}, },
DATETIME: { DATETIME: {
name: "Date/Time", name: "Date/Time",
icon: "ri-calendar-event-fill",
type: "datetime", type: "datetime",
constraints: { constraints: {
type: "string", type: "string",
@ -64,7 +58,6 @@ export const FIELDS = {
}, },
ATTACHMENT: { ATTACHMENT: {
name: "Attachment", name: "Attachment",
icon: "ri-file-line",
type: "attachment", type: "attachment",
constraints: { constraints: {
type: "array", type: "array",
@ -73,7 +66,6 @@ export const FIELDS = {
}, },
LINK: { LINK: {
name: "Relationship", name: "Relationship",
icon: "ri-link",
type: "link", type: "link",
constraints: { constraints: {
type: "array", type: "array",
@ -82,7 +74,6 @@ export const FIELDS = {
}, },
FORMULA: { FORMULA: {
name: "Formula", name: "Formula",
icon: "ri-braces-line",
type: "formula", type: "formula",
constraints: { constraints: {
type: "string", type: "string",