Skip to content

Commit

Permalink
feat / f-cell fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonardo-Signorelli committed Feb 20, 2025
1 parent e65fb7b commit 8c9ed6a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
4 changes: 2 additions & 2 deletions packages/ketchup/src/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3008,7 +3008,7 @@ export namespace Components {
*/
"getProps": (descriptions?: boolean) => Promise<GenericObject>;
/**
* Creates a hidden submit button in order to submit the form with enter.
* Creates a hidden submit button in order to submit the form with enter.``
* @default false
*/
"hiddenSubmitButton": boolean;
Expand Down Expand Up @@ -8635,7 +8635,7 @@ declare namespace LocalJSX {
*/
"data"?: KupInputPanelData;
/**
* Creates a hidden submit button in order to submit the form with enter.
* Creates a hidden submit button in order to submit the form with enter.``
* @default false
*/
"hiddenSubmitButton"?: boolean;
Expand Down
2 changes: 1 addition & 1 deletion packages/ketchup/src/components/kup-input-panel/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
| `customStyle` | `custom-style` | Custom style of the component. | `string` | `''` |
| `dashboardMode` | `dashboard-mode` | Sets verical layout if dashboardMode is true | `boolean` | `false` |
| `data` | -- | Actual data of the form. | `KupInputPanelData` | `null` |
| `hiddenSubmitButton` | `hidden-submit-button` | Creates a hidden submit button in order to submit the form with enter. | `boolean` | `false` |
| `hiddenSubmitButton` | `hidden-submit-button` | Creates a hidden submit button in order to submit the form with enter.`` | `boolean` | `false` |
| `inputPanelPosition` | `input-panel-position` | Dispositions of the whole input panel elements | `KupInputPanelPosition.COLUMNS \| KupInputPanelPosition.INLINE \| KupInputPanelPosition.PLACEHOLDER \| KupInputPanelPosition.STRETCHED \| KupInputPanelPosition.UPCOLUMNS \| KupInputPanelPosition.UPINLINE` | `KupInputPanelPosition.COLUMNS` |
| `optionsHandler` | -- | Sets the callback function on loading options via FUN | `(fun: string, inputValue: string, currentState: KupInputPanelData, cellId: string) => Promise<GenericObject>` | `null` |
| `submitCb` | -- | Sets the callback function on submit form | `(e: KupInputPanelSubmit) => unknown` | `null` |
Expand Down
3 changes: 0 additions & 3 deletions packages/ketchup/src/f-components/f-cell/f-cell.scss
Original file line number Diff line number Diff line change
Expand Up @@ -402,9 +402,6 @@
&.c-pre {
.f-cell__content {
white-space: pre;
.f-cell__text {
font-size: 11px;
}
}
}

Expand Down
6 changes: 3 additions & 3 deletions packages/ketchup/src/utils/g-cell-style-generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function getFontColorCss(c: string): string {
result = 'color: #3A539B !important;'; // blue
break;
case '3':
result = 'color: #C0392B !important;'; // red
result = 'color: var(--kup-danger-color-60) !important;'; // red
break;
case '4':
result = 'color: #C0C0C0 !important;'; // dark grey
Expand All @@ -85,7 +85,7 @@ function getFontColorCss(c: string): string {
result = 'color: #FFFFFF !important;'; // white
break;
case '6':
result = 'color: #26A65B !important;'; // green
result = 'color: var(--kup-success-color-60) !important;'; // green
break;
case '7':
result = 'color: #9B59B6 !important;'; // purple
Expand Down Expand Up @@ -124,7 +124,7 @@ function getBackgroundColorCss(c: string) {

switch (c) {
case '0':
ris = `background: #FFFFFF;`;
ris = `background: transparent;`;
break;
case '1':
ris = `background: #D5ECF7;`;
Expand Down

0 comments on commit 8c9ed6a

Please sign in to comment.