@hokkiai/discord-emoji-selector 1.0.10 → 1.1.0

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/index.cjs CHANGED
@@ -17216,7 +17216,7 @@ function SkinSelector({ id }) {
17216
17216
  opacity: open ? 1 : 0,
17217
17217
  pointerEvents: open ? "all" : "none"
17218
17218
  },
17219
- className: "absolute flex transition-all flex-col cursor-pointer top-full translate-y-2 overflow-hidden left-0 rounded-sm border-1 bg-neutral-900",
17219
+ className: "absolute flex transition-all flex-col cursor-pointer top-full translate-y-2 overflow-hidden -left-2 rounded-sm border-1 bg-neutral-900",
17220
17220
  children: skins.filter((a) => a !== skins[selectedTone]).map((skin, i) => {
17221
17221
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
17222
17222
  "div",
@@ -17523,7 +17523,7 @@ function EmojiSelector({
17523
17523
  const id = Math.random().toString(36).substring(2, 15);
17524
17524
  const picker = (0, import_react7.useRef)(null);
17525
17525
  console.log(id);
17526
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
17526
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "HOKKIEMOJIPICKER-emojiContainer", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
17527
17527
  "div",
17528
17528
  {
17529
17529
  ref: picker,
@@ -17641,7 +17641,7 @@ function EmojiSelector({
17641
17641
  ] })
17642
17642
  ]
17643
17643
  }
17644
- );
17644
+ ) });
17645
17645
  }
17646
17646
  // Annotate the CommonJS export names for ESM import in node:
