@kimdw-rtk/ui 0.1.14 → 0.1.16

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.
Files changed (37) hide show
  1. package/dist/components/Button/Button.css.d.ts +14 -11
  2. package/dist/components/Button/Button.css.d.ts.map +1 -1
  3. package/dist/components/Button/Button.css.ts.vanilla.css +35 -32
  4. package/dist/components/Button/Button.css.vanilla.cjs +3 -3
  5. package/dist/components/Button/Button.css.vanilla.js +3 -3
  6. package/dist/components/Button/index.cjs +2 -2
  7. package/dist/components/Button/index.d.ts +2 -1
  8. package/dist/components/Button/index.d.ts.map +1 -1
  9. package/dist/components/Button/index.js +2 -2
  10. package/dist/components/Card/Card.css.d.ts +0 -19
  11. package/dist/components/Card/Card.css.d.ts.map +1 -1
  12. package/dist/components/Card/Card.css.ts.vanilla.css +5 -22
  13. package/dist/components/Card/Card.css.vanilla.cjs +1 -1
  14. package/dist/components/Card/Card.css.vanilla.js +1 -1
  15. package/dist/components/Range/Range.css.d.ts.map +1 -1
  16. package/dist/components/Range/Range.css.ts.vanilla.css +2 -0
  17. package/dist/components/ScrollArea/ScrollArea.cjs +7 -12
  18. package/dist/components/ScrollArea/ScrollArea.css.d.ts +2 -3
  19. package/dist/components/ScrollArea/ScrollArea.css.d.ts.map +1 -1
  20. package/dist/components/ScrollArea/ScrollArea.css.ts.vanilla.css +7 -18
  21. package/dist/components/ScrollArea/ScrollArea.css.vanilla.cjs +6 -8
  22. package/dist/components/ScrollArea/ScrollArea.css.vanilla.js +5 -6
  23. package/dist/components/ScrollArea/ScrollArea.d.ts +4 -1
  24. package/dist/components/ScrollArea/ScrollArea.d.ts.map +1 -1
  25. package/dist/components/ScrollArea/ScrollArea.js +9 -14
  26. package/dist/components/Select/SelectOption.css.d.ts.map +1 -1
  27. package/dist/components/Select/SelectOption.css.ts.vanilla.css +3 -0
  28. package/dist/components/Select/SelectOptionList.css.d.ts.map +1 -1
  29. package/dist/components/Select/SelectOptionList.css.ts.vanilla.css +0 -1
  30. package/dist/hooks/usePointerSlider/index.cjs +63 -12
  31. package/dist/hooks/usePointerSlider/index.d.ts.map +1 -1
  32. package/dist/hooks/usePointerSlider/index.js +63 -12
  33. package/dist/node_modules/.pnpm/@vanilla-extract_dynamic@2.1.5/node_modules/@vanilla-extract/dynamic/dist/vanilla-extract-dynamic.esm.cjs +26 -0
  34. package/dist/node_modules/.pnpm/@vanilla-extract_dynamic@2.1.5/node_modules/@vanilla-extract/dynamic/dist/vanilla-extract-dynamic.esm.js +24 -0
  35. package/dist/node_modules/.pnpm/@vanilla-extract_private@1.0.9/node_modules/@vanilla-extract/private/dist/vanilla-extract-private.esm.cjs +11 -0
  36. package/dist/node_modules/.pnpm/@vanilla-extract_private@1.0.9/node_modules/@vanilla-extract/private/dist/vanilla-extract-private.esm.js +9 -0
  37. package/package.json +1 -1
@@ -9,6 +9,9 @@ export declare const span: import("@vanilla-extract/recipes").RuntimeFn<{
9
9
  lg: {
10
10
  fontSize: "1.125em";
11
11
  };
12
+ xl: {
13
+ fontSize: "1.25em";
14
+ };
12
15
  'icon-sm': {
13
16
  fontSize: "1em";
14
17
  };
@@ -18,6 +21,9 @@ export declare const span: import("@vanilla-extract/recipes").RuntimeFn<{
18
21
  'icon-lg': {
19
22
  fontSize: "1.5em";
20
23
  };
24
+ 'icon-xl': {
25
+ fontSize: "1.75em";
26
+ };
21
27
  };
22
28
  }>;
23
29
  export declare const button: import("@vanilla-extract/recipes").RuntimeFn<{
@@ -71,6 +77,10 @@ export declare const button: import("@vanilla-extract/recipes").RuntimeFn<{
71
77
  height: "2.75em";
72
78
  padding: "0 1em";
73
79
  };
80
+ xl: {
81
+ height: "3em";
82
+ padding: "0 1.125em";
83
+ };
74
84
  'icon-sm': {
75
85
  width: "2em";
76
86
  height: "2em";
@@ -83,6 +93,10 @@ export declare const button: import("@vanilla-extract/recipes").RuntimeFn<{
83
93
  width: "2.75em";
84
94
  height: "2.75em";
85
95
  };
96
+ 'icon-xl': {
97
+ width: "3em";
98
+ height: "3em";
99
+ };
86
100
  };
87
101
  variant: {
88
102
  contained: {
@@ -117,17 +131,6 @@ export declare const button: import("@vanilla-extract/recipes").RuntimeFn<{
117
131
  cursor: "default";
118
132
  };
119
133
  };
120
- glass: {
121
- boxShadow: "inset 0 0 0 1px rgba(255, 255, 255, 0.08)";
122
- backgroundColor: `rgba(var(--${string}), 0.75)`;
123
- backdropFilter: "blur(1rem)";
124
- color: `rgb(var(--${string}))`;
125
- ':disabled': {
126
- backgroundColor: `rgb(var(--${string}))`;
127
- color: `rgb(var(--${string}))`;
128
- cursor: "default";
129
- };
130
- };
131
134
  };
132
135
  pulse: {
133
136
  true: {
@@ -1 +1 @@
1
- {"version":3,"file":"Button.css.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.css.ts"],"names":[],"mappings":"AA+CA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;EA+Bf,CAAC;AAEH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+IjB,CAAC;AAEH,eAAO,MAAM,IAAI,QAEf,CAAC"}
1
+ {"version":3,"file":"Button.css.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.css.ts"],"names":[],"mappings":"AA+CA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuCf,CAAC;AAEH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyIjB,CAAC;AAEH,eAAO,MAAM,IAAI,QAEf,CAAC"}
@@ -7,16 +7,16 @@
7
7
  }
8
8
  }
9
9
  @layer components;
