@14ch/svelte-ui 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -346,6 +346,12 @@ MIT License - see the [LICENSE](LICENSE) file for details.
346
346
 
347
347
  ## Changelog
348
348
 
349
+ ### v0.0.5
350
+
351
+ - Improved TabItem hover behavior: replaced background color with indicator bar opacity change
352
+ - TabItem now shows selected text color and indicator bar on hover for better visual feedback
353
+ - Breaking change: Replaced `variant` prop with `inline` prop in Combobox, Datepicker, and Select components
354
+
349
355
  ### v0.0.3
350
356
 
351
357
  - Improved text vertical alignment in Button, Fab, TabItem, Checkbox, and Radio components using `text-box-trim`
@@ -24,11 +24,11 @@
24
24
 
25
25
  // スタイル/レイアウト
26
26
  customStyle = '',
27
- variant = 'default',
27
+ inline = false,
28
28
  focusStyle = 'outline',
29
29
  placeholder = '選択してください',
30
30
  fullWidth = false,
31
- minWidth = variant === 'inline' ? null : 120,
31
+ minWidth = inline ? null : 120,
32
32
  maxWidth = null,
33
33
  rounded = false,
34
34
 
@@ -92,7 +92,7 @@
92
92
 
93
93
  // スタイル/レイアウト
94
94
  customStyle?: string;
95
- variant?: 'default' | 'inline';
95
+ inline?: boolean;
96
96
  focusStyle?: 'background' | 'outline' | 'none';
97
97
  placeholder?: string;
98
98
  fullWidth?: boolean;
@@ -412,7 +412,7 @@
412
412
  {name}
413
413
  id={inputId}
414
414
  {customStyle}
415
- {variant}
415
+ {inline}
416
416
  {focusStyle}
417
417
  {placeholder}
418
418
  {fullWidth}
@@ -420,7 +420,7 @@
420
420
  {readonly}
421
421
  {required}
422
422
  {clearable}
423
- rightIcon={variant !== 'inline' ? 'arrow_drop_down' : undefined}
423
+ rightIcon={inline ? undefined : 'arrow_drop_down'}
424
424
  {tabindex}
425
425
  {maxlength}
426
426
  {rounded}
@@ -8,7 +8,7 @@ type $$ComponentProps = {
8
8
  tabindex?: number | null;
9
9
  maxlength?: number | null;
10
10
  customStyle?: string;
11
- variant?: 'default' | 'inline';
11
+ inline?: boolean;
12
12
  focusStyle?: 'background' | 'outline' | 'none';
13
13
  placeholder?: string;
14
14
  fullWidth?: boolean;
@@ -36,7 +36,7 @@
36
36
  inputAttributes,
37
37
 
38
38
  // スタイル/レイアウト
39
- variant = 'default',
39
+ inline = false,
40
40
  focusStyle = 'outline',
41
41
  fullWidth = false,
42
42
  rounded = false,
@@ -109,7 +109,7 @@
109
109
  inputAttributes?: HTMLInputAttributes | undefined;
110
110
 
111
111
  // スタイル/レイアウト
112
- variant?: 'default' | 'inline';
112
+ inline?: boolean;
113
113
  focusStyle?: 'background' | 'outline' | 'none';
114
114
  fullWidth?: boolean;
115
115
  rounded?: boolean;
@@ -502,7 +502,7 @@
502
502
  <Input
503
503
  bind:this={inputRef}
504
504
  value={displayValue}
505
- {variant}
505
+ {inline}
506
506
  {focusStyle}
507
507
  {fullWidth}
508
508
  {rounded}
@@ -17,7 +17,7 @@ type $$ComponentProps = {
17
17
  rangeSeparator?: string;
18
18
  id?: string;
19
19
  inputAttributes?: HTMLInputAttributes | undefined;
20
- variant?: 'default' | 'inline';
20
+ inline?: boolean;
21
21
  focusStyle?: 'background' | 'outline' | 'none';
22
22
  fullWidth?: boolean;
23
23
  rounded?: boolean;
@@ -22,7 +22,7 @@
22
22
 
23
23
  // スタイル/レイアウト
24
24
  size = null,
25
- variant = 'default',
25
+ inline = false,
26
26
  focusStyle = 'outline',
27
27
  fullWidth = false,
28
28
  rounded = false,
@@ -84,7 +84,7 @@
84
84
 
85
85
  // スタイル/レイアウト
86
86
  size?: number | null;
87
- variant?: 'default' | 'inline';
87
+ inline?: boolean;
88
88
  focusStyle?: 'background' | 'outline' | 'none';
89
89
  fullWidth?: boolean;
90
90
  rounded?: boolean;
@@ -275,7 +275,7 @@
275
275
  <div
276
276
  class="select
277
277
  select--focus-{focusStyle}"
278
- class:select--inline={variant === 'inline'}
278
+ class:select--inline={inline}
279
279
  class:select--full-width={fullWidth}
280
280
  class:select--disabled={disabled}
281
281
  class:select--focused={isFocused}
@@ -9,7 +9,7 @@ type $$ComponentProps = {
9
9
  placeholder?: string;
10
10
  selectAttributes?: HTMLSelectAttributes | undefined;
11
11
  size?: number | null;
12
- variant?: 'default' | 'inline';
12
+ inline?: boolean;
13
13
  focusStyle?: 'background' | 'outline' | 'none';
14
14
  fullWidth?: boolean;
15
15
  rounded?: boolean;
@@ -94,7 +94,10 @@
94
94
 
95
95
  @media (hover: hover) {
96
96
  .tab-item:hover:not(.tab-item--selected) {
97
- background-color: var(--svelte-ui-hover-overlay);
97
+ color: var(--svelte-ui-tab-item-selected-text-color);
98
+ }
99
+ .tab-item:hover:not(.tab-item--selected)::before {
100
+ opacity: 1;
98
101
  }
99
102
  }
100
103
  /* キーボードフォーカス時のみ枠線を表示 */
@@ -110,7 +113,10 @@
110
113
  outline-offset: var(--svelte-ui-focus-outline-offset-inner);
111
114
  }
112
115
  .tab-item:focus:not(.tab-item--selected) {
113
- background-color: var(--svelte-ui-hover-overlay);
116
+ color: var(--svelte-ui-tab-item-selected-text-color);
117
+ }
118
+ .tab-item:focus:not(.tab-item--selected)::before {
119
+ opacity: 1;
114
120
  }
115
121
  }
116
122
  /* 選択状態のインジケーター */
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@14ch/svelte-ui",
3
3
  "description": "Modern Svelte UI components library with TypeScript support",
4
4
  "private": false,
5
- "version": "0.0.4",
5
+ "version": "0.0.5",
6
6
  "type": "module",
7
7
  "keywords": [
8
8
  "svelte",