@hyvor/design 2.1.18 → 2.1.20-beta.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/components/Button/Button.svelte +413 -349
- package/dist/components/ButtonGroup/ButtonGroup.svelte +62 -63
- package/dist/components/Dropdown/Dropdown.svelte +14 -12
- package/dist/components/Dropdown/Dropdown.svelte.d.ts +1 -0
- package/dist/components/Dropdown/DropdownContent.svelte +21 -13
- package/dist/components/FileUploader/FileUploader.svelte +19 -17
- package/dist/components/FileUploader/Media/Media.svelte +44 -44
- package/dist/components/FileUploader/TabUpload/TabUpload.svelte +47 -45
- package/dist/components/FileUploader/Unsplash/Unsplash.svelte +38 -38
- package/dist/components/FormControl/Validation.svelte +30 -30
- package/dist/components/IconButton/IconButton.svelte +266 -204
- package/dist/components/Kbd/Kbd.svelte +33 -28
- package/dist/components/Loader/Loader.svelte +81 -78
- package/dist/components/Radio/Radio.svelte +71 -69
- package/dist/components/SplitControl/SplitControl.svelte +45 -40
- package/dist/components/Tag/Tag.svelte +152 -130
- package/dist/components/TextInput/TextInput.svelte +90 -89
- package/dist/components/Textarea/Textarea.svelte +1 -2
- package/dist/components/Tooltip/Tooltip.svelte +4 -1
- package/dist/components/Usage/Usage.svelte +40 -40
- package/dist/components/directives/clickOutside.d.ts +2 -1
- package/dist/components/directives/clickOutside.js +25 -7
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/marketing/Docs/Toc.svelte +103 -91
- package/dist/marketing/Document/Document.svelte +77 -62
- package/dist/marketing/Testimonials/Testimonials.svelte +3 -27
- package/dist/marketing/Testimonials/Testimonials.svelte.d.ts +0 -1
- package/dist/{variables.scss → variables.css} +1 -7
- package/package.json +20 -20
|
@@ -80,133 +80,155 @@
|
|
|
80
80
|
{/if}
|
|
81
81
|
</svelte:element>
|
|
82
82
|
|
|
83
|
-
<style>
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
span.interactive:hover {
|
|
124
|
-
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
span.style-default
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
83
|
+
<style>
|
|
84
|
+
span {
|
|
85
|
+
vertical-align: middle;
|
|
86
|
+
border-radius: 20px;
|
|
87
|
+
display: inline-flex;
|
|
88
|
+
align-items: center;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
span.has-start :global(> *:first-child) {
|
|
92
|
+
margin-right: 5px;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
span.has-end :global(> *:last-child) {
|
|
96
|
+
margin-left: 5px;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
span.size-x-small {
|
|
100
|
+
font-size: 10px;
|
|
101
|
+
padding: 2px 7px;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
span.size-small {
|
|
105
|
+
font-size: 12px;
|
|
106
|
+
padding: 2px 9px;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
span.size-medium {
|
|
110
|
+
font-size: 14px;
|
|
111
|
+
padding: 3px 12px;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
span.size-large {
|
|
115
|
+
font-size: 16px;
|
|
116
|
+
padding: 4px 16px;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
span.interactive {
|
|
120
|
+
cursor: pointer;
|
|
121
|
+
transition: opacity 0.1s;
|
|
122
|
+
}
|
|
123
|
+
span.interactive:hover {
|
|
124
|
+
opacity: 0.7;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
span.style-default {
|
|
128
|
+
&.color-default {
|
|
129
|
+
background-color: var(--gray-light);
|
|
130
|
+
color: var(--gray-dark);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
&.color-accent {
|
|
134
|
+
background-color: var(--accent-light);
|
|
135
|
+
color: var(--accent);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
&.color-green {
|
|
139
|
+
background-color: var(--green-light);
|
|
140
|
+
color: var(--green-dark);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
&.color-red {
|
|
144
|
+
background-color: var(--red-light);
|
|
145
|
+
color: var(--red-dark);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
&.color-blue {
|
|
149
|
+
background-color: var(--blue-light);
|
|
150
|
+
color: var(--blue-dark);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
&.color-orange {
|
|
154
|
+
background-color: var(--orange-light);
|
|
155
|
+
color: var(--orange-dark);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
span.style-outline {
|
|
160
|
+
&.color-default {
|
|
161
|
+
color: var(--gray-dark);
|
|
162
|
+
border: 1px solid var(--gray-dark);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
&.color-accent {
|
|
166
|
+
color: var(--accent);
|
|
167
|
+
border: 1px solid var(--accent);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
&.color-green {
|
|
171
|
+
color: var(--green-dark);
|
|
172
|
+
border: 1px solid var(--green-dark);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
&.color-red {
|
|
176
|
+
color: var(--red-dark);
|
|
177
|
+
border: 1px solid var(--red-dark);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
&.color-blue {
|
|
181
|
+
color: var(--blue-dark);
|
|
182
|
+
border: 1px solid var(--blue-dark);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
&.color-orange {
|
|
186
|
+
color: var(--orange-dark);
|
|
187
|
+
border: 1px solid var(--orange-dark);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
span.style-outline-fill {
|
|
192
|
+
&.color-default {
|
|
193
|
+
background-color: var(--gray-light);
|
|
194
|
+
color: var(--gray-dark);
|
|
195
|
+
border: 1px solid var(--gray);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
&.color-accent {
|
|
199
|
+
background-color: var(--accent-light);
|
|
200
|
+
color: var(--accent);
|
|
201
|
+
border: 1px solid var(--accent);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
&.color-green {
|
|
205
|
+
background-color: var(--green-light);
|
|
206
|
+
color: var(--green-dark);
|
|
207
|
+
border: 1px solid var(--green-dark);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
&.color-red {
|
|
211
|
+
background-color: var(--red-light);
|
|
212
|
+
color: var(--red-dark);
|
|
213
|
+
border: 1px solid var(--red-dark);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
&.color-blue {
|
|
217
|
+
background-color: var(--blue-light);
|
|
218
|
+
color: var(--blue-dark);
|
|
219
|
+
border: 1px solid var(--blue-dark);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
&.color-orange {
|
|
223
|
+
background-color: var(--orange-light);
|
|
224
|
+
color: var(--orange-dark);
|
|
225
|
+
border: 1px solid var(--orange-dark);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.button[disabled] {
|
|
230
|
+
opacity: 0.5 !important;
|
|
231
|
+
cursor: not-allowed;
|
|
232
|
+
box-shadow: none !important;
|
|
233
|
+
}
|
|
234
|
+
</style>
|
|
@@ -89,92 +89,93 @@
|
|
|
89
89
|
{/if}
|
|
90
90
|
</label>
|
|
91
91
|
|
|
92
|
-
<style
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
.input-wrap.state-warning {
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
}
|
|
92
|
+
<style>
|
|
93
|
+
.slot {
|
|
94
|
+
display: inline-flex;
|
|
95
|
+
align-items: center;
|
|
96
|
+
color: var(--text-light);
|
|
97
|
+
&.start {
|
|
98
|
+
margin-right: 8px;
|
|
99
|
+
}
|
|
100
|
+
&.end {
|
|
101
|
+
margin-left: 8px;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.input-wrap {
|
|
106
|
+
display: inline-flex;
|
|
107
|
+
align-items: center;
|
|
108
|
+
height: 30px;
|
|
109
|
+
padding: 0 15px;
|
|
110
|
+
border-radius: 20px;
|
|
111
|
+
background: var(--input);
|
|
112
|
+
transition: 0.2s box-shadow;
|
|
113
|
+
font-size: 14px;
|
|
114
|
+
--local-shadow-size: 2px;
|
|
115
|
+
&:focus-within {
|
|
116
|
+
outline: 0;
|
|
117
|
+
box-shadow: 0 0 0 var(--local-shadow-size) var(--accent-light);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.input-wrap.block {
|
|
122
|
+
display: flex;
|
|
123
|
+
width: 100%;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
input {
|
|
127
|
+
flex: 1;
|
|
128
|
+
width: 100%;
|
|
129
|
+
border: none;
|
|
130
|
+
font-family: inherit;
|
|
131
|
+
font-size: inherit;
|
|
132
|
+
background: transparent;
|
|
133
|
+
padding: 0;
|
|
134
|
+
margin: 0;
|
|
135
|
+
color: inherit;
|
|
136
|
+
height: 100%;
|
|
137
|
+
|
|
138
|
+
&:focus {
|
|
139
|
+
outline: none;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.input-wrap.size-x-small {
|
|
144
|
+
padding: 0 15px;
|
|
145
|
+
height: 20px;
|
|
146
|
+
font-size: 12px;
|
|
147
|
+
--local-shadow-size: 1px;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.input-wrap.size-small {
|
|
151
|
+
padding: 0 15px;
|
|
152
|
+
height: 26px;
|
|
153
|
+
font-size: 12px;
|
|
154
|
+
--local-shadow-size: 1px;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.input-wrap.size-large {
|
|
158
|
+
padding: 0 20px;
|
|
159
|
+
height: 36px;
|
|
160
|
+
font-size: 16px;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.input-wrap.state-error {
|
|
164
|
+
box-shadow: 0 0 0 var(--local-shadow-size) var(--red-light);
|
|
165
|
+
&:focus-within {
|
|
166
|
+
box-shadow: 0 0 0 calc(var(--local-shadow-size) + 1px) var(--red-light);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
.input-wrap.state-success {
|
|
170
|
+
box-shadow: 0 0 0 2px var(--green-light);
|
|
171
|
+
&:focus-within {
|
|
172
|
+
box-shadow: 0 0 0 calc(var(--local-shadow-size) + 1px) var(--green-light);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
.input-wrap.state-warning {
|
|
176
|
+
box-shadow: 0 0 0 2px var(--orange-light);
|
|
177
|
+
&:focus-within {
|
|
178
|
+
box-shadow: 0 0 0 calc(var(--local-shadow-size) + 1px) var(--orange-light);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
</style>
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
let wrap: HTMLDivElement | undefined = $state();
|
|
34
34
|
let tooltipEl: HTMLDivElement | undefined = $state();
|
|
35
35
|
let showTimeout: ReturnType<typeof setTimeout>;
|
|
36
|
+
const tooltipId = $props.id();
|
|
36
37
|
|
|
37
38
|
function positionTooltip() {
|
|
38
39
|
if (wrap && tooltipEl && show) {
|
|
@@ -101,7 +102,7 @@
|
|
|
101
102
|
class="tooltip-wrap {color}"
|
|
102
103
|
onmouseenter={handleMouseEnter}
|
|
103
104
|
onmouseleave={handleMouseLeave}
|
|
104
|
-
|
|
105
|
+
aria-describedby={!disabled && show ? tooltipId : undefined}
|
|
105
106
|
bind:this={wrap}
|
|
106
107
|
{...wrapperProps}
|
|
107
108
|
>
|
|
@@ -109,9 +110,11 @@
|
|
|
109
110
|
|
|
110
111
|
{#if !disabled && show}
|
|
111
112
|
<div
|
|
113
|
+
id={tooltipId}
|
|
112
114
|
class="tooltip {position}"
|
|
113
115
|
style:max-width={maxWidth + 'px'}
|
|
114
116
|
bind:this={tooltipEl}
|
|
117
|
+
role="tooltip"
|
|
115
118
|
transition:fade={{ duration: 100 }}
|
|
116
119
|
>
|
|
117
120
|
{#if tooltip}
|
|
@@ -80,47 +80,47 @@
|
|
|
80
80
|
{/if}
|
|
81
81
|
</div>
|
|
82
82
|
|
|
83
|
-
<style
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
.usage-name {
|
|
88
|
-
flex: 1;
|
|
89
|
-
font-size: 14px;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.usage-now {
|
|
93
|
-
margin-right: 4px;
|
|
94
|
-
font-weight: 600;
|
|
95
|
-
}
|
|
83
|
+
<style>
|
|
84
|
+
.usage-bar-top {
|
|
85
|
+
display: flex;
|
|
86
|
+
}
|
|
96
87
|
|
|
97
|
-
.usage-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
}
|
|
88
|
+
.usage-name {
|
|
89
|
+
flex: 1;
|
|
90
|
+
font-size: 14px;
|
|
91
|
+
}
|
|
92
|
+
.usage-now {
|
|
93
|
+
margin-right: 4px;
|
|
94
|
+
font-weight: 600;
|
|
95
|
+
}
|
|
101
96
|
|
|
102
|
-
.usage-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
background: var(--accent-light);
|
|
107
|
-
border-radius: 20px;
|
|
108
|
-
position: relative;
|
|
109
|
-
overflow: hidden;
|
|
110
|
-
}
|
|
97
|
+
.usage-full {
|
|
98
|
+
color: var(--text-light);
|
|
99
|
+
font-size: 12px;
|
|
100
|
+
}
|
|
111
101
|
|
|
112
|
-
.usage-bar-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
}
|
|
102
|
+
.usage-bar-bar {
|
|
103
|
+
margin: 6px 0 15px;
|
|
104
|
+
width: 100%;
|
|
105
|
+
height: 15px;
|
|
106
|
+
background: var(--accent-light);
|
|
107
|
+
border-radius: 20px;
|
|
108
|
+
position: relative;
|
|
109
|
+
overflow: hidden;
|
|
110
|
+
}
|
|
111
|
+
.usage-bar-fill {
|
|
112
|
+
position: absolute;
|
|
113
|
+
left: 0;
|
|
114
|
+
top: 0;
|
|
115
|
+
height: 100%;
|
|
116
|
+
background: var(--accent);
|
|
117
|
+
border-radius: 20px;
|
|
118
|
+
transition: 0.3s width ease-out;
|
|
119
|
+
}
|
|
121
120
|
|
|
122
|
-
.feature-not-included {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
}
|
|
121
|
+
.feature-not-included {
|
|
122
|
+
color: var(--text-light);
|
|
123
|
+
font-size: 12px;
|
|
124
|
+
margin: 5px 0 15px;
|
|
125
|
+
}
|
|
126
|
+
</style>
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
function normalize(input) {
|
|
2
|
+
return typeof input === 'function' ? { callback: input } : input;
|
|
3
|
+
}
|
|
1
4
|
export function clickOutside(node, input) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
if (!enabled)
|
|
5
|
-
return;
|
|
5
|
+
let options = normalize(input);
|
|
6
|
+
let listening = false;
|
|
6
7
|
const handleClick = (event) => {
|
|
7
8
|
if (!node.contains(event.target)) {
|
|
8
9
|
if (options.stopPropagation)
|
|
@@ -10,11 +11,28 @@ export function clickOutside(node, input) {
|
|
|
10
11
|
options.callback();
|
|
11
12
|
}
|
|
12
13
|
};
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
function sync() {
|
|
15
|
+
const enabled = options.enabled === undefined ? true : options.enabled;
|
|
16
|
+
if (enabled && !listening) {
|
|
17
|
+
listening = true;
|
|
18
|
+
setTimeout(() => {
|
|
19
|
+
if (listening)
|
|
20
|
+
document.addEventListener('click', handleClick);
|
|
21
|
+
}, 0);
|
|
22
|
+
}
|
|
23
|
+
else if (!enabled && listening) {
|
|
24
|
+
listening = false;
|
|
25
|
+
document.removeEventListener('click', handleClick);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
sync();
|
|
16
29
|
return {
|
|
30
|
+
update(newInput) {
|
|
31
|
+
options = normalize(newInput);
|
|
32
|
+
sync();
|
|
33
|
+
},
|
|
17
34
|
destroy() {
|
|
35
|
+
listening = false;
|
|
18
36
|
document.removeEventListener('click', handleClick);
|
|
19
37
|
}
|
|
20
38
|
};
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED