@kimdw-rtk/ui 0.1.14 → 0.1.15

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.
@@ -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":"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;
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.15",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "imports": {