10
- .Button_icon__1abigts2v {
10
+ .Button_icon__1abigts31 {
11
11
  line-height: 0;
12
12
  }
13
- .Button_icon__1abigts2v > * {
13
+ .Button_icon__1abigts31 > * {
14
14
  width: 1em;
15
15
  height: 1em;
16
16
  line-height: 0;
17
17
  pointer-events: none;
18
18
  }
19
- .Button__1abigts1o svg {
19
+ .Button__1abigts1t svg {
20
20
  width: 1em;
21
21
  height: 1em;
22
22
  }
@@ -154,15 +154,21 @@
154
154
  font-size: 1.125em;
155
155
  }
156
156
  .Button_styleWithLayer__1abigts11 {
157
- font-size: 1em;
157
+ font-size: 1.25em;
158
158
  }
159
159
  .Button_styleWithLayer__1abigts12 {
160
- font-size: 1.25em;
160
+ font-size: 1em;
161
161
  }
162
162
  .Button_styleWithLayer__1abigts13 {
163
+ font-size: 1.25em;
164
+ }
165
+ .Button_styleWithLayer__1abigts14 {
163
166
  font-size: 1.5em;
164
167
  }
165
- .Button_layeredBase__1abigts1b {
168
+ .Button_styleWithLayer__1abigts15 {
169
+ font-size: 1.75em;
170
+ }
171
+ .Button_layeredBase__1abigts1f {
166
172
  display: inline-flex;
167
173
  align-items: center;
168
174
  justify-content: center;
@@ -175,77 +181,74 @@
175
181
  cursor: pointer;
176
182
  user-select: none;
177
183
  }
178
- .Button_styleWithLayer__1abigts1c {
184
+ .Button_styleWithLayer__1abigts1g {
179
185
  gap: 0.5em;
180
186
  }
181
- .Button_styleWithLayer__1abigts1d {
187
+ .Button_styleWithLayer__1abigts1h {
182
188
  height: 2.25em;
183
189
  padding: 0 0.75em;
184
190
  }
185
- .Button_styleWithLayer__1abigts1e {
191
+ .Button_styleWithLayer__1abigts1i {
186
192
  height: 2.5em;
187
193
  padding: 0 0.875em;
188
194
  }
189
- .Button_styleWithLayer__1abigts1f {
195
+ .Button_styleWithLayer__1abigts1j {
190
196
  height: 2.75em;
191
197
  padding: 0 1em;
192
198
  }
193
- .Button_styleWithLayer__1abigts1g {
199
+ .Button_styleWithLayer__1abigts1k {
200
+ height: 3em;
201
+ padding: 0 1.125em;
202
+ }
203
+ .Button_styleWithLayer__1abigts1l {
194
204
  width: 2em;
195
205
  height: 2em;
196
206
  }
197
- .Button_styleWithLayer__1abigts1h {
207
+ .Button_styleWithLayer__1abigts1m {
198
208
  width: 2.5em;
199
209
  height: 2.5em;
200
210
  }
201
- .Button_styleWithLayer__1abigts1i {
211
+ .Button_styleWithLayer__1abigts1n {
202
212
  width: 2.75em;
203
213
  height: 2.75em;
204
214
  }
205
- .Button_styleWithLayer__1abigts1j {
215
+ .Button_styleWithLayer__1abigts1o {
216
+ width: 3em;
217
+ height: 3em;
218
+ }
219
+ .Button_styleWithLayer__1abigts1p {
206
220
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
207
221
  background-color: rgb(var(--backgroundVar__1abigts0));
208
222
  color: rgb(var(--foregroundVar__1abigts1));
209
223
  }
210
- .Button_styleWithLayer__1abigts1j:disabled {
224
+ .Button_styleWithLayer__1abigts1p:disabled {
211
225
  background-color: rgb(var(--color-muted__n6e2fsb));
212
226
  color: rgb(var(--color-muted-foreground__n6e2fsc));
213
227
  cursor: default;
214
228
  }
215
- .Button_styleWithLayer__1abigts1k {
229
+ .Button_styleWithLayer__1abigts1q {
216
230
  box-shadow: inset 0 0 0 1px rgb(var(--backgroundVar__1abigts0));
217
231
  background-color: rgb(var(--color-background__n6e2fs1));
218
232
  color: rgb(var(--color-foreground__n6e2fs2));
219
233
  }
220
- .Button_styleWithLayer__1abigts1k:disabled {
234
+ .Button_styleWithLayer__1abigts1q:disabled {
221
235
  background-color: rgb(var(--color-muted__n6e2fsb));
222
236
  color: rgb(var(--color-muted-foreground__n6e2fsc));
223
237
  cursor: default;
224
238
  }
225
- .Button_styleWithLayer__1abigts1l {
239
+ .Button_styleWithLayer__1abigts1r {
226
240
  background: transparent;
227
241
  color: rgb(var(--color-foreground__n6e2fs2));
228
242
  }
229
- .Button_styleWithLayer__1abigts1l:hover {
243
+ .Button_styleWithLayer__1abigts1r:hover {
230
244
  background-color: rgba(var(--backgroundVar__1abigts0), 0.8);
231
245
  color: rgb(var(--foregroundVar__1abigts1));
232
246
  }
233
- .Button_styleWithLayer__1abigts1l:disabled {
234
- color: rgb(var(--color-muted-foreground__n6e2fsc));
235
- cursor: default;
236
- }
237
- .Button_styleWithLayer__1abigts1m {
238
- box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
239
- background-color: rgba(var(--backgroundVar__1abigts0), 0.75);
240
- backdrop-filter: blur(1rem);
241
- color: rgb(var(--color-foreground__n6e2fs2));
242
- }
243
- .Button_styleWithLayer__1abigts1m:disabled {
244
- background-color: rgb(var(--color-muted__n6e2fsb));
247
+ .Button_styleWithLayer__1abigts1r:disabled {
245
248
  color: rgb(var(--color-muted-foreground__n6e2fsc));
246
249
  cursor: default;
247
250
  }
248
- .Button_styleWithLayer__1abigts1n::after {
251
+ .Button_styleWithLayer__1abigts1s::after {
249
252
  content: "";
250
253
  position: absolute;
251
254
  inset: 0;
@@ -6,9 +6,9 @@ require('./../../styles/globalStyle.css.ts.vanilla.css');
6
6
  require('./Button.css.ts.vanilla.css');
7
7
  var createRuntimeFn62c9670f_esm = require('../../node_modules/.pnpm/@vanilla-extract_recipes@0.5.7_@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0_/node_modules/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.cjs');
8
8
 
9
- var button = createRuntimeFn62c9670f_esm.c({defaultClassName:'Button__1abigts1o Button_layeredBase__1abigts1b',variantClassNames:{hasIcon:{true:'Button_styleWithLayer__1abigts1c'},color:{primary:'Button_styleWithLayer__1abigts2',secondary:'Button_styleWithLayer__1abigts3',muted:'Button_styleWithLayer__1abigts4',accent:'Button_styleWithLayer__1abigts5',card:'Button_styleWithLayer__1abigts6',danger:'Button_styleWithLayer__1abigts7',warning:'Button_styleWithLayer__1abigts8',success:'Button_styleWithLayer__1abigts9',red:'Button_styleWithLayer__1abigtsa',orange:'Button_styleWithLayer__1abigtsb',amber:'Button_styleWithLayer__1abigtsc',yellow:'Button_styleWithLayer__1abigtsd',lime:'Button_styleWithLayer__1abigtse',green:'Button_styleWithLayer__1abigtsf',emerald:'Button_styleWithLayer__1abigtsg',teal:'Button_styleWithLayer__1abigtsh',cyan:'Button_styleWithLayer__1abigtsi',sky:'Button_styleWithLayer__1abigtsj',blue:'Button_styleWithLayer__1abigtsk',indigo:'Button_styleWithLayer__1abigtsl',violet:'Button_styleWithLayer__1abigtsm',purple:'Button_styleWithLayer__1abigtsn',fuchsia:'Button_styleWithLayer__1abigtso',pink:'Button_styleWithLayer__1abigtsp',rose:'Button_styleWithLayer__1abigtsq',slate:'Button_styleWithLayer__1abigtsr',gray:'Button_styleWithLayer__1abigtss',zinc:'Button_styleWithLayer__1abigtst',neutral:'Button_styleWithLayer__1abigtsu',stone:'Button_styleWithLayer__1abigtsv'},size:{sm:'Button_styleWithLayer__1abigts1d',md:'Button_styleWithLayer__1abigts1e',lg:'Button_styleWithLayer__1abigts1f','icon-sm':'Button_styleWithLayer__1abigts1g','icon-md':'Button_styleWithLayer__1abigts1h','icon-lg':'Button_styleWithLayer__1abigts1i'},variant:{contained:'Button_styleWithLayer__1abigts1j',outlined:'Button_styleWithLayer__1abigts1k',ghost:'Button_styleWithLayer__1abigts1l',glass:'Button_styleWithLayer__1abigts1m'},pulse:{true:'Button_styleWithLayer__1abigts1n'}},defaultVariants:{},compoundVariants:[]});
10
- var icon = 'Button_icon__1abigts2v';
11
- var span = createRuntimeFn62c9670f_esm.c({defaultClassName:'Button__1abigts14 Button_layeredBase__1abigtsx',variantClassNames:{size:{sm:'Button_styleWithLayer__1abigtsy',md:'Button_styleWithLayer__1abigtsz',lg:'Button_styleWithLayer__1abigts10','icon-sm':'Button_styleWithLayer__1abigts11','icon-md':'Button_styleWithLayer__1abigts12','icon-lg':'Button_styleWithLayer__1abigts13'}},defaultVariants:{},compoundVariants:[]});
9
+ var button = createRuntimeFn62c9670f_esm.c({defaultClassName:'Button__1abigts1t Button_layeredBase__1abigts1f',variantClassNames:{hasIcon:{true:'Button_styleWithLayer__1abigts1g'},color:{primary:'Button_styleWithLayer__1abigts2',secondary:'Button_styleWithLayer__1abigts3',muted:'Button_styleWithLayer__1abigts4',accent:'Button_styleWithLayer__1abigts5',card:'Button_styleWithLayer__1abigts6',danger:'Button_styleWithLayer__1abigts7',warning:'Button_styleWithLayer__1abigts8',success:'Button_styleWithLayer__1abigts9',red:'Button_styleWithLayer__1abigtsa',orange:'Button_styleWithLayer__1abigtsb',amber:'Button_styleWithLayer__1abigtsc',yellow:'Button_styleWithLayer__1abigtsd',lime:'Button_styleWithLayer__1abigtse',green:'Button_styleWithLayer__1abigtsf',emerald:'Button_styleWithLayer__1abigtsg',teal:'Button_styleWithLayer__1abigtsh',cyan:'Button_styleWithLayer__1abigtsi',sky:'Button_styleWithLayer__1abigtsj',blue:'Button_styleWithLayer__1abigtsk',indigo:'Button_styleWithLayer__1abigtsl',violet:'Button_styleWithLayer__1abigtsm',purple:'Button_styleWithLayer__1abigtsn',fuchsia:'Button_styleWithLayer__1abigtso',pink:'Button_styleWithLayer__1abigtsp',rose:'Button_styleWithLayer__1abigtsq',slate:'Button_styleWithLayer__1abigtsr',gray:'Button_styleWithLayer__1abigtss',zinc:'Button_styleWithLayer__1abigtst',neutral:'Button_styleWithLayer__1abigtsu',stone:'Button_styleWithLayer__1abigtsv'},size:{sm:'Button_styleWithLayer__1abigts1h',md:'Button_styleWithLayer__1abigts1i',lg:'Button_styleWithLayer__1abigts1j',xl:'Button_styleWithLayer__1abigts1k','icon-sm':'Button_styleWithLayer__1abigts1l','icon-md':'Button_styleWithLayer__1abigts1m','icon-lg':'Button_styleWithLayer__1abigts1n','icon-xl':'Button_styleWithLayer__1abigts1o'},variant:{contained:'Button_styleWithLayer__1abigts1p',outlined:'Button_styleWithLayer__1abigts1q',ghost:'Button_styleWithLayer__1abigts1r'},pulse:{true:'Button_styleWithLayer__1abigts1s'}},defaultVariants:{},compoundVariants:[]});
10
+ var icon = 'Button_icon__1abigts31';
11
+ var span = createRuntimeFn62c9670f_esm.c({defaultClassName:'Button__1abigts16 Button_layeredBase__1abigtsx',variantClassNames:{size:{sm:'Button_styleWithLayer__1abigtsy',md:'Button_styleWithLayer__1abigtsz',lg:'Button_styleWithLayer__1abigts10',xl:'Button_styleWithLayer__1abigts11','icon-sm':'Button_styleWithLayer__1abigts12','icon-md':'Button_styleWithLayer__1abigts13','icon-lg':'Button_styleWithLayer__1abigts14','icon-xl':'Button_styleWithLayer__1abigts15'}},defaultVariants:{},compoundVariants:[]});
12
12
 
13
13
  exports.button = button;
14
14
  exports.icon = icon;
@@ -4,8 +4,8 @@ import './../../styles/globalStyle.css.ts.vanilla.css';
4
4
  import './Button.css.ts.vanilla.css';
5
5
  import { c as createRuntimeFn } from '../../node_modules/.pnpm/@vanilla-extract_recipes@0.5.7_@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0_/node_modules/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.js';
6
6
 
7
- var button = createRuntimeFn({defaultClassName:'Button__1abigts1o Button_layeredBase__1abigts1b',variantClassNames:{hasIcon:{true:'Button_styleWithLayer__1abigts1c'},color:{primary:'Button_styleWithLayer__1abigts2',secondary:'Button_styleWithLayer__1abigts3',muted:'Button_styleWithLayer__1abigts4',accent:'Button_styleWithLayer__1abigts5',card:'Button_styleWithLayer__1abigts6',danger:'Button_styleWithLayer__1abigts7',warning:'Button_styleWithLayer__1abigts8',success:'Button_styleWithLayer__1abigts9',red:'Button_styleWithLayer__1abigtsa',orange:'Button_styleWithLayer__1abigtsb',amber:'Button_styleWithLayer__1abigtsc',yellow:'Button_styleWithLayer__1abigtsd',lime:'Button_styleWithLayer__1abigtse',green:'Button_styleWithLayer__1abigtsf',emerald:'Button_styleWithLayer__1abigtsg',teal:'Button_styleWithLayer__1abigtsh',cyan:'Button_styleWithLayer__1abigtsi',sky:'Button_styleWithLayer__1abigtsj',blue:'Button_styleWithLayer__1abigtsk',indigo:'Button_styleWithLayer__1abigtsl',violet:'Button_styleWithLayer__1abigtsm',purple:'Button_styleWithLayer__1abigtsn',fuchsia:'Button_styleWithLayer__1abigtso',pink:'Button_styleWithLayer__1abigtsp',rose:'Button_styleWithLayer__1abigtsq',slate:'Button_styleWithLayer__1abigtsr',gray:'Button_styleWithLayer__1abigtss',zinc:'Button_styleWithLayer__1abigtst',neutral:'Button_styleWithLayer__1abigtsu',stone:'Button_styleWithLayer__1abigtsv'},size:{sm:'Button_styleWithLayer__1abigts1d',md:'Button_styleWithLayer__1abigts1e',lg:'Button_styleWithLayer__1abigts1f','icon-sm':'Button_styleWithLayer__1abigts1g','icon-md':'Button_styleWithLayer__1abigts1h','icon-lg':'Button_styleWithLayer__1abigts1i'},variant:{contained:'Button_styleWithLayer__1abigts1j',outlined:'Button_styleWithLayer__1abigts1k',ghost:'Button_styleWithLayer__1abigts1l',glass:'Button_styleWithLayer__1abigts1m'},pulse:{true:'Button_styleWithLayer__1abigts1n'}},defaultVariants:{},compoundVariants:[]});
8
- var icon = 'Button_icon__1abigts2v';
9
- var span = createRuntimeFn({defaultClassName:'Button__1abigts14 Button_layeredBase__1abigtsx',variantClassNames:{size:{sm:'Button_styleWithLayer__1abigtsy',md:'Button_styleWithLayer__1abigtsz',lg:'Button_styleWithLayer__1abigts10','icon-sm':'Button_styleWithLayer__1abigts11','icon-md':'Button_styleWithLayer__1abigts12','icon-lg':'Button_styleWithLayer__1abigts13'}},defaultVariants:{},compoundVariants:[]});
7
+ var button = createRuntimeFn({defaultClassName:'Button__1abigts1t Button_layeredBase__1abigts1f',variantClassNames:{hasIcon:{true:'Button_styleWithLayer__1abigts1g'},color:{primary:'Button_styleWithLayer__1abigts2',secondary:'Button_styleWithLayer__1abigts3',muted:'Button_styleWithLayer__1abigts4',accent:'Button_styleWithLayer__1abigts5',card:'Button_styleWithLayer__1abigts6',danger:'Button_styleWithLayer__1abigts7',warning:'Button_styleWithLayer__1abigts8',success:'Button_styleWithLayer__1abigts9',red:'Button_styleWithLayer__1abigtsa',orange:'Button_styleWithLayer__1abigtsb',amber:'Button_styleWithLayer__1abigtsc',yellow:'Button_styleWithLayer__1abigtsd',lime:'Button_styleWithLayer__1abigtse',green:'Button_styleWithLayer__1abigtsf',emerald:'Button_styleWithLayer__1abigtsg',teal:'Button_styleWithLayer__1abigtsh',cyan:'Button_styleWithLayer__1abigtsi',sky:'Button_styleWithLayer__1abigtsj',blue:'Button_styleWithLayer__1abigtsk',indigo:'Button_styleWithLayer__1abigtsl',violet:'Button_styleWithLayer__1abigtsm',purple:'Button_styleWithLayer__1abigtsn',fuchsia:'Button_styleWithLayer__1abigtso',pink:'Button_styleWithLayer__1abigtsp',rose:'Button_styleWithLayer__1abigtsq',slate:'Button_styleWithLayer__1abigtsr',gray:'Button_styleWithLayer__1abigtss',zinc:'Button_styleWithLayer__1abigtst',neutral:'Button_styleWithLayer__1abigtsu',stone:'Button_styleWithLayer__1abigtsv'},size:{sm:'Button_styleWithLayer__1abigts1h',md:'Button_styleWithLayer__1abigts1i',lg:'Button_styleWithLayer__1abigts1j',xl:'Button_styleWithLayer__1abigts1k','icon-sm':'Button_styleWithLayer__1abigts1l','icon-md':'Button_styleWithLayer__1abigts1m','icon-lg':'Button_styleWithLayer__1abigts1n','icon-xl':'Button_styleWithLayer__1abigts1o'},variant:{contained:'Button_styleWithLayer__1abigts1p',outlined:'Button_styleWithLayer__1abigts1q',ghost:'Button_styleWithLayer__1abigts1r'},pulse:{true:'Button_styleWithLayer__1abigts1s'}},defaultVariants:{},compoundVariants:[]});
8
+ var icon = 'Button_icon__1abigts31';
9
+ var span = createRuntimeFn({defaultClassName:'Button__1abigts16 Button_layeredBase__1abigtsx',variantClassNames:{size:{sm:'Button_styleWithLayer__1abigtsy',md:'Button_styleWithLayer__1abigtsz',lg:'Button_styleWithLayer__1abigts10',xl:'Button_styleWithLayer__1abigts11','icon-sm':'Button_styleWithLayer__1abigts12','icon-md':'Button_styleWithLayer__1abigts13','icon-lg':'Button_styleWithLayer__1abigts14','icon-xl':'Button_styleWithLayer__1abigts15'}},defaultVariants:{},compoundVariants:[]});
10
10
 
11
11
  export { button, icon, span };
@@ -8,7 +8,7 @@ var Button_css = require('./Button.css.vanilla.cjs');
8
8
  var index = require('../../hooks/useRipple/index.cjs');
9
9
  var sx = require('../../styles/sx.cjs');
10
10
 
11
- const Button = react.forwardRef(({ children, color = 'primary', size = 'md', variant = 'contained', pulse = false, className, sx: propSx, icon, ...props }, ref) => {
11
+ const Button = react.forwardRef(({ children, color = 'primary', size = 'md', fontSize, variant = 'contained', pulse = false, className, sx: propSx, icon, ...props }, ref) => {
12
12
  const localRef = react.useRef(null);
13
13
  const elementRef = ref || localRef;
14
14
  const { ripple } = index.useRipple(elementRef);
@@ -18,7 +18,7 @@ const Button = react.forwardRef(({ children, color = 'primary', size = 'md', var
18
18
  variant,
19
19
  pulse,
20
20
  hasIcon: icon !== undefined,
21
- }), sx.sx(propSx)), ...props, children: [icon !== undefined && jsxRuntime.jsx("span", { className: Button_css.icon, children: icon }), jsxRuntime.jsx("span", { className: Button_css.span({ size }), children: children }), ripple] }));
21
+ }), sx.sx(propSx)), ...props, children: [icon !== undefined && jsxRuntime.jsx("span", { className: Button_css.icon, children: icon }), jsxRuntime.jsx("span", { className: Button_css.span({ size: fontSize ?? size }), children: children }), ripple] }));
22
22
  });
23
23
  Button.displayName = 'Button';
24
24
 
@@ -1,8 +1,9 @@
1
1
  import { type ReactElement } from 'react';
2
- import type { UIComponent } from '#types';
2
+ import type { RecipeVariantsProps, UIComponent } from '#types';
3
3
  import * as s from './Button.css';
4
4
  interface ButtonProps extends UIComponent<'button', typeof s.button> {
5
5
  icon?: ReactElement;
6
+ fontSize?: RecipeVariantsProps<typeof s.span>['size'];
6
7
  }
7
8
  export declare const Button: import("react").ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
8
9
  export { s as buttonCss };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Button/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAsB,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAM9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAE1C,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAElC,UAAU,WAAY,SAAQ,WAAW,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,MAAM,CAAC;IAClE,IAAI,CAAC,EAAE,YAAY,CAAC;CACrB;AAED,eAAO,MAAM,MAAM,wHAyClB,CAAC;AAGF,OAAO,EAAE,CAAC,IAAI,SAAS,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Button/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAsB,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAM9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAE/D,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAElC,UAAU,WAAY,SAAQ,WAAW,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,MAAM,CAAC;IAClE,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,QAAQ,CAAC,EAAE,mBAAmB,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC;CACvD;AAED,eAAO,MAAM,MAAM,wHA0ClB,CAAC;AAGF,OAAO,EAAE,CAAC,IAAI,SAAS,EAAE,CAAC"}
@@ -8,7 +8,7 @@ export { Button_css as buttonCss };
8
8
  import { useRipple } from '../../hooks/useRipple/index.js';
9
9
  import { sx } from '../../styles/sx.js';
10
10
 
11
- const Button = forwardRef(({ children, color = 'primary', size = 'md', variant = 'contained', pulse = false, className, sx: propSx, icon: icon$1, ...props }, ref) => {
11
+ const Button = forwardRef(({ children, color = 'primary', size = 'md', fontSize, variant = 'contained', pulse = false, className, sx: propSx, icon: icon$1, ...props }, ref) => {
12
12
  const localRef = useRef(null);
13
13
  const elementRef = ref || localRef;
14
14
  const { ripple } = useRipple(elementRef);
@@ -18,7 +18,7 @@ const Button = forwardRef(({ children, color = 'primary', size = 'md', variant =
18
18
  variant,
19
19
  pulse,
20
20
  hasIcon: icon$1 !== undefined,
21
- }), sx(propSx)), ...props, children: [icon$1 !== undefined && jsx("span", { className: icon, children: icon$1 }), jsx("span", { className: span({ size }), children: children }), ripple] }));
21
+ }), sx(propSx)), ...props, children: [icon$1 !== undefined && jsx("span", { className: icon, children: icon$1 }), jsx("span", { className: span({ size: fontSize ?? size }), children: children }), ripple] }));
22
22
  });
23
23
  Button.displayName = 'Button';
24
24
 
@@ -6,25 +6,6 @@ export declare const card: import("@vanilla-extract/recipes").RuntimeFn<{
6
6
  border: "1px solid";
7
7
  borderColor: `rgb(var(--${string}))`;
8
8
  };
9
- glass: {
10
- border: `1px solid rgb(var(--${string}))`;
11
- borderRadius: "0.75rem";
12
- background: `linear-gradient(rgba(var(--${string}), 0.06) 0%, rgba(var(--${string}), 0.02) 100%)`;
13
- backdropFilter: "blur(1rem)";
14
- '::before': {
15
- position: "absolute";
16
- inset: "0";
17
- background: "linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 100%)";
18
- opacity: "0";
19
- transition: "opacity 0.3s ease";
20
- content: "";
21
- };
22
- selectors: {
23
- '&:hover::before': {
24
- opacity: "1";
25
- };
26
- };
27
- };
28
9
  };
29
10
  color: {
30
11
  transparent: {
@@ -1 +1 @@
1
- {"version":3,"file":"Card.css.d.ts","sourceRoot":"","sources":["../../../src/components/Card/Card.css.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,UAAU,oBAAc,CAAC;AAsBtC,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAuEP,CAAC,UAAU,CAAC,WAAY;;;;;gBAMxB,CAAC,UAAU,CAAC,UAAY;;;;;gBAMxB,CAAC,UAAU,CAAC,WAAY;;;;;gBAMxB,CAAC,UAAU,CAAC,QAAY;;;;;gBAMxB,CAAC,UAAU,CAAC,UAAgB;;;;EAKpC,CAAC"}
1
+ {"version":3,"file":"Card.css.d.ts","sourceRoot":"","sources":["../../../src/components/Card/Card.css.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,UAAU,oBAAc,CAAC;AAsBtC,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBA4CP,CAAC,UAAU,CAAC,WAAY;;;;;gBAMxB,CAAC,UAAU,CAAC,UAAY;;;;;gBAMxB,CAAC,UAAU,CAAC,WAAY;;;;;gBAMxB,CAAC,UAAU,CAAC,QAAY;;;;;gBAMxB,CAAC,UAAU,CAAC,UAAgB;;;;EAKpC,CAAC"}
@@ -110,38 +110,21 @@
110
110
  border-color: rgb(var(--color-border__n6e2fs3));
111
111
  }
112
112
  .Card_styleWithLayer__1foreksy {
113
- border: 1px solid rgb(var(--color-border\.weak__n6e2fs4));
114
- border-radius: 0.75rem;
115
- background: linear-gradient(rgba(var(--color-card\.gradient__n6e2fs5), 0.06) 0%, rgba(var(--color-card\.gradient__n6e2fs5), 0.02) 100%);
116
- backdrop-filter: blur(1rem);
117
- }
118
- .Card_styleWithLayer__1foreksy::before {
119
- content: "";
120
- position: absolute;
121
- inset: 0;
122
- background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 100%);
123
- opacity: 0;
124
- transition: opacity 0.3s ease;
125
- }
126
- .Card_styleWithLayer__1foreksy:hover::before {
127
- opacity: 1;
128
- }
129
- .Card_styleWithLayer__1foreksz {
130
113
  background-color: transparent;
131
114
  }
132
- .Card_styleWithLayer__1foreks10 {
115
+ .Card_styleWithLayer__1foreksz {
133
116
  --paddingVar__1foreks0: 0.25em;
134
117
  }
135
- .Card_styleWithLayer__1foreks11 {
118
+ .Card_styleWithLayer__1foreks10 {
136
119
  --paddingVar__1foreks0: 0.5em;
137
120
  }
138
- .Card_styleWithLayer__1foreks12 {
121
+ .Card_styleWithLayer__1foreks11 {
139
122
  --paddingVar__1foreks0: 0.75em;
140
123
  }
141
- .Card_styleWithLayer__1foreks13 {
124
+ .Card_styleWithLayer__1foreks12 {
142
125
  --paddingVar__1foreks0: 1em;
143
126
  }
144
- .Card_styleWithLayer__1foreks14 {
127
+ .Card_styleWithLayer__1foreks13 {
145
128
  --paddingVar__1foreks0: 1.5em;
146
129
  }
147
130
  }
@@ -7,7 +7,7 @@ require('./CardInteraction.css.ts.vanilla.css');
7
7
  require('./Card.css.ts.vanilla.css');
8
8
  var createRuntimeFn62c9670f_esm = require('../../node_modules/.pnpm/@vanilla-extract_recipes@0.5.7_@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0_/node_modules/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.cjs');
9
9
 
10
- var card = createRuntimeFn62c9670f_esm.c({defaultClassName:'Card__1foreks15 Card_layeredBase__1foreksv',variantClassNames:{variant:{contained:'Card_styleWithLayer__1foreksw',outlined:'Card_styleWithLayer__1foreksx',glass:'Card_styleWithLayer__1foreksy'},color:{primary:'Card_styleWithLayer__1foreks1',secondary:'Card_styleWithLayer__1foreks2',muted:'Card_styleWithLayer__1foreks3',accent:'Card_styleWithLayer__1foreks4',card:'Card_styleWithLayer__1foreks5',danger:'Card_styleWithLayer__1foreks6',warning:'Card_styleWithLayer__1foreks7',success:'Card_styleWithLayer__1foreks8',red:'Card_styleWithLayer__1foreks9',orange:'Card_styleWithLayer__1foreksa',amber:'Card_styleWithLayer__1foreksb',yellow:'Card_styleWithLayer__1foreksc',lime:'Card_styleWithLayer__1foreksd',green:'Card_styleWithLayer__1forekse',emerald:'Card_styleWithLayer__1foreksf',teal:'Card_styleWithLayer__1foreksg',cyan:'Card_styleWithLayer__1foreksh',sky:'Card_styleWithLayer__1foreksi',blue:'Card_styleWithLayer__1foreksj',indigo:'Card_styleWithLayer__1foreksk',violet:'Card_styleWithLayer__1foreksl',purple:'Card_styleWithLayer__1foreksm',fuchsia:'Card_styleWithLayer__1foreksn',pink:'Card_styleWithLayer__1forekso',rose:'Card_styleWithLayer__1foreksp',slate:'Card_styleWithLayer__1foreksq',gray:'Card_styleWithLayer__1foreksr',zinc:'Card_styleWithLayer__1forekss',neutral:'Card_styleWithLayer__1forekst',stone:'Card_styleWithLayer__1foreksu',transparent:'Card_styleWithLayer__1foreksz'},size:{sm:'Card_styleWithLayer__1foreks10',md:'Card_styleWithLayer__1foreks11',lg:'Card_styleWithLayer__1foreks12',xl:'Card_styleWithLayer__1foreks13','2xl':'Card_styleWithLayer__1foreks14'}},defaultVariants:{},compoundVariants:[]});
10
+ var card = createRuntimeFn62c9670f_esm.c({defaultClassName:'Card__1foreks14 Card_layeredBase__1foreksv',variantClassNames:{variant:{contained:'Card_styleWithLayer__1foreksw',outlined:'Card_styleWithLayer__1foreksx'},color:{primary:'Card_styleWithLayer__1foreks1',secondary:'Card_styleWithLayer__1foreks2',muted:'Card_styleWithLayer__1foreks3',accent:'Card_styleWithLayer__1foreks4',card:'Card_styleWithLayer__1foreks5',danger:'Card_styleWithLayer__1foreks6',warning:'Card_styleWithLayer__1foreks7',success:'Card_styleWithLayer__1foreks8',red:'Card_styleWithLayer__1foreks9',orange:'Card_styleWithLayer__1foreksa',amber:'Card_styleWithLayer__1foreksb',yellow:'Card_styleWithLayer__1foreksc',lime:'Card_styleWithLayer__1foreksd',green:'Card_styleWithLayer__1forekse',emerald:'Card_styleWithLayer__1foreksf',teal:'Card_styleWithLayer__1foreksg',cyan:'Card_styleWithLayer__1foreksh',sky:'Card_styleWithLayer__1foreksi',blue:'Card_styleWithLayer__1foreksj',indigo:'Card_styleWithLayer__1foreksk',violet:'Card_styleWithLayer__1foreksl',purple:'Card_styleWithLayer__1foreksm',fuchsia:'Card_styleWithLayer__1foreksn',pink:'Card_styleWithLayer__1forekso',rose:'Card_styleWithLayer__1foreksp',slate:'Card_styleWithLayer__1foreksq',gray:'Card_styleWithLayer__1foreksr',zinc:'Card_styleWithLayer__1forekss',neutral:'Card_styleWithLayer__1forekst',stone:'Card_styleWithLayer__1foreksu',transparent:'Card_styleWithLayer__1foreksy'},size:{sm:'Card_styleWithLayer__1foreksz',md:'Card_styleWithLayer__1foreks10',lg:'Card_styleWithLayer__1foreks11',xl:'Card_styleWithLayer__1foreks12','2xl':'Card_styleWithLayer__1foreks13'}},defaultVariants:{},compoundVariants:[]});
11
11
  var paddingVar = 'var(--paddingVar__1foreks0)';
12
12
 
13
13
  exports.card = card;
@@ -5,7 +5,7 @@ import './CardInteraction.css.ts.vanilla.css';
5
5
  import './Card.css.ts.vanilla.css';
6
6
  import { c as createRuntimeFn } from '../../node_modules/.pnpm/@vanilla-extract_recipes@0.5.7_@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0_/node_modules/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.js';
7
7
 
8
- var card = createRuntimeFn({defaultClassName:'Card__1foreks15 Card_layeredBase__1foreksv',variantClassNames:{variant:{contained:'Card_styleWithLayer__1foreksw',outlined:'Card_styleWithLayer__1foreksx',glass:'Card_styleWithLayer__1foreksy'},color:{primary:'Card_styleWithLayer__1foreks1',secondary:'Card_styleWithLayer__1foreks2',muted:'Card_styleWithLayer__1foreks3',accent:'Card_styleWithLayer__1foreks4',card:'Card_styleWithLayer__1foreks5',danger:'Card_styleWithLayer__1foreks6',warning:'Card_styleWithLayer__1foreks7',success:'Card_styleWithLayer__1foreks8',red:'Card_styleWithLayer__1foreks9',orange:'Card_styleWithLayer__1foreksa',amber:'Card_styleWithLayer__1foreksb',yellow:'Card_styleWithLayer__1foreksc',lime:'Card_styleWithLayer__1foreksd',green:'Card_styleWithLayer__1forekse',emerald:'Card_styleWithLayer__1foreksf',teal:'Card_styleWithLayer__1foreksg',cyan:'Card_styleWithLayer__1foreksh',sky:'Card_styleWithLayer__1foreksi',blue:'Card_styleWithLayer__1foreksj',indigo:'Card_styleWithLayer__1foreksk',violet:'Card_styleWithLayer__1foreksl',purple:'Card_styleWithLayer__1foreksm',fuchsia:'Card_styleWithLayer__1foreksn',pink:'Card_styleWithLayer__1forekso',rose:'Card_styleWithLayer__1foreksp',slate:'Card_styleWithLayer__1foreksq',gray:'Card_styleWithLayer__1foreksr',zinc:'Card_styleWithLayer__1forekss',neutral:'Card_styleWithLayer__1forekst',stone:'Card_styleWithLayer__1foreksu',transparent:'Card_styleWithLayer__1foreksz'},size:{sm:'Card_styleWithLayer__1foreks10',md:'Card_styleWithLayer__1foreks11',lg:'Card_styleWithLayer__1foreks12',xl:'Card_styleWithLayer__1foreks13','2xl':'Card_styleWithLayer__1foreks14'}},defaultVariants:{},compoundVariants:[]});
8
+ var card = createRuntimeFn({defaultClassName:'Card__1foreks14 Card_layeredBase__1foreksv',variantClassNames:{variant:{contained:'Card_styleWithLayer__1foreksw',outlined:'Card_styleWithLayer__1foreksx'},color:{primary:'Card_styleWithLayer__1foreks1',secondary:'Card_styleWithLayer__1foreks2',muted:'Card_styleWithLayer__1foreks3',accent:'Card_styleWithLayer__1foreks4',card:'Card_styleWithLayer__1foreks5',danger:'Card_styleWithLayer__1foreks6',warning:'Card_styleWithLayer__1foreks7',success:'Card_styleWithLayer__1foreks8',red:'Card_styleWithLayer__1foreks9',orange:'Card_styleWithLayer__1foreksa',amber:'Card_styleWithLayer__1foreksb',yellow:'Card_styleWithLayer__1foreksc',lime:'Card_styleWithLayer__1foreksd',green:'Card_styleWithLayer__1forekse',emerald:'Card_styleWithLayer__1foreksf',teal:'Card_styleWithLayer__1foreksg',cyan:'Card_styleWithLayer__1foreksh',sky:'Card_styleWithLayer__1foreksi',blue:'Card_styleWithLayer__1foreksj',indigo:'Card_styleWithLayer__1foreksk',violet:'Card_styleWithLayer__1foreksl',purple:'Card_styleWithLayer__1foreksm',fuchsia:'Card_styleWithLayer__1foreksn',pink:'Card_styleWithLayer__1forekso',rose:'Card_styleWithLayer__1foreksp',slate:'Card_styleWithLayer__1foreksq',gray:'Card_styleWithLayer__1foreksr',zinc:'Card_styleWithLayer__1forekss',neutral:'Card_styleWithLayer__1forekst',stone:'Card_styleWithLayer__1foreksu',transparent:'Card_styleWithLayer__1foreksy'},size:{sm:'Card_styleWithLayer__1foreksz',md:'Card_styleWithLayer__1foreks10',lg:'Card_styleWithLayer__1foreks11',xl:'Card_styleWithLayer__1foreks12','2xl':'Card_styleWithLayer__1foreks13'}},defaultVariants:{},compoundVariants:[]});
9
9
  var paddingVar = 'var(--paddingVar__1foreks0)';
10
10
 
11
11
  export { card, paddingVar };
@@ -1 +1 @@
1
- {"version":3,"file":"Range.css.d.ts","sourceRoot":"","sources":["../../../src/components/Range/Range.css.ts"],"names":[],"mappings":"AAkCA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8BhB,CAAC;AAEH,eAAO,MAAM,KAAK,QA2ChB,CAAC;AAEH,eAAO,MAAM,IAAI,QAOf,CAAC;AAEH,eAAO,MAAM,GAAG,QAWd,CAAC"}
1
+ {"version":3,"file":"Range.css.d.ts","sourceRoot":"","sources":["../../../src/components/Range/Range.css.ts"],"names":[],"mappings":"AAkCA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+BhB,CAAC;AAEH,eAAO,MAAM,KAAK,QA4ChB,CAAC;AAEH,eAAO,MAAM,IAAI,QAOf,CAAC;AAEH,eAAO,MAAM,GAAG,QAWd,CAAC"}
@@ -95,6 +95,7 @@
95
95
  width: 100%;
96
96
  height: 2em;
97
97
  user-select: none;
98
+ touch-action: none;
98
99
  }
99
100
  .Range_styleWithLayer__biyxwow {
100
101
  font-size: 0.75em;
@@ -116,6 +117,7 @@
116
117
  background-color: rgb(var(--backgroundVar__biyxwo0));
117
118
  transform: translate(-50%, -50%);
118
119
  cursor: pointer;
120
+ touch-action: none;
119
121
  }
120
122
  .Range_styleWithLayer__biyxwo1x::before {
121
123
  content: "";
@@ -4,16 +4,16 @@
4
4
  var jsxRuntime = require('react/jsx-runtime');
5
5
  var react = require('react');
6
6
  var utils = require('@kimdw-rtk/utils');
7
+ var vanillaExtractDynamic_esm = require('../../node_modules/.pnpm/@vanilla-extract_dynamic@2.1.5/node_modules/@vanilla-extract/dynamic/dist/vanilla-extract-dynamic.esm.cjs');
7
8
  var clsx = require('../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.cjs');
8
9
  var index = require('../../hooks/useMouseScroll/index.cjs');
9
10
  var ScrollArea_css = require('./ScrollArea.css.vanilla.cjs');
11
+ var spacing = require('../../tokens/semantic/spacing.cjs');
10
12
  var sx = require('../../styles/sx.cjs');
11
13
 
12
- const ScrollArea = react.forwardRef(({ children, className, sx: propSx, ...props }, ref) => {
14
+ const ScrollArea = react.forwardRef(({ children, className, innerPadding = 'lg', sx: propSx, style, ...props }, ref) => {
13
15
  const scrollAreaRef = react.useRef(null);
14
16
  const targetRef = utils.useCombinedRefs(ref, scrollAreaRef);
15
- const [hasLeftSpace, setHasLeftSpace] = react.useState(false);
16
- const [hasRightSpace, setHasRightSpace] = react.useState(true);
17
17
  index.useMouseScroll(scrollAreaRef);
18
18
  react.useEffect(() => {
19
19
  const element = scrollAreaRef.current;
@@ -28,20 +28,15 @@ const ScrollArea = react.forwardRef(({ children, className, sx: propSx, ...props
28
28
  }
29
29
  e.preventDefault();
30
30
  };
31
- const handleScroll = () => {
32
- setHasLeftSpace(element.scrollLeft !== 0);
33
- setHasRightSpace(Math.ceil(element.scrollLeft + element.clientWidth) <
34
- Math.floor(element.scrollWidth));
35
- };
36
- handleScroll();
37
- element.addEventListener('scroll', handleScroll);
38
31
  element.addEventListener('wheel', handleWheel);
39
32
  return () => {
40
- element.removeEventListener('scroll', handleScroll);
41
33
  element.removeEventListener('wheel', handleWheel);
42
34
  };
43
35
  }, []);
44
- return (jsxRuntime.jsx("div", { ref: targetRef, className: clsx.clsx(ScrollArea_css.scrollArea, className, sx.sx(propSx), hasLeftSpace && hasRightSpace && ScrollArea_css.maskBoth, hasLeftSpace && ScrollArea_css.maskLeft, hasRightSpace && ScrollArea_css.maskRight), ...props, children: jsxRuntime.jsx("div", { className: ScrollArea_css.wrapper, children: children }) }));
36
+ return (jsxRuntime.jsx("div", { ref: targetRef, className: clsx.clsx(ScrollArea_css.scrollArea, className, sx.sx(propSx), ScrollArea_css.mask), ...props, style: {
37
+ ...style,
38
+ ...vanillaExtractDynamic_esm.assignInlineVars({ [ScrollArea_css.paddingVar]: spacing.spacing[innerPadding] }),
39
+ }, children: jsxRuntime.jsx("div", { className: ScrollArea_css.wrapper, children: children }) }));
45
40
  });
46
41
  ScrollArea.displayName = 'ScrollArea';
47
42
 
@@ -1,6 +1,5 @@
1
+ export declare const paddingVar: `var(--${string})`;
1
2
  export declare const scrollArea: string;
2
- export declare const maskLeft: string;
3
- export declare const maskRight: string;
4
- export declare const maskBoth: string;
3
+ export declare const mask: string;
5
4
  export declare const wrapper: string;
6
5
  //# sourceMappingURL=ScrollArea.css.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ScrollArea.css.d.ts","sourceRoot":"","sources":["../../../src/components/ScrollArea/ScrollArea.css.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,UAAU,QASrB,CAAC;AAEH,eAAO,MAAM,QAAQ,QAKnB,CAAC;AAEH,eAAO,MAAM,SAAS,QAKpB,CAAC;AAEH,eAAO,MAAM,QAAQ,QAMnB,CAAC;AAEH,eAAO,MAAM,OAAO,QAElB,CAAC"}
1
+ {"version":3,"file":"ScrollArea.css.d.ts","sourceRoot":"","sources":["../../../src/components/ScrollArea/ScrollArea.css.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,UAAU,oBAAc,CAAC;AAEtC,eAAO,MAAM,UAAU,QASrB,CAAC;AAEH,eAAO,MAAM,IAAI,QAMf,CAAC;AAEH,eAAO,MAAM,OAAO,QAGlB,CAAC"}
@@ -1,33 +1,22 @@
1
1
  @layer components;
2
- .ScrollArea_maskLeft__m6lfro1 {
3
- mask-image: linear-gradient(to left,
4
- black 0%,
5
- black calc(100% - 3rem),
6
- transparent 100%);
7
- }
8
- .ScrollArea_maskRight__m6lfro2 {
9
- mask-image: linear-gradient(to right,
10
- black 0%,
11
- black calc(100% - 3rem),
12
- transparent 100%);
13
- }
14
- .ScrollArea_maskBoth__m6lfro3 {
2
+ .ScrollArea_mask__m6lfro2 {
15
3
  mask-image: linear-gradient(to right,
16
4
  transparent 0%,
17
- black 3rem,
18
- black calc(100% - 3rem),
5
+ black var(--paddingVar__m6lfro0),
6
+ black calc(100% - var(--paddingVar__m6lfro0)),
19
7
  transparent 100%);
20
8
  }
21
- .ScrollArea_wrapper__m6lfro4 {
9
+ .ScrollArea_wrapper__m6lfro3 {
22
10
  width: max-content;
11
+ padding-inline: var(--paddingVar__m6lfro0);
23
12
  }
24
13
  @layer components {
25
- .ScrollArea_styleWithLayer__m6lfro0 {
14
+ .ScrollArea_styleWithLayer__m6lfro1 {
26
15
  width: 100%;
27
16
  overflow-x: scroll;
28
17
  user-select: none;
29
18
  }
30
- .ScrollArea_styleWithLayer__m6lfro0::-webkit-scrollbar {
19
+ .ScrollArea_styleWithLayer__m6lfro1::-webkit-scrollbar {
31
20
  display: none;
32
21
  }
33
22
  }
@@ -5,14 +5,12 @@ require('./../../styles/sprinkles.css.ts.vanilla.css');
5
5
  require('./../../styles/globalStyle.css.ts.vanilla.css');
6
6
  require('./ScrollArea.css.ts.vanilla.css');
7
7
 
8
- var maskBoth = 'ScrollArea_maskBoth__m6lfro3';
9
- var maskLeft = 'ScrollArea_maskLeft__m6lfro1';
10
- var maskRight = 'ScrollArea_maskRight__m6lfro2';
11
- var scrollArea = 'ScrollArea_styleWithLayer__m6lfro0';
12
- var wrapper = 'ScrollArea_wrapper__m6lfro4';
8
+ var mask = 'ScrollArea_mask__m6lfro2';
9
+ var paddingVar = 'var(--paddingVar__m6lfro0)';
10
+ var scrollArea = 'ScrollArea_styleWithLayer__m6lfro1';
11
+ var wrapper = 'ScrollArea_wrapper__m6lfro3';
13
12
 
14
- exports.maskBoth = maskBoth;
15
- exports.maskLeft = maskLeft;
16
- exports.maskRight = maskRight;
13
+ exports.mask = mask;
14
+ exports.paddingVar = paddingVar;
17
15
  exports.scrollArea = scrollArea;
18
16
  exports.wrapper = wrapper;
@@ -3,10 +3,9 @@ import './../../styles/sprinkles.css.ts.vanilla.css';
3
3
  import './../../styles/globalStyle.css.ts.vanilla.css';
4
4
  import './ScrollArea.css.ts.vanilla.css';
5
5
 
6
- var maskBoth = 'ScrollArea_maskBoth__m6lfro3';
7
- var maskLeft = 'ScrollArea_maskLeft__m6lfro1';
8
- var maskRight = 'ScrollArea_maskRight__m6lfro2';
9
- var scrollArea = 'ScrollArea_styleWithLayer__m6lfro0';
10
- var wrapper = 'ScrollArea_wrapper__m6lfro4';
6
+ var mask = 'ScrollArea_mask__m6lfro2';
7
+ var paddingVar = 'var(--paddingVar__m6lfro0)';
8
+ var scrollArea = 'ScrollArea_styleWithLayer__m6lfro1';
9
+ var wrapper = 'ScrollArea_wrapper__m6lfro3';
11
10
 
12
- export { maskBoth, maskLeft, maskRight, scrollArea, wrapper };
11
+ export { mask, paddingVar, scrollArea, wrapper };
@@ -1,6 +1,9 @@
1
+ import { spacing } from '#tokens';
1
2
  import type { UIComponent } from '#types';
2
3
  import * as s from './ScrollArea.css';
3
- type ScrollAreaProps = UIComponent<'div'>;
4
+ interface ScrollAreaProps extends UIComponent<'div'> {
5
+ innerPadding?: keyof typeof spacing;
6
+ }
4
7
  export declare const ScrollArea: import("react").ForwardRefExoticComponent<Omit<ScrollAreaProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
5
8
  export { s as scrollAreaCss };
6
9
  //# sourceMappingURL=ScrollArea.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ScrollArea.d.ts","sourceRoot":"","sources":["../../../src/components/ScrollArea/ScrollArea.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAE1C,OAAO,KAAK,CAAC,MAAM,kBAAkB,CAAC;AAEtC,KAAK,eAAe,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC;AAE1C,eAAO,MAAM,UAAU,yHA+DtB,CAAC;AAGF,OAAO,EAAE,CAAC,IAAI,aAAa,EAAE,CAAC"}
1
+ {"version":3,"file":"ScrollArea.d.ts","sourceRoot":"","sources":["../../../src/components/ScrollArea/ScrollArea.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAE1C,OAAO,KAAK,CAAC,MAAM,kBAAkB,CAAC;AAEtC,UAAU,eAAgB,SAAQ,WAAW,CAAC,KAAK,CAAC;IAClD,YAAY,CAAC,EAAE,MAAM,OAAO,OAAO,CAAC;CACrC;AAED,eAAO,MAAM,UAAU,yHAiDtB,CAAC;AAGF,OAAO,EAAE,CAAC,IAAI,aAAa,EAAE,CAAC"}
@@ -1,19 +1,19 @@
1
1
  "use client";
2
2
  import { jsx } from 'react/jsx-runtime';
3
- import { forwardRef, useRef, useState, useEffect } from 'react';
3
+ import { forwardRef, useRef, useEffect } from 'react';
4
4
  import { useCombinedRefs } from '@kimdw-rtk/utils';
5
+ import { assignInlineVars } from '../../node_modules/.pnpm/@vanilla-extract_dynamic@2.1.5/node_modules/@vanilla-extract/dynamic/dist/vanilla-extract-dynamic.esm.js';
5
6
  import { clsx } from '../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js';
6
7
  import { useMouseScroll } from '../../hooks/useMouseScroll/index.js';
7
- import { wrapper, scrollArea, maskBoth, maskLeft, maskRight } from './ScrollArea.css.vanilla.js';
8
+ import { wrapper, paddingVar, scrollArea, mask } from './ScrollArea.css.vanilla.js';
8
9
  import * as ScrollArea_css from './ScrollArea.css.vanilla.js';
9
10
  export { ScrollArea_css as scrollAreaCss };
11
+ import { spacing } from '../../tokens/semantic/spacing.js';
10
12
  import { sx } from '../../styles/sx.js';
11
13
 
12
- const ScrollArea = forwardRef(({ children, className, sx: propSx, ...props }, ref) => {
14
+ const ScrollArea = forwardRef(({ children, className, innerPadding = 'lg', sx: propSx, style, ...props }, ref) => {
13
15
  const scrollAreaRef = useRef(null);
14
16
  const targetRef = useCombinedRefs(ref, scrollAreaRef);
15
- const [hasLeftSpace, setHasLeftSpace] = useState(false);
16
- const [hasRightSpace, setHasRightSpace] = useState(true);
17
17
  useMouseScroll(scrollAreaRef);
18
18
  useEffect(() => {
19
19
  const element = scrollAreaRef.current;
@@ -28,20 +28,15 @@ const ScrollArea = forwardRef(({ children, className, sx: propSx, ...props }, re
28
28
  }
29
29
  e.preventDefault();
30
30
  };
31
- const handleScroll = () => {
32
- setHasLeftSpace(element.scrollLeft !== 0);
33
- setHasRightSpace(Math.ceil(element.scrollLeft + element.clientWidth) <
34
- Math.floor(element.scrollWidth));
35
- };
36
- handleScroll();
37
- element.addEventListener('scroll', handleScroll);
38
31
  element.addEventListener('wheel', handleWheel);
39
32
  return () => {
40
- element.removeEventListener('scroll', handleScroll);
41
33
  element.removeEventListener('wheel', handleWheel);
42
34
  };
43
35
  }, []);
44
- return (jsx("div", { ref: targetRef, className: clsx(scrollArea, className, sx(propSx), hasLeftSpace && hasRightSpace && maskBoth, hasLeftSpace && maskLeft, hasRightSpace && maskRight), ...props, children: jsx("div", { className: wrapper, children: children }) }));
36
+ return (jsx("div", { ref: targetRef, className: clsx(scrollArea, className, sx(propSx), mask), ...props, style: {
37
+ ...style,
38
+ ...assignInlineVars({ [paddingVar]: spacing[innerPadding] }),
39
+ }, children: jsx("div", { className: wrapper, children: children }) }));
45
40
  });
46
41
  ScrollArea.displayName = 'ScrollArea';
47
42
 
@@ -1 +1 @@
1
- {"version":3,"file":"SelectOption.css.d.ts","sourceRoot":"","sources":["../../../src/components/Select/SelectOption.css.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,QAUvB,CAAC"}
1
+ {"version":3,"file":"SelectOption.css.d.ts","sourceRoot":"","sources":["../../../src/components/Select/SelectOption.css.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,QAevB,CAAC"}
@@ -1,7 +1,10 @@
1
1
  @layer components;
2
2
  @layer components {
3
3
  .SelectOption_styleWithLayer__16jsez30 {
4
+ overflow-x: hidden;
4
5
  padding: 0.75em 0.5em;
6
+ text-overflow: ellipsis;
7
+ white-space: nowrap;
5
8
  transition: background-color 0.2s ease;
6
9
  cursor: default;
7
10
  }
@@ -1 +1 @@
1
- {"version":3,"file":"SelectOptionList.css.d.ts","sourceRoot":"","sources":["../../../src/components/Select/SelectOptionList.css.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;EAkDpB,CAAC"}
1
+ {"version":3,"file":"SelectOptionList.css.d.ts","sourceRoot":"","sources":["../../../src/components/Select/SelectOptionList.css.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;EAiDpB,CAAC"}
@@ -15,7 +15,6 @@
15
15
  position: absolute;
16
16
  z-index: 10;
17
17
  width: 100%;
18
- min-width: max-content;
19
18
  border: 1px solid rgb(var(--color-border__n6e2fs3));
20
19
  border-radius: var(--borderRadius__n6e2fs0);
21
20
  margin: 0.5rem 0;
@@ -7,40 +7,91 @@ const usePointerSlider = (ref, { min, max, defaultValue, }) => {
7
7
  const [value, setValue] = react.useState(defaultValue);
8
8
  react.useEffect(() => {
9
9
  const element = ref.current;
10
- let isDown = false, parentWidth = 0, parentX = 0;
11
10
  if (element === null) {
12
11
  return;
13
12
  }
14
- element.style.left = `${((defaultValue - min) / (max - min)) * 100}%`;
15
- const handlePointerDown = (e) => {
16
- element.setPointerCapture(e.pointerId);
17
- isDown = true;
13
+ const ownerWindow = element.ownerDocument.defaultView;
14
+ if (ownerWindow === null) {
15
+ return;
16
+ }
17
+ let isDragging = false, activePointerId = null, parentWidth = 0, parentX = 0;
18
+ const setThumbPosition = (nextValue) => {
19
+ element.style.left = `${((nextValue - min) / (max - min)) * 100}%`;
20
+ };
21
+ const syncParentRect = () => {
18
22
  const boundingRect = element.parentElement?.getBoundingClientRect();
19
23
  if (boundingRect === undefined) {
20
- return;
24
+ return false;
21
25
  }
22
26
  parentWidth = boundingRect.width;
23
27
  parentX = boundingRect.x;
28
+ return parentWidth > 0;
24
29
  };
25
- const handlePointerMove = (e) => {
26
- if (!isDown) {
30
+ const updateValue = (clientX) => {
31
+ if (parentWidth <= 0 || !Number.isFinite(clientX)) {
27
32
  return;
28
33
  }
29
- const currentValue = Math.min(max, Math.max(min, Math.round((e.clientX - parentX) / (parentWidth / (max - min))) + min));
30
- element.style.left = `${((currentValue - min) / (max - min)) * 100}%`;
34
+ const currentValue = Math.min(max, Math.max(min, Math.round((clientX - parentX) / (parentWidth / (max - min))) + min));
35
+ setThumbPosition(currentValue);
31
36
  setValue(currentValue);
32
37
  };
38
+ setValue(defaultValue);
39
+ setThumbPosition(defaultValue);
40
+ const handlePointerDown = (e) => {
41
+ if (e.pointerType === 'mouse' && e.button !== 0) {
42
+ return;
43
+ }
44
+ if (!syncParentRect()) {
45
+ return;
46
+ }
47
+ e.preventDefault();
48
+ isDragging = true;
49
+ activePointerId = Number.isFinite(e.pointerId) ? e.pointerId : null;
50
+ if (activePointerId !== null &&
51
+ element.hasPointerCapture?.(activePointerId) === false) {
52
+ element.setPointerCapture?.(activePointerId);
53
+ }
54
+ updateValue(e.clientX);
55
+ };
56
+ const handlePointerMove = (e) => {
57
+ if (!isDragging ||
58
+ (activePointerId !== null && activePointerId !== e.pointerId)) {
59
+ return;
60
+ }
61
+ updateValue(e.clientX);
62
+ };
33
63
  const handlePointerUp = (e) => {
34
- element.releasePointerCapture(e.pointerId);
35
- isDown = false;
64
+ if (activePointerId !== null && activePointerId !== e.pointerId) {
65
+ return;
66
+ }
67
+ if (activePointerId !== null &&
68
+ element.hasPointerCapture?.(activePointerId)) {
69
+ element.releasePointerCapture?.(activePointerId);
70
+ }
71
+ isDragging = false;
72
+ activePointerId = null;
73
+ };
74
+ const handleLostPointerCapture = () => {
75
+ isDragging = false;
76
+ activePointerId = null;
36
77
  };
37
78
  element.addEventListener('pointerdown', handlePointerDown);
38
79
  element.addEventListener('pointermove', handlePointerMove);
39
80
  element.addEventListener('pointerup', handlePointerUp);
81
+ element.addEventListener('pointercancel', handlePointerUp);
82
+ element.addEventListener('lostpointercapture', handleLostPointerCapture);
83
+ ownerWindow.addEventListener('pointermove', handlePointerMove);
84
+ ownerWindow.addEventListener('pointerup', handlePointerUp);
85
+ ownerWindow.addEventListener('pointercancel', handlePointerUp);
40
86
  return () => {
41
87
  element.removeEventListener('pointerdown', handlePointerDown);
42
88
  element.removeEventListener('pointermove', handlePointerMove);
43
89
  element.removeEventListener('pointerup', handlePointerUp);
90
+ element.removeEventListener('pointercancel', handlePointerUp);
91
+ element.removeEventListener('lostpointercapture', handleLostPointerCapture);
92
+ ownerWindow.removeEventListener('pointermove', handlePointerMove);
93
+ ownerWindow.removeEventListener('pointerup', handlePointerUp);
94
+ ownerWindow.removeEventListener('pointercancel', handlePointerUp);
44
95
  };
45
96
  }, [ref, max, min, defaultValue]);
46
97
  return value;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/usePointerSlider/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,gBAAgB,GAAI,CAAC,SAAS,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,EAC5E,KAAK,CAAC,EACN,6BAIG;IACD,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,MAAM,CAAC;CACtB,KACA,MA+DF,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/usePointerSlider/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,gBAAgB,GAAI,CAAC,SAAS,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,EAC5E,KAAK,CAAC,EACN,6BAIG;IACD,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,MAAM,CAAC;CACtB,KACA,MA2IF,CAAC"}
@@ -5,40 +5,91 @@ const usePointerSlider = (ref, { min, max, defaultValue, }) => {
5
5
  const [value, setValue] = useState(defaultValue);
6
6
  useEffect(() => {
7
7
  const element = ref.current;
8
- let isDown = false, parentWidth = 0, parentX = 0;
9
8
  if (element === null) {
10
9
  return;
11
10
  }
12
- element.style.left = `${((defaultValue - min) / (max - min)) * 100}%`;
13
- const handlePointerDown = (e) => {
14
- element.setPointerCapture(e.pointerId);
15
- isDown = true;
11
+ const ownerWindow = element.ownerDocument.defaultView;
12
+ if (ownerWindow === null) {
13
+ return;
14
+ }
15
+ let isDragging = false, activePointerId = null, parentWidth = 0, parentX = 0;
16
+ const setThumbPosition = (nextValue) => {
17
+ element.style.left = `${((nextValue - min) / (max - min)) * 100}%`;
18
+ };
19
+ const syncParentRect = () => {
16
20
  const boundingRect = element.parentElement?.getBoundingClientRect();
17
21
  if (boundingRect === undefined) {
18
- return;
22
+ return false;
19
23
  }
20
24
  parentWidth = boundingRect.width;
21
25
  parentX = boundingRect.x;
26
+ return parentWidth > 0;
22
27
  };
23
- const handlePointerMove = (e) => {
24
- if (!isDown) {
28
+ const updateValue = (clientX) => {
29
+ if (parentWidth <= 0 || !Number.isFinite(clientX)) {
25
30
  return;
26
31
  }
27
- const currentValue = Math.min(max, Math.max(min, Math.round((e.clientX - parentX) / (parentWidth / (max - min))) + min));
28
- element.style.left = `${((currentValue - min) / (max - min)) * 100}%`;
32
+ const currentValue = Math.min(max, Math.max(min, Math.round((clientX - parentX) / (parentWidth / (max - min))) + min));
33
+ setThumbPosition(currentValue);
29
34
  setValue(currentValue);
30
35
  };
36
+ setValue(defaultValue);
37
+ setThumbPosition(defaultValue);
38
+ const handlePointerDown = (e) => {
39
+ if (e.pointerType === 'mouse' && e.button !== 0) {
40
+ return;
41
+ }
42
+ if (!syncParentRect()) {
43
+ return;
44
+ }
45
+ e.preventDefault();
46
+ isDragging = true;
47
+ activePointerId = Number.isFinite(e.pointerId) ? e.pointerId : null;
48
+ if (activePointerId !== null &&
49
+ element.hasPointerCapture?.(activePointerId) === false) {
50
+ element.setPointerCapture?.(activePointerId);
51
+ }
52
+ updateValue(e.clientX);
53
+ };
54
+ const handlePointerMove = (e) => {
55
+ if (!isDragging ||
56
+ (activePointerId !== null && activePointerId !== e.pointerId)) {
57
+ return;
58
+ }
59
+ updateValue(e.clientX);
60
+ };
31
61
  const handlePointerUp = (e) => {
32
- element.releasePointerCapture(e.pointerId);
33
- isDown = false;
62
+ if (activePointerId !== null && activePointerId !== e.pointerId) {
63
+ return;
64
+ }
65
+ if (activePointerId !== null &&
66
+ element.hasPointerCapture?.(activePointerId)) {
67
+ element.releasePointerCapture?.(activePointerId);
68
+ }
69
+ isDragging = false;
70
+ activePointerId = null;
71
+ };
72
+ const handleLostPointerCapture = () => {
73
+ isDragging = false;
74
+ activePointerId = null;
34
75
  };
35
76
  element.addEventListener('pointerdown', handlePointerDown);
36
77
  element.addEventListener('pointermove', handlePointerMove);
37
78
  element.addEventListener('pointerup', handlePointerUp);
79
+ element.addEventListener('pointercancel', handlePointerUp);
80
+ element.addEventListener('lostpointercapture', handleLostPointerCapture);
81
+ ownerWindow.addEventListener('pointermove', handlePointerMove);
82
+ ownerWindow.addEventListener('pointerup', handlePointerUp);
83
+ ownerWindow.addEventListener('pointercancel', handlePointerUp);
38
84
  return () => {
39
85
  element.removeEventListener('pointerdown', handlePointerDown);
40
86
  element.removeEventListener('pointermove', handlePointerMove);
41
87
  element.removeEventListener('pointerup', handlePointerUp);
88
+ element.removeEventListener('pointercancel', handlePointerUp);
89
+ element.removeEventListener('lostpointercapture', handleLostPointerCapture);
90
+ ownerWindow.removeEventListener('pointermove', handlePointerMove);
91
+ ownerWindow.removeEventListener('pointerup', handlePointerUp);
92
+ ownerWindow.removeEventListener('pointercancel', handlePointerUp);
42
93
  };
43
94
  }, [ref, max, min, defaultValue]);
44
95
  return value;
@@ -0,0 +1,26 @@
1
+ 'use strict';
2
+
3
+ var vanillaExtractPrivate_esm = require('../../../../../@vanilla-extract_private@1.0.9/node_modules/@vanilla-extract/private/dist/vanilla-extract-private.esm.cjs');
4
+
5
+ function assignInlineVars(varsOrContract, tokens) {
6
+ var styles = {};
7
+ {
8
+ var _vars = varsOrContract;
9
+ for (var varName in _vars) {
10
+ var value = _vars[varName];
11
+ if (value == null) {
12
+ continue;
13
+ }
14
+ styles[vanillaExtractPrivate_esm.getVarName(varName)] = value;
15
+ }
16
+ }
17
+ Object.defineProperty(styles, 'toString', {
18
+ value: function value() {
19
+ return Object.keys(this).map(key => "".concat(key, ":").concat(this[key])).join(';');
20
+ },
21
+ writable: false
22
+ });
23
+ return styles;
24
+ }
25
+
26
+ exports.assignInlineVars = assignInlineVars;
@@ -0,0 +1,24 @@
1
+ import { getVarName } from '../../../../../@vanilla-extract_private@1.0.9/node_modules/@vanilla-extract/private/dist/vanilla-extract-private.esm.js';
2
+
3
+ function assignInlineVars(varsOrContract, tokens) {
4
+ var styles = {};
5
+ {
6
+ var _vars = varsOrContract;
7
+ for (var varName in _vars) {
8
+ var value = _vars[varName];
9
+ if (value == null) {
10
+ continue;
11
+ }
12
+ styles[getVarName(varName)] = value;
13
+ }
14
+ }
15
+ Object.defineProperty(styles, 'toString', {
16
+ value: function value() {
17
+ return Object.keys(this).map(key => "".concat(key, ":").concat(this[key])).join(';');
18
+ },
19
+ writable: false
20
+ });
21
+ return styles;
22
+ }
23
+
24
+ export { assignInlineVars };
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ function getVarName(variable) {
4
+ var matches = variable.match(/^var\((.*)\)$/);
5
+ if (matches) {
6
+ return matches[1];
7
+ }
8
+ return variable;
9
+ }
10
+
11
+ exports.getVarName = getVarName;
@@ -0,0 +1,9 @@
1
+ function getVarName(variable) {
2
+ var matches = variable.match(/^var\((.*)\)$/);
3
+ if (matches) {
4
+ return matches[1];
5
+ }
6
+ return variable;
7
+ }
8
+
9
+ export { getVarName };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kimdw-rtk/ui",
3
- "version": "0.1.14",
3
+ "version": "0.1.16",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "imports": {