17647
17647
  0 && (module.exports = {
package/dist/index.css CHANGED
@@ -1,242 +1,245 @@
1
1
  /* src/styles.css */
2
- .absolute {
2
+ .HOKKIEMOJIPICKER-emojiContainer .absolute {
3
3
  position: absolute;
4
4
  }
5
- .relative {
5
+ .HOKKIEMOJIPICKER-emojiContainer .relative {
6
6
  position: relative;
7
7
  }
8
- .sticky {
8
+ .HOKKIEMOJIPICKER-emojiContainer .sticky {
9
9
  position: sticky;
10
10
  }
11
- .top-0 {
11
+ .HOKKIEMOJIPICKER-emojiContainer .top-0 {
12
12
  top: calc(var(--spacing) * 0);
13
13
  }
14
- .top-full {
14
+ .HOKKIEMOJIPICKER-emojiContainer .top-full {
15
15
  top: 100%;
16
16
  }
17
- .left-0 {
17
+ .HOKKIEMOJIPICKER-emojiContainer .left-0 {
18
18
  left: calc(var(--spacing) * 0);
19
19
  }
20
- .z-50 {
20
+ .HOKKIEMOJIPICKER-emojiContainer .-left-2 {
21
+ left: calc(var(--spacing) * -2);
22
+ }
23
+ .HOKKIEMOJIPICKER-emojiContainer .z-50 {
21
24
  z-index: 50;
22
25
  }
23
- .my-2 {
26
+ .HOKKIEMOJIPICKER-emojiContainer .my-2 {
24
27
  margin-block: calc(var(--spacing) * 2);
25
28
  }
26
- .mt-auto {
29
+ .HOKKIEMOJIPICKER-emojiContainer .mt-auto {
27
30
  margin-top: auto;
28
31
  }
29
- .flex {
32
+ .HOKKIEMOJIPICKER-emojiContainer .flex {
30
33
  display: flex;
31
34
  }
32
- .size-5 {
35
+ .HOKKIEMOJIPICKER-emojiContainer .size-5 {
33
36
  width: calc(var(--spacing) * 5);
34
37
  height: calc(var(--spacing) * 5);
35
38
  }
36
- .size-12\.5 {
39
+ .HOKKIEMOJIPICKER-emojiContainer .size-12\.5 {
37
40
  width: calc(var(--spacing) * 12.5);
38
41
  height: calc(var(--spacing) * 12.5);
39
42
  }
40
- .h-0 {
43
+ .HOKKIEMOJIPICKER-emojiContainer .h-0 {
41
44
  height: calc(var(--spacing) * 0);
42
45
  }
43
- .h-1\.5 {
46
+ .HOKKIEMOJIPICKER-emojiContainer .h-1\.5 {
44
47
  height: calc(var(--spacing) * 1.5);
45
48
  }
46
- .h-24 {
49
+ .HOKKIEMOJIPICKER-emojiContainer .h-24 {
47
50
  height: calc(var(--spacing) * 24);
48
51
  }
49
- .h-full {
52
+ .HOKKIEMOJIPICKER-emojiContainer .h-full {
50
53
  height: 100%;
51
54
  }
52
- .w-full {
55
+ .HOKKIEMOJIPICKER-emojiContainer .w-full {
53
56
  width: 100%;
54
57
  }
55
- .translate-y-2 {
58
+ .HOKKIEMOJIPICKER-emojiContainer .translate-y-2 {
56
59
  --tw-translate-y: calc(var(--spacing) * 2);
57
60
  translate: var(--tw-translate-x) var(--tw-translate-y);
58
61
  }
59
- .cursor-pointer {
62
+ .HOKKIEMOJIPICKER-emojiContainer .cursor-pointer {
60
63
  cursor: pointer;
61
64
  }
62
- .flex-col {
65
+ .HOKKIEMOJIPICKER-emojiContainer .flex-col {
63
66
  flex-direction: column;
64
67
  }
65
- .flex-wrap {
68
+ .HOKKIEMOJIPICKER-emojiContainer .flex-wrap {
66
69
  flex-wrap: wrap;
67
70
  }
68
- .items-center {
71
+ .HOKKIEMOJIPICKER-emojiContainer .items-center {
69
72
  align-items: center;
70
73
  }
71
- .items-start {
74
+ .HOKKIEMOJIPICKER-emojiContainer .items-start {
72
75
  align-items: flex-start;
73
76
  }
74
- .justify-center {
77
+ .HOKKIEMOJIPICKER-emojiContainer .justify-center {
75
78
  justify-content: center;
76
79
  }
77
- .gap-1 {
80
+ .HOKKIEMOJIPICKER-emojiContainer .gap-1 {
78
81
  gap: calc(var(--spacing) * 1);
79
82
  }
80
- .gap-1\.5 {
83
+ .HOKKIEMOJIPICKER-emojiContainer .gap-1\.5 {
81
84
  gap: calc(var(--spacing) * 1.5);
82
85
  }
83
- .gap-2 {
86
+ .HOKKIEMOJIPICKER-emojiContainer .gap-2 {
84
87
  gap: calc(var(--spacing) * 2);
85
88
  }
86
- .gap-4 {
89
+ .HOKKIEMOJIPICKER-emojiContainer .gap-4 {
87
90
  gap: calc(var(--spacing) * 4);
88
91
  }
89
- .gap-y-0\.5 {
92
+ .HOKKIEMOJIPICKER-emojiContainer .gap-y-0\.5 {
90
93
  row-gap: calc(var(--spacing) * 0.5);
91
94
  }
92
- .justify-self-start {
95
+ .HOKKIEMOJIPICKER-emojiContainer .justify-self-start {
93
96
  justify-self: flex-start;
94
97
  }
95
- .overflow-hidden {
98
+ .HOKKIEMOJIPICKER-emojiContainer .overflow-hidden {
96
99
  overflow: hidden;
97
100
  }
98
- .overflow-y-scroll {
101
+ .HOKKIEMOJIPICKER-emojiContainer .overflow-y-scroll {
99
102
  overflow-y: scroll;
100
103
  }
101
- .rounded-md {
104
+ .HOKKIEMOJIPICKER-emojiContainer .rounded-md {
102
105
  border-radius: var(--radius-md);
103
106
  }
104
- .rounded-sm {
107
+ .HOKKIEMOJIPICKER-emojiContainer .rounded-sm {
105
108
  border-radius: var(--radius-sm);
106
109
  }
107
- .rounded-xl {
110
+ .HOKKIEMOJIPICKER-emojiContainer .rounded-xl {
108
111
  border-radius: var(--radius-xl);
109
112
  }
110
- .border-1 {
113
+ .HOKKIEMOJIPICKER-emojiContainer .border-1 {
111
114
  border-style: var(--tw-border-style);
112
115
  border-width: 1px;
113
116
  }
114
- .border-t-1 {
117
+ .HOKKIEMOJIPICKER-emojiContainer .border-t-1 {
115
118
  border-top-style: var(--tw-border-style);
116
119
  border-top-width: 1px;
117
120
  }
118
- .border-b-1 {
121
+ .HOKKIEMOJIPICKER-emojiContainer .border-b-1 {
119
122
  border-bottom-style: var(--tw-border-style);
120
123
  border-bottom-width: 1px;
121
124
  }
122
- .border-\[\#323337\] {
125
+ .HOKKIEMOJIPICKER-emojiContainer .border-\[\#323337\] {
123
126
  border-color: #323337;
124
127
  }
125
- .border-\[\#363639\] {
128
+ .HOKKIEMOJIPICKER-emojiContainer .border-\[\#363639\] {
126
129
  border-color: #363639;
127
130
  }
128
- .border-\[\#363639\]\/10 {
131
+ .HOKKIEMOJIPICKER-emojiContainer .border-\[\#363639\]\/10 {
129
132
  border-color: color-mix(in oklab, #363639 10%, transparent);
130
133
  }
131
- .bg-\[\#070709\] {
134
+ .HOKKIEMOJIPICKER-emojiContainer .bg-\[\#070709\] {
132
135
  background-color: #070709;
133
136
  }
134
- .bg-\[\#121214\] {
137
+ .HOKKIEMOJIPICKER-emojiContainer .bg-\[\#121214\] {
135
138
  background-color: #121214;
136
139
  }
137
- .bg-\[\#131416\] {
140
+ .HOKKIEMOJIPICKER-emojiContainer .bg-\[\#131416\] {
138
141
  background-color: #131416;
139
142
  }
140
- .bg-neutral-900 {
143
+ .HOKKIEMOJIPICKER-emojiContainer .bg-neutral-900 {
141
144
  background-color: var(--color-neutral-900);
142
145
  }
143
- .p-1 {
146
+ .HOKKIEMOJIPICKER-emojiContainer .p-1 {
144
147
  padding: calc(var(--spacing) * 1);
145
148
  }
146
- .p-2 {
149
+ .HOKKIEMOJIPICKER-emojiContainer .p-2 {
147
150
  padding: calc(var(--spacing) * 2);
148
151
  }
149
- .p-3 {
152
+ .HOKKIEMOJIPICKER-emojiContainer .p-3 {
150
153
  padding: calc(var(--spacing) * 3);
151
154
  }
152
- .px-2 {
155
+ .HOKKIEMOJIPICKER-emojiContainer .px-2 {
153
156
  padding-inline: calc(var(--spacing) * 2);
154
157
  }
155
- .px-3 {
158
+ .HOKKIEMOJIPICKER-emojiContainer .px-3 {
156
159
  padding-inline: calc(var(--spacing) * 3);
157
160
  }
158
- .px-4 {
161
+ .HOKKIEMOJIPICKER-emojiContainer .px-4 {
159
162
  padding-inline: calc(var(--spacing) * 4);
160
163
  }
161
- .py-3 {
164
+ .HOKKIEMOJIPICKER-emojiContainer .py-3 {
162
165
  padding-block: calc(var(--spacing) * 3);
163
166
  }
164
- .pt-2 {
167
+ .HOKKIEMOJIPICKER-emojiContainer .pt-2 {
165
168
  padding-top: calc(var(--spacing) * 2);
166
169
  }
167
- .pb-2 {
170
+ .HOKKIEMOJIPICKER-emojiContainer .pb-2 {
168
171
  padding-bottom: calc(var(--spacing) * 2);
169
172
  }
170
- .text-4xl {
173
+ .HOKKIEMOJIPICKER-emojiContainer .text-4xl {
171
174
  font-size: var(--text-4xl);
172
175
  line-height: var(--tw-leading, var(--text-4xl--line-height));
173
176
  }
174
- .text-lg {
177
+ .HOKKIEMOJIPICKER-emojiContainer .text-lg {
175
178
  font-size: var(--text-lg);
176
179
  line-height: var(--tw-leading, var(--text-lg--line-height));
177
180
  }
178
- .font-semibold {
181
+ .HOKKIEMOJIPICKER-emojiContainer .font-semibold {
179
182
  --tw-font-weight: var(--font-weight-semibold);
180
183
  font-weight: var(--font-weight-semibold);
181
184
  }
182
- .text-ellipsis {
185
+ .HOKKIEMOJIPICKER-emojiContainer .text-ellipsis {
183
186
  text-overflow: ellipsis;
184
187
  }
185
- .whitespace-nowrap {
188
+ .HOKKIEMOJIPICKER-emojiContainer .whitespace-nowrap {
186
189
  white-space: nowrap;
187
190
  }
188
- .text-white {
191
+ .HOKKIEMOJIPICKER-emojiContainer .text-white {
189
192
  color: var(--color-white);
190
193
  }
191
- .opacity-50 {
194
+ .HOKKIEMOJIPICKER-emojiContainer .opacity-50 {
192
195
  opacity: 50%;
193
196
  }
194
- .opacity-75 {
197
+ .HOKKIEMOJIPICKER-emojiContainer .opacity-75 {
195
198
  opacity: 75%;
196
199
  }
197
- .\!outline-0 {
200
+ .HOKKIEMOJIPICKER-emojiContainer .\!outline-0 {
198
201
  outline-style: var(--tw-outline-style) !important;
199
202
  outline-width: 0px !important;
200
203
  }
201
- .transition-all {
204
+ .HOKKIEMOJIPICKER-emojiContainer .transition-all {
202
205
  transition-property: all;
203
206
  transition-timing-function: var( --tw-ease, var(--default-transition-timing-function) );
204
207
  transition-duration: var(--tw-duration, var(--default-transition-duration));
205
208
  }
206
- .\*\:size-4\.5 {
209
+ .HOKKIEMOJIPICKER-emojiContainer .\*\:size-4\.5 {
207
210
  :is(& > *) {
208
211
  width: calc(var(--spacing) * 4.5);
209
212
  height: calc(var(--spacing) * 4.5);
210
213
  }
211
214
  }
212
- .\*\:size-7 {
215
+ .HOKKIEMOJIPICKER-emojiContainer .\*\:size-7 {
213
216
  :is(& > *) {
214
217
  width: calc(var(--spacing) * 7);
215
218
  height: calc(var(--spacing) * 7);
216
219
  }
217
220
  }
218
- .\*\:size-9 {
221
+ .HOKKIEMOJIPICKER-emojiContainer .\*\:size-9 {
219
222
  :is(& > *) {
220
223
  width: calc(var(--spacing) * 9);
221
224
  height: calc(var(--spacing) * 9);
222
225
  }
223
226
  }
224
- .\*\:max-w-9 {
227
+ .HOKKIEMOJIPICKER-emojiContainer .\*\:max-w-9 {
225
228
  :is(& > *) {
226
229
  max-width: calc(var(--spacing) * 9);
227
230
  }
228
231
  }
229
- .\*\:min-w-7 {
232
+ .HOKKIEMOJIPICKER-emojiContainer .\*\:min-w-7 {
230
233
  :is(& > *) {
231
234
  min-width: calc(var(--spacing) * 7);
232
235
  }
233
236
  }
234
- .\*\:min-w-9 {
237
+ .HOKKIEMOJIPICKER-emojiContainer .\*\:min-w-9 {
235
238
  :is(& > *) {
236
239
  min-width: calc(var(--spacing) * 9);
237
240
  }
238
241
  }
239
- .hover\:bg-white\/5 {
242
+ .HOKKIEMOJIPICKER-emojiContainer .hover\:bg-white\/5 {
240
243
  &:hover {
241
244
  @media (hover: hover) {
242
245
  background-color: color-mix(in srgb, #fff 5%, transparent);
@@ -246,7 +249,7 @@
246
249
  }
247
250
  }
248
251
  }
249
- .hover\:bg-white\/15 {
252
+ .HOKKIEMOJIPICKER-emojiContainer .hover\:bg-white\/15 {
250
253
  &:hover {
251
254
  @media (hover: hover) {
252
255
  background-color: color-mix(in srgb, #fff 15%, transparent);
@@ -256,24 +259,24 @@
256
259
  }
257
260
  }
258
261
  }
259
- .hover\:opacity-100 {
262
+ .HOKKIEMOJIPICKER-emojiContainer .hover\:opacity-100 {
260
263
  &:hover {
261
264
  @media (hover: hover) {
262
265
  opacity: 100%;
263
266
  }
264
267
  }
265
268
  }
266
- .data-\[focused\=true\]\:border-\[\#3687E9\] {
269
+ .HOKKIEMOJIPICKER-emojiContainer .data-\[focused\=true\]\:border-\[\#3687E9\] {
267
270
  &[data-focused=true] {
268
271
  border-color: #3687e9;
269
272
  }
270
273
  }
271
- .data-\[open\=false\]\:-rotate-90 {
274
+ .HOKKIEMOJIPICKER-emojiContainer .data-\[open\=false\]\:-rotate-90 {
272
275
  &[data-open=false] {
273
276
  rotate: calc(90deg * -1);
274
277
  }
275
278
  }
276
- * {
279
+ .HOKKIEMOJIPICKER-emojiContainer * {
277
280
  --spacing: 0.25rem;
278
281
  --text-lg: 1.125rem;
279
282
  --text-lg--line-height: calc(1.75 / 1.125);
package/dist/index.js CHANGED
@@ -17182,7 +17182,7 @@ function SkinSelector({ id }) {
17182
17182
  opacity: open ? 1 : 0,
17183
17183
  pointerEvents: open ? "all" : "none"
17184
17184
  },
17185
- className: "absolute flex transition-all flex-col cursor-pointer top-full translate-y-2 overflow-hidden left-0 rounded-sm border-1 bg-neutral-900",
17185
+ className: "absolute flex transition-all flex-col cursor-pointer top-full translate-y-2 overflow-hidden -left-2 rounded-sm border-1 bg-neutral-900",
17186
17186
  children: skins.filter((a) => a !== skins[selectedTone]).map((skin, i) => {
17187
17187
  return /* @__PURE__ */ jsx6(
17188
17188
  "div",
@@ -17489,7 +17489,7 @@ function EmojiSelector({
17489
17489
  const id = Math.random().toString(36).substring(2, 15);
17490
17490
  const picker = useRef2(null);
17491
17491
  console.log(id);
17492
- return /* @__PURE__ */ jsxs6(
17492
+ return /* @__PURE__ */ jsx7("div", { className: "HOKKIEMOJIPICKER-emojiContainer", children: /* @__PURE__ */ jsxs6(
17493
17493
  "div",
17494
17494
  {
17495
17495
  ref: picker,
@@ -17607,7 +17607,7 @@ function EmojiSelector({
17607
17607
  ] })
17608
17608
  ]
17609
17609
  }
17610
- );
17610
+ ) });
17611
17611
  }
17612
17612
  export {
17613
17613
  EmojiSelector as default,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hokkiai/discord-emoji-selector",
3
- "version": "1.0.10",
3
+ "version": "1.1.0",
4
4
  "description": "A lightweight & powerful discord-style emoji picker",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",