@haklex/rich-renderer-alert 0.0.19 → 0.0.21

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.
@@ -1,159 +1 @@
1
- .pq4lod2 {
2
- --pq4lod0: var(--rc-alert-info);
3
- }
4
- .pq4lod3 {
5
- --pq4lod0: var(--rc-alert-tip);
6
- }
7
- .pq4lod4 {
8
- --pq4lod0: var(--rc-alert-important);
9
- }
10
- .pq4lod5 {
11
- --pq4lod0: var(--rc-alert-warning);
12
- }
13
- .pq4lod6 {
14
- --pq4lod0: var(--rc-alert-caution);
15
- }
16
- .pq4lod7 {
17
- display: flex;
18
- align-items: center;
19
- gap: 8px;
20
- font-weight: 600;
21
- text-transform: uppercase;
22
- letter-spacing: 0.02em;
23
- font-size: 0.875rem;
24
- line-height: 1;
25
- margin-bottom: 6px;
26
- }
27
- .pq4lod8 {
28
- display: inline-flex;
29
- align-items: center;
30
- gap: 6px;
31
- cursor: pointer;
32
- padding: 2px 6px;
33
- border-radius: 4px;
34
- margin-inline: -6px;
35
- border: none;
36
- background: none;
37
- font: inherit;
38
- font-weight: 600;
39
- text-transform: uppercase;
40
- letter-spacing: 0.02em;
41
- font-size: 0.875rem;
42
- line-height: 1;
43
- transition: background-color 0.15s;
44
- }
45
- .pq4lod8:hover {
46
- background-color: color-mix(in srgb, var(--rc-text) 5%, transparent);
47
- }
48
- .pq4lod9 {
49
- opacity: 0;
50
- transition: opacity 0.15s;
51
- width: 14px;
52
- height: 14px;
53
- flex-shrink: 0;
54
- }
55
- .pq4lod8:hover .pq4lod9 {
56
- opacity: 0.6;
57
- }
58
- .pq4lod8[data-popup-open] .pq4lod9 {
59
- opacity: 0.8;
60
- }
61
- .pq4loda {
62
- width: 16px;
63
- height: 16px;
64
- flex-shrink: 0;
65
- color: var(--pq4lod0);
66
- }
67
- .pq4lodb {
68
- color: var(--pq4lod0);
69
- }
70
- .pq4lodc {
71
- width: 16px;
72
- height: 16px;
73
- flex-shrink: 0;
74
- color: var(--pq4lod0);
75
- }
76
- .rich-alert {
77
- position: relative;
78
- padding: var(--rc-space-md);
79
- padding-left: calc(var(--rc-space-md) + 4px);
80
- border-radius: 0 var(--rc-radius-sm) var(--rc-radius-sm) 0;
81
- margin: var(--rc-space-md) 0;
82
- background-color: var(--rc-bg-secondary);
83
- }
84
- .rich-alert::before {
85
- content: "";
86
- position: absolute;
87
- left: 0;
88
- top: 0;
89
- bottom: 0;
90
- width: 4px;
91
- border-radius: var(--rc-radius-sm);
92
- }
93
- .rich-alert-header {
94
- position: relative;
95
- display: flex;
96
- align-items: center;
97
- gap: var(--rc-space-sm);
98
- font-weight: 600;
99
- margin-bottom: var(--rc-space-md);
100
- font-size: var(--rc-font-size-small);
101
- text-transform: uppercase;
102
- letter-spacing: 0.02em;
103
- line-height: 1;
104
- }
105
- .rich-alert-icon {
106
- display: inline-flex;
107
- width: 16px;
108
- height: 16px;
109
- flex-shrink: 0;
110
- }
111
- .rich-alert-content {
112
- min-height: 1em;
113
- }
114
- .rich-alert-content-editable {
115
- outline: none;
116
- }
117
- .rich-alert-content > .rich-paragraph:first-child {
118
- margin-top: 0;
119
- }
120
- .rich-alert-content > .rich-paragraph:last-child {
121
- margin-bottom: 0;
122
- }
123
- .rich-alert-content .rich-paragraph {
124
- margin: 0;
125
- margin-bottom: 0.5em;
126
- }
127
- .rich-alert-content .rich-paragraph:last-child {
128
- margin-bottom: 0;
129
- }
130
- .rich-alert-note::before {
131
- background-color: var(--rc-alert-info);
132
- }
133
- .rich-alert-header-note {
134
- color: var(--rc-alert-info);
135
- }
136
- .rich-alert-tip::before {
137
- background-color: var(--rc-alert-tip);
138
- }
139
- .rich-alert-header-tip {
140
- color: var(--rc-alert-tip);
141
- }
142
- .rich-alert-important::before {
143
- background-color: var(--rc-alert-important);
144
- }
145
- .rich-alert-header-important {
146
- color: var(--rc-alert-important);
147
- }
148
- .rich-alert-warning::before {
149
- background-color: var(--rc-alert-warning);
150
- }
151
- .rich-alert-header-warning {
152
- color: var(--rc-alert-warning);
153
- }
154
- .rich-alert-caution::before {
155
- background-color: var(--rc-alert-caution);
156
- }
157
- .rich-alert-header-caution {
158
- color: var(--rc-alert-caution);
159
- }
1
+ .pq4lod2{--pq4lod0: var(--rc-alert-info)}.pq4lod3{--pq4lod0: var(--rc-alert-tip)}.pq4lod4{--pq4lod0: var(--rc-alert-important)}.pq4lod5{--pq4lod0: var(--rc-alert-warning)}.pq4lod6{--pq4lod0: var(--rc-alert-caution)}.pq4lod7{display:flex;align-items:center;gap:8px;font-weight:600;text-transform:uppercase;letter-spacing:.02em;font-size:var(--rc-font-size-md);line-height:1;margin-bottom:6px}.pq4lod8{display:inline-flex;align-items:center;gap:6px;cursor:pointer;padding:2px 6px;border-radius:4px;margin-inline:-6px;border:none;background:none;font:inherit;font-weight:600;text-transform:uppercase;letter-spacing:.02em;font-size:var(--rc-font-size-md);line-height:1;transition:background-color .15s}.pq4lod8:hover{background-color:color-mix(in srgb,var(--rc-text) 5%,transparent)}.pq4lod9{opacity:0;transition:opacity .15s;width:14px;height:14px;flex-shrink:0}.pq4lod8:hover .pq4lod9{opacity:.6}.pq4lod8[data-popup-open] .pq4lod9{opacity:.8}.pq4loda{width:16px;height:16px;flex-shrink:0;color:var(--pq4lod0)}.pq4lodb{color:var(--pq4lod0)}.pq4lodc{width:16px;height:16px;flex-shrink:0;color:var(--pq4lod0)}.rich-alert{position:relative;padding:var(--rc-space-md);padding-left:calc(var(--rc-space-md) + 4px);border-radius:0 var(--rc-radius-sm) var(--rc-radius-sm) 0;margin:var(--rc-space-md) 0;background-color:var(--rc-bg-secondary)}.rich-alert:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;border-radius:var(--rc-radius-sm)}.rich-alert-header{position:relative;display:flex;align-items:center;gap:var(--rc-space-sm);font-weight:600;margin-bottom:var(--rc-space-md);font-size:var(--rc-font-size-md);text-transform:uppercase;letter-spacing:.02em;line-height:1}.rich-alert-icon{display:inline-flex;width:16px;height:16px;flex-shrink:0}.rich-alert-content{min-height:1em}.rich-alert-content-editable{outline:none}.rich-alert-content>.rich-paragraph:first-child{margin-top:0}.rich-alert-content>.rich-paragraph:last-child{margin-bottom:0}.rich-alert-content .rich-paragraph{margin:0 0 .5em}.rich-alert-content .rich-paragraph:last-child{margin-bottom:0}.rich-alert-note:before{background-color:var(--rc-alert-info)}.rich-alert-header-note{color:var(--rc-alert-info)}.rich-alert-tip:before{background-color:var(--rc-alert-tip)}.rich-alert-header-tip{color:var(--rc-alert-tip)}.rich-alert-important:before{background-color:var(--rc-alert-important)}.rich-alert-header-important{color:var(--rc-alert-important)}.rich-alert-warning:before{background-color:var(--rc-alert-warning)}.rich-alert-header-warning{color:var(--rc-alert-warning)}.rich-alert-caution:before{background-color:var(--rc-alert-caution)}.rich-alert-header-caution{color:var(--rc-alert-caution)}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haklex/rich-renderer-alert",
3
- "version": "0.0.19",
3
+ "version": "0.0.21",
4
4
  "description": "Alert renderer for haklex rich editor",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -17,9 +17,9 @@
17
17
  ],
18
18
  "dependencies": {
19
19
  "lucide-react": "^0.574.0",
20
- "@haklex/rich-editor": "0.0.19",
21
- "@haklex/rich-style-token": "0.0.19",
22
- "@haklex/rich-editor-ui": "0.0.19"
20
+ "@haklex/rich-editor": "0.0.21",
21
+ "@haklex/rich-style-token": "0.0.21",
22
+ "@haklex/rich-editor-ui": "0.0.21"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@types/react": "^19.2.14",