@konomi-app/ui 5.6.0 → 5.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -295,9 +295,9 @@ interface ToastItem {
295
295
  id: string;
296
296
  /** アイコン・色を決定するビジュアルタイプ */
297
297
  type: ToastType;
298
- /** 主メッセージ */
298
+ /** 主メッセージ (description 指定時はタイトルとして太字表示) */
299
299
  message: string;
300
- /** 補足説明 (省略可) */
300
+ /** 補足説明 (省略可)。指定時は message が太字タイトルになる */
301
301
  description: string;
302
302
  /** アクションボタン (省略可) */
303
303
  action: ToastAction | null;
package/dist/index.d.ts CHANGED
@@ -295,9 +295,9 @@ interface ToastItem {
295
295
  id: string;
296
296
  /** アイコン・色を決定するビジュアルタイプ */
297
297
  type: ToastType;
298
- /** 主メッセージ */
298
+ /** 主メッセージ (description 指定時はタイトルとして太字表示) */
299
299
  message: string;
300
- /** 補足説明 (省略可) */
300
+ /** 補足説明 (省略可)。指定時は message が太字タイトルになる */
301
301
  description: string;
302
302
  /** アクションボタン (省略可) */
303
303
  action: ToastAction | null;
package/dist/index.js CHANGED
@@ -2397,7 +2397,12 @@ var ToastController = class {
2397
2397
  const isLeavingLoading = item.type === "loading" && rest.type != null && rest.type !== "loading";
2398
2398
  if (newDuration !== void 0) {
2399
2399
  __privateMethod(this, _ToastController_instances, clearTimer_fn2).call(this, id);
2400
- __privateMethod(this, _ToastController_instances, updateItem_fn).call(this, id, { ...rest, duration: newDuration, remainingMs: newDuration, paused: false });
2400
+ __privateMethod(this, _ToastController_instances, updateItem_fn).call(this, id, {
2401
+ ...rest,
2402
+ duration: newDuration,
2403
+ remainingMs: newDuration,
2404
+ paused: false
2405
+ });
2401
2406
  if (newDuration > 0) {
2402
2407
  __privateMethod(this, _ToastController_instances, startTimer_fn).call(this, id, newDuration);
2403
2408
  }
@@ -2692,7 +2697,6 @@ var toastStyles = css2`
2692
2697
 
2693
2698
  .toast-card {
2694
2699
  background: var(--toast-card-bg);
2695
- border: 1px solid var(--toast-card-border);
2696
2700
  border-radius: var(--toast-card-radius);
2697
2701
  box-shadow: var(--toast-card-shadow);
2698
2702
  position: relative;
@@ -2858,6 +2862,10 @@ var toastStyles = css2`
2858
2862
  line-height: 1.4;
2859
2863
  }
2860
2864
 
2865
+ .toast-message[data-titled] {
2866
+ font-weight: 600;
2867
+ }
2868
+
2861
2869
  .toast-description {
2862
2870
  font-size: 13px;
2863
2871
  color: #6b7280;
@@ -2878,8 +2886,6 @@ var toastStyles = css2`
2878
2886
  color: var(--toast-info);
2879
2887
  cursor: pointer;
2880
2888
  align-self: flex-start;
2881
- text-decoration: underline;
2882
- text-underline-offset: 2px;
2883
2889
  transition: color 150ms ease;
2884
2890
  }
2885
2891
 
@@ -3091,7 +3097,7 @@ var ToastContainer = class extends LitElement2 {
3091
3097
  <div class="toast-body">
3092
3098
  <span class="toast-icon icon-${item.type}"> ${this._renderIcon(item.type)} </span>
3093
3099
  <div class="toast-text">
3094
- <p class="toast-message">${item.message}</p>
3100
+ <p class="toast-message" ?data-titled=${!!item.description}>${item.message}</p>
3095
3101
  ${item.description ? html2`<p class="toast-description">${item.description}</p>` : nothing2}
3096
3102
  ${item.action ? html2`<button
3097
3103
  class="toast-action-btn"
@@ -3104,11 +3110,7 @@ var ToastContainer = class extends LitElement2 {
3104
3110
  </button>` : nothing2}
3105
3111
  </div>
3106
3112
  <div class="toast-close-wrap">
3107
- ${item.duration > 0 && item.type !== "loading" ? html2`<svg
3108
- class="toast-timer-ring"
3109
- viewBox="0 0 24 24"
3110
- aria-hidden="true"
3111
- >
3113
+ ${item.duration > 0 && item.type !== "loading" ? html2`<svg class="toast-timer-ring" viewBox="0 0 24 24" aria-hidden="true">
3112
3114
  <circle class="toast-timer-track" cx="12" cy="12" r="10" />
3113
3115
  <circle
3114
3116
  class="toast-timer-fill"