@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
|
@@ -1,44 +1,43 @@
|
|
|
1
|
-
import{css as
|
|
1
|
+
import{css as e,html as t,nothing as o,LitElement as r}from"lit";import{property as s,state as i,customElement as n}from"lit/decorators.js";import{classMap as a}from"lit/directives/class-map.js";import{ifDefined as c}from"lit/directives/if-defined.js";
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2025 Nuraly
|
|
5
5
|
* SPDX-License-Identifier: MIT
|
|
6
|
-
*/const
|
|
6
|
+
*/const l=e`
|
|
7
7
|
:host { display: inline-block; }
|
|
8
8
|
|
|
9
9
|
.tag {
|
|
10
10
|
display: inline-flex;
|
|
11
11
|
align-items: center;
|
|
12
|
-
gap:
|
|
13
|
-
height:
|
|
14
|
-
padding:
|
|
15
|
-
font-family:
|
|
16
|
-
font-size:
|
|
12
|
+
gap: 6px;
|
|
13
|
+
height: auto;
|
|
14
|
+
padding: 0px 8px;
|
|
15
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
|
|
16
|
+
font-size: 0.75rem;
|
|
17
17
|
line-height: 1;
|
|
18
|
-
color: var(--
|
|
19
|
-
background-color: var(--
|
|
20
|
-
border: 1px solid var(--
|
|
21
|
-
border-radius:
|
|
22
|
-
transition: all
|
|
18
|
+
color: var(--nr-text, #161616);
|
|
19
|
+
background-color: var(--nr-bg, #ffffff);
|
|
20
|
+
border: 1px solid var(--nr-border, #e0e0e0);
|
|
21
|
+
border-radius: 4px;
|
|
22
|
+
transition: all 0.15s ease;
|
|
23
23
|
user-select: none;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
.tag--borderless { border-color: transparent; }
|
|
27
27
|
|
|
28
28
|
.tag--small {
|
|
29
|
-
padding:
|
|
30
|
-
font-size:
|
|
29
|
+
padding: 0px 6px;
|
|
30
|
+
font-size: 0.625rem;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
/* Checkable behavior */
|
|
34
33
|
.tag--checkable { cursor: pointer; }
|
|
35
34
|
.tag--checkable:not(.tag--disabled):hover {
|
|
36
|
-
background-color: var(--
|
|
35
|
+
background-color: var(--nr-bg-hover, #f4f4f4);
|
|
37
36
|
}
|
|
38
37
|
.tag--checkable.tag--checked {
|
|
39
|
-
background-color:
|
|
40
|
-
color:
|
|
41
|
-
border-color:
|
|
38
|
+
background-color: #e6f0ff;
|
|
39
|
+
color: #0353e9;
|
|
40
|
+
border-color: #a6c8ff;
|
|
42
41
|
}
|
|
43
42
|
|
|
44
43
|
.tag--disabled { opacity: 0.6; cursor: not-allowed; }
|
|
@@ -58,17 +57,15 @@ import{css as o,LitElement as r,html as a,nothing as t}from"lit";import{property
|
|
|
58
57
|
background: transparent;
|
|
59
58
|
color: currentColor;
|
|
60
59
|
cursor: pointer;
|
|
61
|
-
border-radius:
|
|
62
|
-
transition: background-color
|
|
60
|
+
border-radius: 2px;
|
|
61
|
+
transition: background-color 0.15s ease, opacity 0.15s ease;
|
|
63
62
|
}
|
|
64
|
-
.tag__close:hover { background-color: var(--
|
|
63
|
+
.tag__close:hover { background-color: var(--nr-bg-hover, #f4f4f4); }
|
|
65
64
|
.tag__close:disabled { cursor: not-allowed; opacity: 0.6; }
|
|
66
65
|
|
|
67
|
-
/* Closing animation (height/opacity collapse) */
|
|
68
66
|
@keyframes tagFadeOut { from { opacity: 1; } to { opacity: 0; } }
|
|
69
67
|
.tag--closing { animation: tagFadeOut 0.2s ease forwards; }
|
|
70
68
|
|
|
71
|
-
/* Preset solid color tags similar to AntD */
|
|
72
69
|
.tag--magenta { background-color: #f759ab; border-color: #f759ab; color: #fff; }
|
|
73
70
|
.tag--red { background-color: #ff4d4f; border-color: #ff4d4f; color: #fff; }
|
|
74
71
|
.tag--volcano { background-color: #fa541c; border-color: #fa541c; color: #fff; }
|
|
@@ -81,28 +78,39 @@ import{css as o,LitElement as r,html as a,nothing as t}from"lit";import{property
|
|
|
81
78
|
.tag--geekblue { background-color: #2f54eb; border-color: #2f54eb; color: #fff; }
|
|
82
79
|
.tag--purple { background-color: #722ed1; border-color: #722ed1; color: #fff; }
|
|
83
80
|
|
|
84
|
-
|
|
85
|
-
.tag--custom { background-color: var(--nr-tag-custom-bg); border-color: var(--nr-tag-custom-bg); color: var(--nuraly-color-text-on-color, #fff); }
|
|
81
|
+
.tag--custom { background-color: var(--nr-tag-custom-bg); border-color: var(--nr-tag-custom-bg); color: #fff; }
|
|
86
82
|
`
|
|
83
|
+
/**
|
|
84
|
+
* @license
|
|
85
|
+
* Copyright 2023 Nuraly, Laabidi Aymen
|
|
86
|
+
* SPDX-License-Identifier: MIT
|
|
87
|
+
*/,d=e=>class extends e{constructor(){super(...arguments),this.handleSystemThemeChange=()=>{this.closest("[data-theme]")||document.documentElement.hasAttribute("data-theme")||this.requestUpdate()}}connectedCallback(){super.connectedCallback(),this.setupThemeObserver(),this.setupDesignSystemObserver(),this.setupSystemThemeListener()}disconnectedCallback(){var e,t,o;super.disconnectedCallback(),null===(e=this.themeObserver)||void 0===e||e.disconnect(),null===(t=this.designSystemObserver)||void 0===t||t.disconnect(),null===(o=this.mediaQuery)||void 0===o||o.removeEventListener("change",this.handleSystemThemeChange)}get currentTheme(){var e,t;const o=(null===(e=this.closest("[data-theme]"))||void 0===e?void 0:e.getAttribute("data-theme"))||document.documentElement.getAttribute("data-theme");return o||((null===(t=window.matchMedia)||void 0===t?void 0:t.call(window,"(prefers-color-scheme: dark)").matches)?"dark":"light")}get currentDesignSystem(){var e;const t=(null===(e=this.closest("[design-system]"))||void 0===e?void 0:e.getAttribute("design-system"))||document.documentElement.getAttribute("design-system");return"carbon"===t?t:"default"}setupThemeObserver(){this.themeObserver=new MutationObserver(()=>{this.requestUpdate()}),this.themeObserver.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]})}setupDesignSystemObserver(){this.designSystemObserver=new MutationObserver(()=>{this.requestUpdate()}),this.designSystemObserver.observe(document.documentElement,{attributes:!0,attributeFilter:["design-system"]})}setupSystemThemeListener(){window.matchMedia&&(this.mediaQuery=window.matchMedia("(prefers-color-scheme: dark)"),this.mediaQuery.addEventListener("change",this.handleSystemThemeChange))}},h=()=>{var e;return void 0!==globalThis.litElementVersions||"undefined"!=typeof process&&"development"===(null===(e=process.env)||void 0===e?void 0:e.NODE_ENV)||"undefined"!=typeof window&&("localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname)},u=e=>class extends e{constructor(){super(...arguments),this.requiredComponents=[]}validateDependencies(){if(h())for(const e of this.requiredComponents)if(!this.isComponentAvailable(e))throw new Error(`Required component "${e}" is not registered. Please import and register the component before using ${this.tagName.toLowerCase()}. Example: import '@nuralyui/${e}';`)}validateDependenciesWithHandler(e){if(!h())return!0;let t=!0;for(const o of this.requiredComponents)if(!this.isComponentAvailable(o)){t=!1;const r=new Error(`Required component "${o}" is not registered. Please import and register the component before using ${this.tagName.toLowerCase()}.`);e?e(o,r):console.error(r.message)}return t}isComponentAvailable(e){return!!customElements.get(e)}getMissingDependencies(){return this.requiredComponents.filter(e=>!this.isComponentAvailable(e))}areDependenciesAvailable(){return this.requiredComponents.every(e=>this.isComponentAvailable(e))}addRequiredComponent(e){this.requiredComponents.includes(e)||this.requiredComponents.push(e)}removeRequiredComponent(e){const t=this.requiredComponents.indexOf(e);t>-1&&this.requiredComponents.splice(t,1)}},g=e=>class extends e{dispatchCustomEvent(e,t){this.dispatchEvent(new CustomEvent(e,{detail:t,bubbles:!0,composed:!0}))}dispatchEventWithMetadata(e,t){var o;const r=Object.assign(Object.assign({},t),{timestamp:Date.now(),componentName:(null===(o=this.tagName)||void 0===o?void 0:o.toLowerCase())||"unknown"});this.dispatchCustomEvent(e,r)}dispatchInputEvent(e,t){const o=Object.assign({target:t.target||this,value:t.value,originalEvent:t.originalEvent},t);this.dispatchCustomEvent(e,o)}dispatchFocusEvent(e,t){const o=Object.assign({target:t.target||this,value:t.value,focused:t.focused,cursorPosition:t.cursorPosition,selectedText:t.selectedText},t);this.dispatchCustomEvent(e,o)}dispatchValidationEvent(e,t){var o;const r=Object.assign({target:t.target||this,value:t.value,isValid:null!==(o=t.isValid)&&void 0!==o&&o,error:t.error},t);this.dispatchCustomEvent(e,r)}dispatchActionEvent(e,t){const o=Object.assign({target:t.target||this,action:t.action,previousValue:t.previousValue,newValue:t.newValue},t);this.dispatchCustomEvent(e,o)}isReadonlyKeyAllowed(e){if(e.ctrlKey||e.metaKey){return["KeyA","KeyC"].includes(e.code)}return["Tab","Escape","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(e.key)}isActivationKey(e){return"Enter"===e.key||" "===e.key}},f=new Set,b=new Map;
|
|
88
|
+
/**
|
|
89
|
+
* @license
|
|
90
|
+
* Copyright 2023 Nuraly, Laabidi Aymen
|
|
91
|
+
* SPDX-License-Identifier: MIT
|
|
92
|
+
*/
|
|
93
|
+
const p=e=>{class t extends e{constructor(){super(...arguments),this.t=null}createRenderRoot(){return this.constructor.useShadowDom?super.createRenderRoot():this}connectedCallback(){const e=this.constructor.useShadowDom;if(!e&&null===this.t)for(this.t=[];this.firstChild;)this.t.push(this.removeChild(this.firstChild));if(super.connectedCallback(),!e){const e=this.constructor,t=this.tagName.toLowerCase(),o=e.styles;if(o){const e=m(o);e&&function(e,t,o){var r;if(!b.has(e)){const o=new CSSStyleSheet;o.replaceSync(t),b.set(e,o)}const s=b.get(e),i=`doc:${e}`;if(f.has(i)||(document.adoptedStyleSheets=[...document.adoptedStyleSheets,s],f.add(i)),o){let t=o;for(;t;){const o=t.getRootNode();if(!(o instanceof ShadowRoot))break;{const i=`shadow:${((null===(r=o.host)||void 0===r?void 0:r.tagName)||"").toLowerCase()}:${e}`;f.has(i)||(o.adoptedStyleSheets=[...o.adoptedStyleSheets,s],f.add(i)),t=o.host}}}}(t,e,this)}}}get lightChildren(){return this.t?this.t.filter(e=>!(e instanceof Element&&e.hasAttribute("slot"))):[]}lightChildrenNamed(e){return this.t?this.t.filter(t=>t instanceof Element&&t.getAttribute("slot")===e):[]}}return t.useShadowDom=!1,t};function m(e){return Array.isArray(e)?e.map(e=>m(e)).filter(Boolean).join("\n"):e&&"string"==typeof e.cssText?e.cssText:"string"==typeof e?e:""}
|
|
87
94
|
/**
|
|
88
95
|
* @license
|
|
89
96
|
* Copyright 2025 Nuraly
|
|
90
97
|
* SPDX-License-Identifier: MIT
|
|
91
|
-
|
|
98
|
+
*/var v=function(e,t,o,r){for(var s,i=arguments.length,n=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r,a=e.length-1;a>=0;a--)(s=e[a])&&(n=(i<3?s(n):i>3?s(t,o,n):s(t,o))||n);return i>3&&n&&Object.defineProperty(t,o,n),n};let k=class extends((e=>u(d(g(p(e)))))(r)){constructor(){super(...arguments),this.bordered=!0,this.size="default",this.closable=!1,this.checkable=!1,this.checked=!1,this.disabled=!1,this.closing=!1}onCloseClick(e){e.stopPropagation(),this.closable&&!this.disabled&&(this.closing=!0,setTimeout(()=>{this.dispatchEvent(new CustomEvent("nr-tag-close",{bubbles:!0,composed:!0})),this.closing=!1},200))}onToggleChecked(){this.checkable&&!this.disabled&&(this.checked=!this.checked,this.dispatchEvent(new CustomEvent("nr-tag-checked-change",{detail:{checked:this.checked},bubbles:!0,composed:!0})))}isPreset(e){return!!e&&y.has(e)}render(){const e=null!==this.querySelector('[slot="icon"]'),r=!!this.color&&!this.isPreset(this.color),s=Object.assign(Object.assign({tag:!0,"tag--small":"small"===this.size,"tag--borderless":!this.bordered,"tag--closable":this.closable,"tag--checkable":this.checkable,"tag--checked":this.checkable&&this.checked,"tag--disabled":this.disabled,"tag--closing":this.closing},this.color&&this.isPreset(this.color)?{[`tag--${this.color}`]:!0}:{}),{"tag--custom":r}),i={};r&&this.color&&(i["--nr-tag-custom-bg"]=this.color);const n=this.checkable?"switch":"button",l=this.checkable?this.checked?"true":"false":void 0;return t`
|
|
92
99
|
<span
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
100
|
+
part="tag"
|
|
101
|
+
class=${a(s)}
|
|
102
|
+
style=${Object.entries(i).map(([e,t])=>`${e}: ${t}`).join(";")}
|
|
103
|
+
role=${n}
|
|
104
|
+
aria-pressed=${c(l)}
|
|
97
105
|
aria-disabled=${this.disabled?"true":"false"}
|
|
98
106
|
@click=${this.checkable?this.onToggleChecked:void 0}
|
|
99
107
|
>
|
|
100
|
-
${
|
|
101
|
-
<span class="tag__content"><slot></slot></span>
|
|
102
|
-
${this.closable?
|
|
108
|
+
${e?t`<span part="icon" class="tag__icon"><slot name="icon"></slot></span>`:o}
|
|
109
|
+
<span part="content" class="tag__content"><slot></slot></span>
|
|
110
|
+
${this.closable?t`
|
|
103
111
|
<button class="tag__close" part="close" aria-label="close" ?disabled=${this.disabled} @click=${this.onCloseClick}>
|
|
104
112
|
×
|
|
105
113
|
</button>
|
|
106
|
-
`:
|
|
114
|
+
`:o}
|
|
107
115
|
</span>
|
|
108
|
-
`}};
|
|
116
|
+
`}};k.styles=l,k.useShadowDom=!0,v([s({type:String})],k.prototype,"color",void 0),v([s({type:Boolean,reflect:!0})],k.prototype,"bordered",void 0),v([s({type:String})],k.prototype,"size",void 0),v([s({type:Boolean})],k.prototype,"closable",void 0),v([s({type:Boolean})],k.prototype,"checkable",void 0),v([s({type:Boolean,reflect:!0})],k.prototype,"checked",void 0),v([s({type:Boolean,reflect:!0})],k.prototype,"disabled",void 0),v([i()],k.prototype,"closing",void 0),k=v([n("nr-tag")],k);const y=new Set(["magenta","red","volcano","orange","gold","lime","green","cyan","blue","geekblue","purple"]);export{k as NrTagElement};
|
|
Binary file
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { LitElement } from 'lit';
|
|
7
7
|
import { TagSize } from './tag.types.js';
|
|
8
|
-
declare const NrTagElement_base: (new (...args: any[]) => import("@nuralyui/common/mixins").DependencyAware) & (new (...args: any[]) => import("@nuralyui/common/mixins").ThemeAware) & (new (...args: any[]) => import("@nuralyui/common/mixins").EventHandlerCapable) & typeof LitElement;
|
|
8
|
+
declare const NrTagElement_base: (new (...args: any[]) => import("@nuralyui/common/mixins").DependencyAware) & (new (...args: any[]) => import("@nuralyui/common/mixins").ThemeAware) & (new (...args: any[]) => import("@nuralyui/common/mixins").EventHandlerCapable) & (new (...args: any[]) => import("packages/common/src/shared/base-mixin.js").LightDomContent) & typeof LitElement;
|
|
9
9
|
/**
|
|
10
10
|
* Tag component
|
|
11
11
|
* Features:
|
|
@@ -14,15 +14,20 @@ declare const NrTagElement_base: (new (...args: any[]) => import("@nuralyui/comm
|
|
|
14
14
|
* - Checkable tags with checked state and change event
|
|
15
15
|
* - Small size variant
|
|
16
16
|
* - Disabled state
|
|
17
|
-
* - Theme-aware through CSS variables
|
|
18
17
|
*
|
|
19
18
|
* @slot - Tag content
|
|
20
19
|
* @slot icon - Optional leading icon
|
|
21
20
|
* @fires nr-tag-close - when the close icon is clicked
|
|
22
21
|
* @fires nr-tag-checked-change - when a checkable tag toggles
|
|
22
|
+
*
|
|
23
|
+
* @csspart tag - The root span element of the tag
|
|
24
|
+
* @csspart icon - The wrapper span around the icon slot
|
|
25
|
+
* @csspart content - The span wrapping the default text slot
|
|
26
|
+
* @csspart close - The close button shown when closable is true
|
|
23
27
|
*/
|
|
24
28
|
export declare class NrTagElement extends NrTagElement_base {
|
|
25
29
|
static styles: import("lit").CSSResult;
|
|
30
|
+
static useShadowDom: boolean;
|
|
26
31
|
/** Tag color preset or custom color string (hex/rgb) */
|
|
27
32
|
color?: string;
|
|
28
33
|
/** Bordered style */
|
|
@@ -39,10 +44,6 @@ export declare class NrTagElement extends NrTagElement_base {
|
|
|
39
44
|
disabled: boolean;
|
|
40
45
|
/** Internal closing anim state */
|
|
41
46
|
private closing;
|
|
42
|
-
/** Track if an icon is actually provided via slot */
|
|
43
|
-
private lightDomObserver?;
|
|
44
|
-
connectedCallback(): void;
|
|
45
|
-
disconnectedCallback(): void;
|
|
46
47
|
private onCloseClick;
|
|
47
48
|
private onToggleChecked;
|
|
48
49
|
private isPreset;
|
|
@@ -23,12 +23,16 @@ import { NuralyUIBaseMixin } from '@nuralyui/common/mixins';
|
|
|
23
23
|
* - Checkable tags with checked state and change event
|
|
24
24
|
* - Small size variant
|
|
25
25
|
* - Disabled state
|
|
26
|
-
* - Theme-aware through CSS variables
|
|
27
26
|
*
|
|
28
27
|
* @slot - Tag content
|
|
29
28
|
* @slot icon - Optional leading icon
|
|
30
29
|
* @fires nr-tag-close - when the close icon is clicked
|
|
31
30
|
* @fires nr-tag-checked-change - when a checkable tag toggles
|
|
31
|
+
*
|
|
32
|
+
* @csspart tag - The root span element of the tag
|
|
33
|
+
* @csspart icon - The wrapper span around the icon slot
|
|
34
|
+
* @csspart content - The span wrapping the default text slot
|
|
35
|
+
* @csspart close - The close button shown when closable is true
|
|
32
36
|
*/
|
|
33
37
|
let NrTagElement = class NrTagElement extends NuralyUIBaseMixin(LitElement) {
|
|
34
38
|
constructor() {
|
|
@@ -48,21 +52,6 @@ let NrTagElement = class NrTagElement extends NuralyUIBaseMixin(LitElement) {
|
|
|
48
52
|
/** Internal closing anim state */
|
|
49
53
|
this.closing = false;
|
|
50
54
|
}
|
|
51
|
-
connectedCallback() {
|
|
52
|
-
super.connectedCallback();
|
|
53
|
-
// Observe light DOM children to detect when an icon slot is added/removed dynamically
|
|
54
|
-
this.lightDomObserver = new MutationObserver(() => {
|
|
55
|
-
// Trigger re-render so we can recompute hasIcon in render()
|
|
56
|
-
this.requestUpdate();
|
|
57
|
-
});
|
|
58
|
-
this.lightDomObserver.observe(this, { childList: true, subtree: false, attributes: true, attributeFilter: ['slot'] });
|
|
59
|
-
}
|
|
60
|
-
disconnectedCallback() {
|
|
61
|
-
var _a;
|
|
62
|
-
(_a = this.lightDomObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
63
|
-
this.lightDomObserver = undefined;
|
|
64
|
-
super.disconnectedCallback();
|
|
65
|
-
}
|
|
66
55
|
onCloseClick(e) {
|
|
67
56
|
e.stopPropagation();
|
|
68
57
|
if (!this.closable || this.disabled)
|
|
@@ -91,7 +80,7 @@ let NrTagElement = class NrTagElement extends NuralyUIBaseMixin(LitElement) {
|
|
|
91
80
|
return PRESET_COLOR_SET.has(color);
|
|
92
81
|
}
|
|
93
82
|
render() {
|
|
94
|
-
const hasIcon =
|
|
83
|
+
const hasIcon = this.querySelector('[slot="icon"]') !== null;
|
|
95
84
|
const isCustom = !!this.color && !this.isPreset(this.color);
|
|
96
85
|
const classes = Object.assign(Object.assign({ tag: true, 'tag--small': this.size === "small" /* TagSize.Small */, 'tag--borderless': !this.bordered, 'tag--closable': this.closable, 'tag--checkable': this.checkable, 'tag--checked': this.checkable && this.checked, 'tag--disabled': this.disabled, 'tag--closing': this.closing }, (this.color && this.isPreset(this.color) ? { [`tag--${this.color}`]: true } : {})), {
|
|
97
86
|
// custom color modifier
|
|
@@ -104,6 +93,7 @@ let NrTagElement = class NrTagElement extends NuralyUIBaseMixin(LitElement) {
|
|
|
104
93
|
const ariaPressed = this.checkable ? (this.checked ? 'true' : 'false') : undefined;
|
|
105
94
|
return html `
|
|
106
95
|
<span
|
|
96
|
+
part="tag"
|
|
107
97
|
class=${classMap(classes)}
|
|
108
98
|
style=${Object.entries(styleMap).map(([k, v]) => `${k}: ${v}`).join(';')}
|
|
109
99
|
role=${role}
|
|
@@ -111,8 +101,8 @@ let NrTagElement = class NrTagElement extends NuralyUIBaseMixin(LitElement) {
|
|
|
111
101
|
aria-disabled=${this.disabled ? 'true' : 'false'}
|
|
112
102
|
@click=${this.checkable ? this.onToggleChecked : undefined}
|
|
113
103
|
>
|
|
114
|
-
${hasIcon ? html `<span class="tag__icon"><slot name="icon"></slot></span>` : nothing}
|
|
115
|
-
<span class="tag__content"><slot></slot></span>
|
|
104
|
+
${hasIcon ? html `<span part="icon" class="tag__icon"><slot name="icon"></slot></span>` : nothing}
|
|
105
|
+
<span part="content" class="tag__content"><slot></slot></span>
|
|
116
106
|
${this.closable ? html `
|
|
117
107
|
<button class="tag__close" part="close" aria-label="close" ?disabled=${this.disabled} @click=${this.onCloseClick}>
|
|
118
108
|
×
|
|
@@ -123,6 +113,7 @@ let NrTagElement = class NrTagElement extends NuralyUIBaseMixin(LitElement) {
|
|
|
123
113
|
}
|
|
124
114
|
};
|
|
125
115
|
NrTagElement.styles = styles;
|
|
116
|
+
NrTagElement.useShadowDom = true;
|
|
126
117
|
__decorate([
|
|
127
118
|
property({ type: String })
|
|
128
119
|
], NrTagElement.prototype, "color", void 0);
|
|
@@ -10,36 +10,35 @@ export const styles = css `
|
|
|
10
10
|
.tag {
|
|
11
11
|
display: inline-flex;
|
|
12
12
|
align-items: center;
|
|
13
|
-
gap:
|
|
14
|
-
height:
|
|
15
|
-
padding:
|
|
16
|
-
font-family:
|
|
17
|
-
font-size:
|
|
13
|
+
gap: 6px;
|
|
14
|
+
height: auto;
|
|
15
|
+
padding: 0px 8px;
|
|
16
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
|
|
17
|
+
font-size: 0.75rem;
|
|
18
18
|
line-height: 1;
|
|
19
|
-
color: var(--
|
|
20
|
-
background-color: var(--
|
|
21
|
-
border: 1px solid var(--
|
|
22
|
-
border-radius:
|
|
23
|
-
transition: all
|
|
19
|
+
color: var(--nr-text, #161616);
|
|
20
|
+
background-color: var(--nr-bg, #ffffff);
|
|
21
|
+
border: 1px solid var(--nr-border, #e0e0e0);
|
|
22
|
+
border-radius: 4px;
|
|
23
|
+
transition: all 0.15s ease;
|
|
24
24
|
user-select: none;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.tag--borderless { border-color: transparent; }
|
|
28
28
|
|
|
29
29
|
.tag--small {
|
|
30
|
-
padding:
|
|
31
|
-
font-size:
|
|
30
|
+
padding: 0px 6px;
|
|
31
|
+
font-size: 0.625rem;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
/* Checkable behavior */
|
|
35
34
|
.tag--checkable { cursor: pointer; }
|
|
36
35
|
.tag--checkable:not(.tag--disabled):hover {
|
|
37
|
-
background-color: var(--
|
|
36
|
+
background-color: var(--nr-bg-hover, #f4f4f4);
|
|
38
37
|
}
|
|
39
38
|
.tag--checkable.tag--checked {
|
|
40
|
-
background-color:
|
|
41
|
-
color:
|
|
42
|
-
border-color:
|
|
39
|
+
background-color: #e6f0ff;
|
|
40
|
+
color: #0353e9;
|
|
41
|
+
border-color: #a6c8ff;
|
|
43
42
|
}
|
|
44
43
|
|
|
45
44
|
.tag--disabled { opacity: 0.6; cursor: not-allowed; }
|
|
@@ -59,17 +58,15 @@ export const styles = css `
|
|
|
59
58
|
background: transparent;
|
|
60
59
|
color: currentColor;
|
|
61
60
|
cursor: pointer;
|
|
62
|
-
border-radius:
|
|
63
|
-
transition: background-color
|
|
61
|
+
border-radius: 2px;
|
|
62
|
+
transition: background-color 0.15s ease, opacity 0.15s ease;
|
|
64
63
|
}
|
|
65
|
-
.tag__close:hover { background-color: var(--
|
|
64
|
+
.tag__close:hover { background-color: var(--nr-bg-hover, #f4f4f4); }
|
|
66
65
|
.tag__close:disabled { cursor: not-allowed; opacity: 0.6; }
|
|
67
66
|
|
|
68
|
-
/* Closing animation (height/opacity collapse) */
|
|
69
67
|
@keyframes tagFadeOut { from { opacity: 1; } to { opacity: 0; } }
|
|
70
68
|
.tag--closing { animation: tagFadeOut 0.2s ease forwards; }
|
|
71
69
|
|
|
72
|
-
/* Preset solid color tags similar to AntD */
|
|
73
70
|
.tag--magenta { background-color: #f759ab; border-color: #f759ab; color: #fff; }
|
|
74
71
|
.tag--red { background-color: #ff4d4f; border-color: #ff4d4f; color: #fff; }
|
|
75
72
|
.tag--volcano { background-color: #fa541c; border-color: #fa541c; color: #fff; }
|
|
@@ -82,7 +79,6 @@ export const styles = css `
|
|
|
82
79
|
.tag--geekblue { background-color: #2f54eb; border-color: #2f54eb; color: #fff; }
|
|
83
80
|
.tag--purple { background-color: #722ed1; border-color: #722ed1; color: #fff; }
|
|
84
81
|
|
|
85
|
-
|
|
86
|
-
.tag--custom { background-color: var(--nr-tag-custom-bg); border-color: var(--nr-tag-custom-bg); color: var(--nuraly-color-text-on-color, #fff); }
|
|
82
|
+
.tag--custom { background-color: var(--nr-tag-custom-bg); border-color: var(--nr-tag-custom-bg); color: #fff; }
|
|
87
83
|
`;
|
|
88
84
|
//# sourceMappingURL=tag.style.js.map
|