@nuraly/lumenui 0.1.0 → 0.2.1
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/dist/nuralyui.bundle.js +23024 -17355
- package/dist/nuralyui.bundle.js.gz +0 -0
- package/dist/src/components/alert/alert.component.d.ts +8 -5
- package/dist/src/components/alert/alert.component.js +24 -20
- package/dist/src/components/alert/alert.style.d.ts +0 -7
- package/dist/src/components/alert/alert.style.js +48 -90
- package/dist/src/components/alert/bundle.js +82 -108
- package/dist/src/components/alert/bundle.js.gz +0 -0
- package/dist/src/components/badge/badge.component.d.ts +9 -8
- package/dist/src/components/badge/badge.component.js +17 -14
- package/dist/src/components/badge/badge.style.d.ts +0 -7
- package/dist/src/components/badge/badge.style.js +49 -107
- package/dist/src/components/badge/bundle.js +81 -119
- package/dist/src/components/badge/bundle.js.gz +0 -0
- package/dist/src/components/breadcrumb/breadcrumb.component.d.ts +8 -10
- package/dist/src/components/breadcrumb/breadcrumb.component.js +16 -15
- package/dist/src/components/breadcrumb/breadcrumb.style.d.ts +0 -7
- package/dist/src/components/breadcrumb/breadcrumb.style.js +42 -60
- package/dist/src/components/breadcrumb/bundle.js +96 -93
- package/dist/src/components/breadcrumb/bundle.js.gz +0 -0
- package/dist/src/components/button/bundle.js +221 -470
- package/dist/src/components/button/bundle.js.gz +0 -0
- package/dist/src/components/button/button.component.d.ts +2 -1
- package/dist/src/components/button/button.component.js +6 -6
- package/dist/src/components/button/button.style.d.ts +0 -7
- package/dist/src/components/button/button.style.js +167 -433
- package/dist/src/components/canvas/base-canvas.component.d.ts +2 -1
- package/dist/src/components/canvas/base-canvas.component.js +1 -0
- package/dist/src/components/canvas/bundle.js +16919 -9595
- package/dist/src/components/canvas/bundle.js.gz +0 -0
- package/dist/src/components/canvas/canvas.constants.d.ts +1 -1
- package/dist/src/components/canvas/canvas.constants.js +1 -1
- package/dist/src/components/canvas/chatbot-panel.style.js +31 -31
- package/dist/src/components/canvas/index.d.ts +2 -0
- package/dist/src/components/canvas/index.js +3 -0
- package/dist/src/components/canvas/whiteboard-canvas.component.d.ts +3 -1
- package/dist/src/components/canvas/whiteboard-canvas.component.js +19 -1
- package/dist/src/components/canvas/whiteboard-canvas.style.js +159 -138
- package/dist/src/components/canvas/whiteboard-node.component.d.ts +2 -1
- package/dist/src/components/canvas/whiteboard-node.component.js +2 -1
- package/dist/src/components/canvas/whiteboard-node.style.js +44 -44
- package/dist/src/components/canvas/workflow-canvas-only.d.ts +4 -0
- package/dist/src/components/canvas/workflow-canvas-only.js +5 -0
- package/dist/src/components/canvas/workflow-canvas.component.d.ts +3 -1
- package/dist/src/components/canvas/workflow-canvas.component.js +24 -2
- package/dist/src/components/canvas/workflow-canvas.style.js +776 -648
- package/dist/src/components/canvas/workflow-canvas.types.d.ts +113 -4
- package/dist/src/components/canvas/workflow-canvas.types.js +646 -3
- package/dist/src/components/canvas/workflow-node.component.d.ts +3 -2
- package/dist/src/components/canvas/workflow-node.component.js +5 -5
- package/dist/src/components/canvas/workflow-node.style.js +183 -181
- package/dist/src/components/card/bundle.js +43 -35
- package/dist/src/components/card/bundle.js.gz +0 -0
- package/dist/src/components/card/card.component.d.ts +6 -1
- package/dist/src/components/card/card.component.js +8 -2
- package/dist/src/components/card/card.style.js +26 -30
- package/dist/src/components/carousel/bundle.js +8 -8
- package/dist/src/components/carousel/bundle.js.gz +0 -0
- package/dist/src/components/carousel/carousel.component.d.ts +12 -0
- package/dist/src/components/carousel/carousel.component.js +16 -4
- package/dist/src/components/chatbot/bundle.js +422 -406
- package/dist/src/components/chatbot/bundle.js.gz +0 -0
- package/dist/src/components/chatbot/chatbot.component.d.ts +2 -1
- package/dist/src/components/chatbot/chatbot.component.js +1 -0
- package/dist/src/components/chatbot/chatbot.style.js +277 -277
- package/dist/src/components/checkbox/bundle.js +86 -245
- package/dist/src/components/checkbox/bundle.js.gz +0 -0
- package/dist/src/components/checkbox/checkbox.component.d.ts +5 -2
- package/dist/src/components/checkbox/checkbox.component.js +11 -13
- package/dist/src/components/checkbox/checkbox.style.js +56 -231
- package/dist/src/components/code-editor/bundle.js +151 -25
- package/dist/src/components/code-editor/bundle.js.gz +0 -0
- package/dist/src/components/code-editor/code-editor.component.d.ts +18 -56
- package/dist/src/components/code-editor/code-editor.component.js +141 -394
- package/dist/src/components/code-editor/code-editor.style.js +139 -15
- package/dist/src/components/collapse/bundle.js +97 -84
- package/dist/src/components/collapse/bundle.js.gz +0 -0
- package/dist/src/components/collapse/collapse.component.d.ts +7 -1
- package/dist/src/components/collapse/collapse.component.js +11 -2
- package/dist/src/components/collapse/collapse.style.js +60 -60
- package/dist/src/components/colorpicker/bundle.js +85 -48
- package/dist/src/components/colorpicker/bundle.js.gz +0 -0
- package/dist/src/components/colorpicker/color-holder.component.d.ts +2 -4
- package/dist/src/components/colorpicker/color-holder.component.js +5 -6
- package/dist/src/components/colorpicker/color-holder.style.js +11 -11
- package/dist/src/components/colorpicker/color-picker.component.d.ts +2 -1
- package/dist/src/components/colorpicker/color-picker.component.js +1 -0
- package/dist/src/components/colorpicker/color-picker.style.js +12 -12
- package/dist/src/components/colorpicker/default-color-sets.component.d.ts +2 -2
- package/dist/src/components/colorpicker/default-color-sets.component.js +4 -3
- package/dist/src/components/colorpicker/default-color-sets.style.js +5 -5
- package/dist/src/components/container/bundle.js +24 -14
- package/dist/src/components/container/bundle.js.gz +0 -0
- package/dist/src/components/container/container.component.d.ts +4 -1
- package/dist/src/components/container/container.component.js +7 -5
- package/dist/src/components/container/container.style.js +9 -9
- package/dist/src/components/datepicker/bundle.js +193 -177
- package/dist/src/components/datepicker/bundle.js.gz +0 -0
- package/dist/src/components/datepicker/datepicker.component.d.ts +2 -1
- package/dist/src/components/datepicker/datepicker.component.js +1 -0
- package/dist/src/components/datepicker/datepicker.style.js +65 -65
- package/dist/src/components/datepicker/datepicker.style.variables.js +91 -91
- package/dist/src/components/db-connection-select/bundle.js +7 -6
- package/dist/src/components/db-connection-select/bundle.js.gz +0 -0
- package/dist/src/components/db-connection-select/db-connection-select.component.d.ts +3 -0
- package/dist/src/components/db-connection-select/db-connection-select.component.js +4 -0
- package/dist/src/components/divider/bundle.js +61 -35
- package/dist/src/components/divider/bundle.js.gz +0 -0
- package/dist/src/components/divider/divider.component.d.ts +4 -6
- package/dist/src/components/divider/divider.component.js +10 -14
- package/dist/src/components/divider/divider.style.js +41 -31
- package/dist/src/components/document/bundle.js +50 -48
- package/dist/src/components/document/bundle.js.gz +0 -0
- package/dist/src/components/document/document.component.d.ts +12 -1
- package/dist/src/components/document/document.component.js +18 -6
- package/dist/src/components/document/document.style.js +21 -36
- package/dist/src/components/dropdown/bundle.js +117 -101
- package/dist/src/components/dropdown/bundle.js.gz +0 -0
- package/dist/src/components/dropdown/dropdown.component.d.ts +2 -1
- package/dist/src/components/dropdown/dropdown.component.js +1 -0
- package/dist/src/components/dropdown/dropdown.style.js +68 -68
- package/dist/src/components/file-upload/bundle.js +82 -76
- package/dist/src/components/file-upload/bundle.js.gz +0 -0
- package/dist/src/components/file-upload/file-upload.component.d.ts +2 -1
- package/dist/src/components/file-upload/file-upload.component.js +1 -0
- package/dist/src/components/file-upload/styles.js +59 -59
- package/dist/src/components/flex/bundle.js +18 -8
- package/dist/src/components/flex/bundle.js.gz +0 -0
- package/dist/src/components/flex/flex.component.d.ts +4 -1
- package/dist/src/components/flex/flex.component.js +7 -4
- package/dist/src/components/flex/flex.style.js +2 -2
- package/dist/src/components/form/bundle.js +22 -10
- package/dist/src/components/form/bundle.js.gz +0 -0
- package/dist/src/components/form/form.component.d.ts +4 -1
- package/dist/src/components/form/form.component.js +5 -1
- package/dist/src/components/form/form.style.js +2 -2
- package/dist/src/components/grid/bundle.js +26 -14
- package/dist/src/components/grid/bundle.js.gz +0 -0
- package/dist/src/components/grid/col.component.d.ts +4 -1
- package/dist/src/components/grid/col.component.js +4 -1
- package/dist/src/components/grid/col.style.js +2 -2
- package/dist/src/components/grid/row.component.d.ts +4 -1
- package/dist/src/components/grid/row.component.js +4 -1
- package/dist/src/components/grid/row.style.js +2 -2
- package/dist/src/components/icon/bundle.js +78 -252
- package/dist/src/components/icon/bundle.js.gz +0 -0
- package/dist/src/components/icon/icon-paths.d.ts +2 -0
- package/dist/src/components/icon/icon-paths.js +141 -0
- package/dist/src/components/icon/icon.component.d.ts +10 -12
- package/dist/src/components/icon/icon.component.js +42 -93
- package/dist/src/components/icon/icon.style.js +42 -130
- package/dist/src/components/icon/icon.variables.js +9 -9
- package/dist/src/components/iconpicker/bundle.js +859 -1511
- package/dist/src/components/iconpicker/bundle.js.gz +0 -0
- package/dist/src/components/iconpicker/icon-picker.component.d.ts +2 -1
- package/dist/src/components/iconpicker/icon-picker.component.js +1 -0
- package/dist/src/components/iconpicker/icon-picker.style.js +13 -13
- package/dist/src/components/image/bundle.js +43 -33
- package/dist/src/components/image/bundle.js.gz +0 -0
- package/dist/src/components/image/image.component.d.ts +10 -1
- package/dist/src/components/image/image.component.js +13 -3
- package/dist/src/components/image/image.style.js +19 -26
- package/dist/src/components/input/bundle.js +420 -644
- package/dist/src/components/input/bundle.js.gz +0 -0
- package/dist/src/components/input/input.component.d.ts +16 -3
- package/dist/src/components/input/input.component.js +43 -27
- package/dist/src/components/input/input.style.d.ts +1 -1
- package/dist/src/components/input/input.style.js +331 -634
- package/dist/src/components/kv-secret-select/bundle.js +2 -1
- package/dist/src/components/kv-secret-select/bundle.js.gz +0 -0
- package/dist/src/components/kv-secret-select/kv-secret-select.component.d.ts +3 -0
- package/dist/src/components/kv-secret-select/kv-secret-select.component.js +4 -0
- package/dist/src/components/label/bundle.js +37 -60
- package/dist/src/components/label/bundle.js.gz +0 -0
- package/dist/src/components/label/label.component.d.ts +8 -4
- package/dist/src/components/label/label.component.js +9 -14
- package/dist/src/components/label/label.style.js +17 -25
- package/dist/src/components/label/label.style.variables.js +18 -18
- package/dist/src/components/layout/bundle.js +86 -70
- package/dist/src/components/layout/bundle.js.gz +0 -0
- package/dist/src/components/layout/content.component.d.ts +2 -1
- package/dist/src/components/layout/content.component.js +2 -1
- package/dist/src/components/layout/content.style.js +3 -3
- package/dist/src/components/layout/footer.component.d.ts +2 -1
- package/dist/src/components/layout/footer.component.js +3 -2
- package/dist/src/components/layout/footer.style.js +7 -7
- package/dist/src/components/layout/header.component.d.ts +2 -1
- package/dist/src/components/layout/header.component.js +3 -2
- package/dist/src/components/layout/header.style.js +7 -7
- package/dist/src/components/layout/layout.component.d.ts +4 -7
- package/dist/src/components/layout/layout.component.js +9 -22
- package/dist/src/components/layout/layout.style.js +1 -1
- package/dist/src/components/layout/sider.component.d.ts +3 -1
- package/dist/src/components/layout/sider.component.js +3 -1
- package/dist/src/components/layout/sider.style.js +29 -29
- package/dist/src/components/menu/bundle.js +135 -125
- package/dist/src/components/menu/bundle.js.gz +0 -0
- package/dist/src/components/menu/menu.component.d.ts +2 -1
- package/dist/src/components/menu/menu.component.js +1 -0
- package/dist/src/components/menu/menu.style.js +87 -87
- package/dist/src/components/modal/bundle.js +105 -96
- package/dist/src/components/modal/bundle.js.gz +0 -0
- package/dist/src/components/modal/modal.component.d.ts +2 -1
- package/dist/src/components/modal/modal.component.js +1 -0
- package/dist/src/components/modal/modal.style.js +69 -71
- package/dist/src/components/panel/bundle.js +190 -391
- package/dist/src/components/panel/bundle.js.gz +0 -0
- package/dist/src/components/panel/panel.component.d.ts +2 -1
- package/dist/src/components/panel/panel.component.js +1 -0
- package/dist/src/components/panel/panel.style.js +65 -65
- package/dist/src/components/popconfirm/bundle.js +107 -93
- package/dist/src/components/popconfirm/bundle.js.gz +0 -0
- package/dist/src/components/popconfirm/popconfirm-manager.component.d.ts +2 -1
- package/dist/src/components/popconfirm/popconfirm-manager.component.js +1 -0
- package/dist/src/components/popconfirm/popconfirm-manager.style.js +16 -16
- package/dist/src/components/popconfirm/popconfirm.component.d.ts +2 -1
- package/dist/src/components/popconfirm/popconfirm.component.js +9 -5
- package/dist/src/components/popconfirm/popconfirm.style.js +43 -43
- package/dist/src/components/radio/bundle.js +56 -86
- package/dist/src/components/radio/bundle.js.gz +0 -0
- package/dist/src/components/radio/radio.component.d.ts +8 -2
- package/dist/src/components/radio/radio.component.js +17 -9
- package/dist/src/components/radio/radio.style.js +30 -77
- package/dist/src/components/radio-group/bundle.js +125 -89
- package/dist/src/components/radio-group/bundle.js.gz +0 -0
- package/dist/src/components/radio-group/radio-group.component.d.ts +5 -1
- package/dist/src/components/radio-group/radio-group.component.js +18 -10
- package/dist/src/components/radio-group/radio-group.style.js +44 -44
- package/dist/src/components/select/bundle.js +260 -367
- package/dist/src/components/select/bundle.js.gz +0 -0
- package/dist/src/components/select/select.component.d.ts +12 -17
- package/dist/src/components/select/select.component.js +35 -35
- package/dist/src/components/select/select.style.js +184 -324
- package/dist/src/components/skeleton/bundle.js +82 -162
- package/dist/src/components/skeleton/bundle.js.gz +0 -0
- package/dist/src/components/skeleton/skeleton.component.d.ts +10 -5
- package/dist/src/components/skeleton/skeleton.component.js +20 -7
- package/dist/src/components/skeleton/skeleton.style.js +34 -133
- package/dist/src/components/slider-input/bundle.js +89 -88
- package/dist/src/components/slider-input/bundle.js.gz +0 -0
- package/dist/src/components/slider-input/slider-input.component.d.ts +11 -0
- package/dist/src/components/slider-input/slider-input.component.js +20 -8
- package/dist/src/components/slider-input/slider-input.style.js +47 -47
- package/dist/src/components/slider-input/slider-input.style.variables.js +32 -32
- package/dist/src/components/table/bundle.js +149 -128
- package/dist/src/components/table/bundle.js.gz +0 -0
- package/dist/src/components/table/table.component.d.ts +2 -1
- package/dist/src/components/table/table.component.js +1 -0
- package/dist/src/components/table/table.style.js +79 -79
- package/dist/src/components/tabs/bundle.js +462 -663
- package/dist/src/components/tabs/bundle.js.gz +0 -0
- package/dist/src/components/tabs/tabs.component.d.ts +6 -1
- package/dist/src/components/tabs/tabs.component.js +8 -1
- package/dist/src/components/tabs/tabs.style.js +200 -201
- package/dist/src/components/tag/bundle.js +44 -36
- package/dist/src/components/tag/bundle.js.gz +0 -0
- package/dist/src/components/tag/tag.component.d.ts +7 -6
- package/dist/src/components/tag/tag.component.js +10 -19
- package/dist/src/components/tag/tag.style.js +20 -24
- package/dist/src/components/textarea/bundle.js +131 -94
- package/dist/src/components/textarea/bundle.js.gz +0 -0
- package/dist/src/components/textarea/textarea.component.d.ts +7 -1
- package/dist/src/components/textarea/textarea.component.js +10 -3
- package/dist/src/components/textarea/textarea.style.d.ts +1 -13
- package/dist/src/components/textarea/textarea.style.js +79 -91
- package/dist/src/components/timeline/bundle.js +71 -134
- package/dist/src/components/timeline/bundle.js.gz +0 -0
- package/dist/src/components/timeline/timeline.component.d.ts +9 -6
- package/dist/src/components/timeline/timeline.component.js +16 -13
- package/dist/src/components/timeline/timeline.style.d.ts +0 -7
- package/dist/src/components/timeline/timeline.style.js +41 -122
- package/dist/src/components/timepicker/bundle.js +196 -166
- package/dist/src/components/timepicker/bundle.js.gz +0 -0
- package/dist/src/components/timepicker/timepicker.component.d.ts +2 -1
- package/dist/src/components/timepicker/timepicker.component.js +1 -0
- package/dist/src/components/timepicker/timepicker.style.js +42 -42
- package/dist/src/components/timepicker/timepicker.style.variables.js +91 -91
- package/dist/src/components/toast/bundle.js +97 -81
- package/dist/src/components/toast/bundle.js.gz +0 -0
- package/dist/src/components/toast/toast.component.d.ts +2 -1
- package/dist/src/components/toast/toast.component.js +1 -0
- package/dist/src/components/toast/toast.style.js +62 -62
- package/dist/src/components/tooltips/bundle.js +10 -10
- package/dist/src/components/tooltips/bundle.js.gz +0 -0
- package/dist/src/components/tooltips/tooltips.component.d.ts +8 -0
- package/dist/src/components/tooltips/tooltips.component.js +9 -1
- package/dist/src/components/tooltips/tooltips.style.js +6 -6
- package/dist/src/components/video/bundle.js +47 -36
- package/dist/src/components/video/bundle.js.gz +0 -0
- package/dist/src/components/video/video.component.d.ts +12 -1
- package/dist/src/components/video/video.component.js +18 -6
- package/dist/src/components/video/video.style.js +18 -24
- package/package.json +25 -12
- package/packages/common/dist/VERSIONS.md +2 -2
- package/packages/common/dist/shared/base-mixin.d.ts +21 -19
- package/packages/common/dist/shared/base-mixin.d.ts.map +1 -1
- package/packages/common/dist/shared/base-mixin.js +102 -18
- package/packages/common/dist/shared/base-mixin.js.map +1 -1
- package/packages/common/dist/shared/index.d.ts +1 -0
- package/packages/common/dist/shared/index.d.ts.map +1 -1
- package/packages/common/dist/shared/index.js +2 -0
- package/packages/common/dist/shared/index.js.map +1 -1
- package/packages/common/dist/shared/style-injector.d.ts +11 -0
- package/packages/common/dist/shared/style-injector.d.ts.map +1 -0
- package/packages/common/dist/shared/style-injector.js +53 -0
- package/packages/common/dist/shared/style-injector.js.map +1 -0
- package/packages/common/dist/shared/theme-mixin.d.ts +2 -24
- package/packages/common/dist/shared/theme-mixin.d.ts.map +1 -1
- package/packages/common/dist/shared/theme-mixin.js +5 -38
- package/packages/common/dist/shared/theme-mixin.js.map +1 -1
- package/packages/themes/dist/default.css +0 -10
- package/packages/themes/dist/package.json +1 -1
|
@@ -45,6 +45,11 @@ import { TextareaValidationController, TextareaEventController } from './control
|
|
|
45
45
|
* @slot helper-text - Helper text
|
|
46
46
|
* @slot addon-before - Content before textarea
|
|
47
47
|
* @slot addon-after - Content after textarea
|
|
48
|
+
*
|
|
49
|
+
* @csspart container - The outermost wrapper div
|
|
50
|
+
* @csspart label - The label wrapper div
|
|
51
|
+
* @csspart input - The native textarea element
|
|
52
|
+
* @csspart helper-text - The helper/error text wrapper div
|
|
48
53
|
*/
|
|
49
54
|
let NrTextareaElement = class NrTextareaElement extends NuralyUIBaseMixin(LitElement) {
|
|
50
55
|
/** Clearable alias for controller interface compatibility */
|
|
@@ -459,7 +464,7 @@ let NrTextareaElement = class NrTextareaElement extends NuralyUIBaseMixin(LitEle
|
|
|
459
464
|
}
|
|
460
465
|
renderLabel() {
|
|
461
466
|
return html `
|
|
462
|
-
<div class="textarea-label">
|
|
467
|
+
<div class="textarea-label" part="label">
|
|
463
468
|
<slot name="label"></slot>
|
|
464
469
|
${this.required ? html `<span class="required-indicator">*</span>` : ''}
|
|
465
470
|
</div>
|
|
@@ -469,6 +474,7 @@ let NrTextareaElement = class NrTextareaElement extends NuralyUIBaseMixin(LitEle
|
|
|
469
474
|
return html `
|
|
470
475
|
<textarea
|
|
471
476
|
class="textarea-element"
|
|
477
|
+
part="input"
|
|
472
478
|
.value=${this.value}
|
|
473
479
|
.disabled=${this.disabled}
|
|
474
480
|
.readOnly=${this.readonly}
|
|
@@ -519,7 +525,7 @@ let NrTextareaElement = class NrTextareaElement extends NuralyUIBaseMixin(LitEle
|
|
|
519
525
|
if (!hasHelperSlotContent && !hasValidationMessages)
|
|
520
526
|
return '';
|
|
521
527
|
return html `
|
|
522
|
-
<div class="helper-text">
|
|
528
|
+
<div class="helper-text" part="helper-text">
|
|
523
529
|
${hasValidationMessages ?
|
|
524
530
|
this.validationResult.messages.map(msg => html `<div class="validation-message ${this.validationResult.level}">${msg}</div>`) :
|
|
525
531
|
html `<slot name="helper-text"></slot>`}
|
|
@@ -538,7 +544,7 @@ let NrTextareaElement = class NrTextareaElement extends NuralyUIBaseMixin(LitEle
|
|
|
538
544
|
this.validationResult ? `validation-${this.validationResult.level}` : ''
|
|
539
545
|
].filter(Boolean).join(' ');
|
|
540
546
|
return html `
|
|
541
|
-
<div class="${classes}">
|
|
547
|
+
<div class="${classes}" part="container">
|
|
542
548
|
${this.renderLabel()}
|
|
543
549
|
|
|
544
550
|
<div class="textarea-wrapper">
|
|
@@ -565,6 +571,7 @@ let NrTextareaElement = class NrTextareaElement extends NuralyUIBaseMixin(LitEle
|
|
|
565
571
|
`;
|
|
566
572
|
}
|
|
567
573
|
};
|
|
574
|
+
NrTextareaElement.useShadowDom = true;
|
|
568
575
|
NrTextareaElement.styles = styles;
|
|
569
576
|
__decorate([
|
|
570
577
|
query('textarea')
|
|
@@ -1,19 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Textarea component styles for the Hybrid UI Library
|
|
3
3
|
*
|
|
4
|
-
* This file contains
|
|
5
|
-
color: var(--nuraly-color-textarea-placeholder, #8c8c8c);
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.textarea-element:hover {
|
|
9
|
-
border-color: var(--nuraly-color-textarea-border-hover, #7c3aed);
|
|
10
|
-
border-bottom-color: var(--nuraly-color-textarea-border-hover, #7c3aed);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.textarea-element:focus {
|
|
14
|
-
border-color: var(--nuraly-color-textarea-border-focus, #7c3aed);
|
|
15
|
-
border-bottom-color: var(--nuraly-color-textarea-border-focus, #7c3aed);
|
|
16
|
-
box-shadow: 0 0 0 1px var(--nuraly-color-textarea-border-focus, #7c3aed); for the nr-textarea component, including:
|
|
4
|
+
* This file contains all styling for the nr-textarea component, including:
|
|
17
5
|
* - Base textarea styles with CSS custom properties for theming
|
|
18
6
|
* - Multiple textarea states (default, warning, error)
|
|
19
7
|
* - Size variations (small, medium, large)
|
|
@@ -2,19 +2,7 @@ import { css } from 'lit';
|
|
|
2
2
|
/**
|
|
3
3
|
* Textarea component styles for the Hybrid UI Library
|
|
4
4
|
*
|
|
5
|
-
* This file contains
|
|
6
|
-
color: var(--nuraly-color-textarea-placeholder, #8c8c8c);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.textarea-element:hover {
|
|
10
|
-
border-color: var(--nuraly-color-textarea-border-hover, #7c3aed);
|
|
11
|
-
border-bottom-color: var(--nuraly-color-textarea-border-hover, #7c3aed);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.textarea-element:focus {
|
|
15
|
-
border-color: var(--nuraly-color-textarea-border-focus, #7c3aed);
|
|
16
|
-
border-bottom-color: var(--nuraly-color-textarea-border-focus, #7c3aed);
|
|
17
|
-
box-shadow: 0 0 0 1px var(--nuraly-color-textarea-border-focus, #7c3aed); for the nr-textarea component, including:
|
|
5
|
+
* This file contains all styling for the nr-textarea component, including:
|
|
18
6
|
* - Base textarea styles with CSS custom properties for theming
|
|
19
7
|
* - Multiple textarea states (default, warning, error)
|
|
20
8
|
* - Size variations (small, medium, large)
|
|
@@ -60,13 +48,13 @@ export const styles = css `
|
|
|
60
48
|
:host {
|
|
61
49
|
display: block;
|
|
62
50
|
position: relative;
|
|
63
|
-
font-family:
|
|
51
|
+
font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
|
|
64
52
|
}
|
|
65
53
|
|
|
66
54
|
.textarea-container {
|
|
67
55
|
display: flex;
|
|
68
56
|
flex-direction: column;
|
|
69
|
-
gap:
|
|
57
|
+
gap: 8px;
|
|
70
58
|
width: 100%;
|
|
71
59
|
}
|
|
72
60
|
|
|
@@ -74,21 +62,21 @@ export const styles = css `
|
|
|
74
62
|
display: flex;
|
|
75
63
|
align-items: center;
|
|
76
64
|
gap: 4px;
|
|
77
|
-
font-size:
|
|
65
|
+
font-size: 16px;
|
|
78
66
|
font-weight: 500;
|
|
79
|
-
color:
|
|
80
|
-
line-height:
|
|
67
|
+
color: #262626;
|
|
68
|
+
line-height: 1.5;
|
|
81
69
|
}
|
|
82
70
|
|
|
83
71
|
.required-indicator {
|
|
84
|
-
color:
|
|
72
|
+
color: #ef4444;
|
|
85
73
|
font-weight: 600;
|
|
86
74
|
}
|
|
87
75
|
|
|
88
76
|
.textarea-wrapper {
|
|
89
77
|
display: flex;
|
|
90
78
|
align-items: flex-start;
|
|
91
|
-
gap:
|
|
79
|
+
gap: 8px;
|
|
92
80
|
position: relative;
|
|
93
81
|
}
|
|
94
82
|
|
|
@@ -96,7 +84,7 @@ export const styles = css `
|
|
|
96
84
|
.addon-after {
|
|
97
85
|
display: flex;
|
|
98
86
|
align-items: flex-start;
|
|
99
|
-
padding-top:
|
|
87
|
+
padding-top: 12px;
|
|
100
88
|
}
|
|
101
89
|
|
|
102
90
|
.textarea-input-container {
|
|
@@ -109,89 +97,89 @@ export const styles = css `
|
|
|
109
97
|
.textarea-element {
|
|
110
98
|
width: 100%;
|
|
111
99
|
min-height: 80px;
|
|
112
|
-
padding:
|
|
113
|
-
border-top:
|
|
114
|
-
border-left:
|
|
115
|
-
border-right:
|
|
116
|
-
border-bottom:
|
|
117
|
-
border-radius:
|
|
118
|
-
background-color:
|
|
119
|
-
color:
|
|
120
|
-
font-family:
|
|
121
|
-
font-size:
|
|
122
|
-
line-height:
|
|
100
|
+
padding: 12px;
|
|
101
|
+
border-top: 1px solid #d9d9d9;
|
|
102
|
+
border-left: 1px solid #d9d9d9;
|
|
103
|
+
border-right: 1px solid #d9d9d9;
|
|
104
|
+
border-bottom: 1px solid #d9d9d9;
|
|
105
|
+
border-radius: 6px;
|
|
106
|
+
background-color: #ffffff;
|
|
107
|
+
color: #262626;
|
|
108
|
+
font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
|
|
109
|
+
font-size: 16px;
|
|
110
|
+
line-height: 1.5;
|
|
123
111
|
outline: none;
|
|
124
112
|
transition: border-color 0.2s ease-in-out;
|
|
125
113
|
box-sizing: border-box;
|
|
126
114
|
}
|
|
127
115
|
|
|
128
116
|
.textarea-element::placeholder {
|
|
129
|
-
color:
|
|
117
|
+
color: #8c8c8c;
|
|
130
118
|
}
|
|
131
119
|
|
|
132
120
|
.textarea-element:hover:not(:disabled):not(:focus) {
|
|
133
|
-
border-top-color:
|
|
134
|
-
border-left-color:
|
|
135
|
-
border-right-color:
|
|
136
|
-
border-bottom-color:
|
|
121
|
+
border-top-color: #7c3aed;
|
|
122
|
+
border-left-color: #7c3aed;
|
|
123
|
+
border-right-color: #7c3aed;
|
|
124
|
+
border-bottom-color: #7c3aed;
|
|
137
125
|
}
|
|
138
126
|
|
|
139
127
|
.textarea-element:focus {
|
|
140
|
-
border-top-color:
|
|
141
|
-
border-left-color:
|
|
142
|
-
border-right-color:
|
|
143
|
-
border-bottom-color:
|
|
144
|
-
box-shadow: 0 0 0 1px
|
|
128
|
+
border-top-color: #7c3aed;
|
|
129
|
+
border-left-color: #7c3aed;
|
|
130
|
+
border-right-color: #7c3aed;
|
|
131
|
+
border-bottom-color: #7c3aed;
|
|
132
|
+
box-shadow: 0 0 0 1px #7c3aed;
|
|
145
133
|
}
|
|
146
134
|
|
|
147
135
|
.textarea-element:disabled {
|
|
148
|
-
background-color:
|
|
149
|
-
color:
|
|
150
|
-
border-color:
|
|
136
|
+
background-color: #f5f5f5;
|
|
137
|
+
color: #8c8c8c;
|
|
138
|
+
border-color: #d9d9d9;
|
|
151
139
|
cursor: not-allowed;
|
|
152
140
|
resize: none;
|
|
153
141
|
}
|
|
154
142
|
|
|
155
143
|
.textarea-element:disabled {
|
|
156
|
-
background-color:
|
|
157
|
-
color:
|
|
158
|
-
border-color:
|
|
144
|
+
background-color: #f5f5f5;
|
|
145
|
+
color: #8c8c8c;
|
|
146
|
+
border-color: #d9d9d9;
|
|
159
147
|
cursor: not-allowed;
|
|
160
148
|
resize: none;
|
|
161
149
|
}
|
|
162
150
|
|
|
163
151
|
.textarea-element:read-only {
|
|
164
|
-
background-color:
|
|
152
|
+
background-color: #f9f9f9;
|
|
165
153
|
cursor: default;
|
|
166
154
|
}
|
|
167
155
|
|
|
168
156
|
/* Size variants */
|
|
169
157
|
.size-small .textarea-element {
|
|
170
|
-
font-size:
|
|
171
|
-
padding: calc(
|
|
158
|
+
font-size: 14px;
|
|
159
|
+
padding: calc(12px * 0.75);
|
|
172
160
|
min-height: 60px;
|
|
173
161
|
}
|
|
174
162
|
|
|
175
163
|
.size-large .textarea-element {
|
|
176
|
-
font-size:
|
|
177
|
-
padding: calc(
|
|
164
|
+
font-size: 18px;
|
|
165
|
+
padding: calc(12px * 1.25);
|
|
178
166
|
min-height: 100px;
|
|
179
167
|
}
|
|
180
168
|
|
|
181
169
|
/* Variant styles */
|
|
182
170
|
.variant-outlined .textarea-element {
|
|
183
|
-
border:
|
|
184
|
-
background-color:
|
|
171
|
+
border: 1px solid #d9d9d9;
|
|
172
|
+
background-color: #ffffff;
|
|
185
173
|
}
|
|
186
174
|
|
|
187
175
|
.variant-filled .textarea-element {
|
|
188
|
-
border:
|
|
189
|
-
background-color:
|
|
176
|
+
border: 1px solid transparent;
|
|
177
|
+
background-color: #f5f5f5;
|
|
190
178
|
}
|
|
191
179
|
|
|
192
180
|
.variant-filled .textarea-element:focus {
|
|
193
|
-
background-color:
|
|
194
|
-
border-color:
|
|
181
|
+
background-color: #ffffff;
|
|
182
|
+
border-color: #7c3aed;
|
|
195
183
|
}
|
|
196
184
|
|
|
197
185
|
.variant-borderless .textarea-element {
|
|
@@ -203,7 +191,7 @@ export const styles = css `
|
|
|
203
191
|
|
|
204
192
|
.variant-underlined .textarea-element {
|
|
205
193
|
border: none;
|
|
206
|
-
border-bottom:
|
|
194
|
+
border-bottom: 1px solid #d9d9d9;
|
|
207
195
|
border-radius: 0;
|
|
208
196
|
background-color: transparent;
|
|
209
197
|
padding-left: 0;
|
|
@@ -211,57 +199,57 @@ export const styles = css `
|
|
|
211
199
|
}
|
|
212
200
|
|
|
213
201
|
.variant-underlined .textarea-element:focus {
|
|
214
|
-
border-bottom-color:
|
|
202
|
+
border-bottom-color: #7c3aed;
|
|
215
203
|
box-shadow: none;
|
|
216
204
|
}
|
|
217
205
|
|
|
218
206
|
/* State styles */
|
|
219
207
|
.state-error .textarea-element,
|
|
220
208
|
.validation-error .textarea-element {
|
|
221
|
-
border-color:
|
|
209
|
+
border-color: #ef4444;
|
|
222
210
|
}
|
|
223
211
|
|
|
224
212
|
.state-error .textarea-element:focus,
|
|
225
213
|
.validation-error .textarea-element:focus {
|
|
226
|
-
border-color:
|
|
227
|
-
box-shadow: 0 0 0 1px
|
|
214
|
+
border-color: #ef4444;
|
|
215
|
+
box-shadow: 0 0 0 1px #ef4444;
|
|
228
216
|
}
|
|
229
217
|
|
|
230
218
|
.state-warning .textarea-element,
|
|
231
219
|
.validation-warning .textarea-element {
|
|
232
|
-
border-color:
|
|
220
|
+
border-color: #f59e0b;
|
|
233
221
|
}
|
|
234
222
|
|
|
235
223
|
.state-warning .textarea-element:focus,
|
|
236
224
|
.validation-warning .textarea-element:focus {
|
|
237
|
-
border-color:
|
|
238
|
-
box-shadow: 0 0 0 1px
|
|
225
|
+
border-color: #f59e0b;
|
|
226
|
+
box-shadow: 0 0 0 1px #f59e0b;
|
|
239
227
|
}
|
|
240
228
|
|
|
241
229
|
/* Icons */
|
|
242
230
|
.validation-icon,
|
|
243
231
|
.clear-button {
|
|
244
232
|
position: absolute;
|
|
245
|
-
top:
|
|
246
|
-
right:
|
|
233
|
+
top: 12px;
|
|
234
|
+
right: 12px;
|
|
247
235
|
z-index: 1;
|
|
248
236
|
}
|
|
249
237
|
|
|
250
238
|
.validation-icon {
|
|
251
|
-
color:
|
|
239
|
+
color: #8c8c8c;
|
|
252
240
|
pointer-events: none;
|
|
253
241
|
}
|
|
254
242
|
|
|
255
243
|
.validation-icon.error {
|
|
256
|
-
color:
|
|
244
|
+
color: #ef4444;
|
|
257
245
|
}
|
|
258
246
|
|
|
259
247
|
.validation-icon.warning {
|
|
260
|
-
color:
|
|
248
|
+
color: #f59e0b;
|
|
261
249
|
}
|
|
262
250
|
|
|
263
251
|
.validation-icon.success {
|
|
264
|
-
color:
|
|
252
|
+
color: #10b981;
|
|
265
253
|
}
|
|
266
254
|
|
|
267
255
|
.clear-button {
|
|
@@ -271,25 +259,25 @@ export const styles = css `
|
|
|
271
259
|
background: none;
|
|
272
260
|
border: none;
|
|
273
261
|
cursor: pointer;
|
|
274
|
-
color:
|
|
262
|
+
color: #8c8c8c;
|
|
275
263
|
padding: 2px;
|
|
276
264
|
border-radius: 4px;
|
|
277
265
|
transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
|
|
278
266
|
}
|
|
279
267
|
|
|
280
268
|
.clear-button:hover {
|
|
281
|
-
color:
|
|
282
|
-
background-color:
|
|
269
|
+
color: #7c3aed;
|
|
270
|
+
background-color: rgba(0, 0, 0, 0.05);
|
|
283
271
|
}
|
|
284
272
|
|
|
285
273
|
.clear-button:active {
|
|
286
|
-
color:
|
|
274
|
+
color: #6d28d9;
|
|
287
275
|
}
|
|
288
276
|
|
|
289
277
|
/* Adjust textarea padding when icons are present */
|
|
290
278
|
:host([allow-clear]) .textarea-element,
|
|
291
279
|
:host([has-feedback]) .textarea-element {
|
|
292
|
-
padding-right: calc(
|
|
280
|
+
padding-right: calc(12px + 16px + 8px);
|
|
293
281
|
}
|
|
294
282
|
|
|
295
283
|
/* Footer */
|
|
@@ -297,15 +285,15 @@ export const styles = css `
|
|
|
297
285
|
display: flex;
|
|
298
286
|
justify-content: space-between;
|
|
299
287
|
align-items: flex-start;
|
|
300
|
-
gap:
|
|
288
|
+
gap: 8px;
|
|
301
289
|
min-height: 20px;
|
|
302
290
|
}
|
|
303
291
|
|
|
304
292
|
.helper-text {
|
|
305
293
|
flex: 1;
|
|
306
|
-
font-size:
|
|
294
|
+
font-size: 14px;
|
|
307
295
|
line-height: 1.4;
|
|
308
|
-
color:
|
|
296
|
+
color: #666666;
|
|
309
297
|
}
|
|
310
298
|
|
|
311
299
|
.validation-message {
|
|
@@ -317,26 +305,26 @@ export const styles = css `
|
|
|
317
305
|
}
|
|
318
306
|
|
|
319
307
|
.validation-message.error {
|
|
320
|
-
color:
|
|
308
|
+
color: #ef4444;
|
|
321
309
|
}
|
|
322
310
|
|
|
323
311
|
.validation-message.warning {
|
|
324
|
-
color:
|
|
312
|
+
color: #f59e0b;
|
|
325
313
|
}
|
|
326
314
|
|
|
327
315
|
.validation-message.success {
|
|
328
|
-
color:
|
|
316
|
+
color: #10b981;
|
|
329
317
|
}
|
|
330
318
|
|
|
331
319
|
.character-count {
|
|
332
|
-
font-size:
|
|
333
|
-
color:
|
|
320
|
+
font-size: 14px;
|
|
321
|
+
color: #666666;
|
|
334
322
|
white-space: nowrap;
|
|
335
323
|
line-height: 1.4;
|
|
336
324
|
}
|
|
337
325
|
|
|
338
326
|
.character-count.over-limit {
|
|
339
|
-
color:
|
|
327
|
+
color: #ef4444;
|
|
340
328
|
font-weight: 500;
|
|
341
329
|
}
|
|
342
330
|
|
|
@@ -346,7 +334,7 @@ export const styles = css `
|
|
|
346
334
|
flex-direction: column;
|
|
347
335
|
align-items: stretch;
|
|
348
336
|
}
|
|
349
|
-
|
|
337
|
+
|
|
350
338
|
.character-count {
|
|
351
339
|
text-align: right;
|
|
352
340
|
}
|
|
@@ -354,7 +342,7 @@ export const styles = css `
|
|
|
354
342
|
|
|
355
343
|
/* Focus-visible for accessibility */
|
|
356
344
|
.textarea-element:focus-visible {
|
|
357
|
-
outline: 2px solid
|
|
345
|
+
outline: 2px solid #7c3aed;
|
|
358
346
|
outline-offset: 2px;
|
|
359
347
|
}
|
|
360
348
|
|
|
@@ -363,9 +351,9 @@ export const styles = css `
|
|
|
363
351
|
.textarea-element {
|
|
364
352
|
border-width: 2px;
|
|
365
353
|
}
|
|
366
|
-
|
|
354
|
+
|
|
367
355
|
.textarea-element:focus {
|
|
368
|
-
box-shadow: 0 0 0 2px
|
|
356
|
+
box-shadow: 0 0 0 2px #7c3aed;
|
|
369
357
|
}
|
|
370
358
|
}
|
|
371
359
|
|