@konomi-app/ui 5.6.0 → 5.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.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
  }
@@ -2858,6 +2863,10 @@ var toastStyles = css2`
2858
2863
  line-height: 1.4;
2859
2864
  }
2860
2865
 
2866
+ .toast-message[data-titled] {
2867
+ font-weight: 600;
2868
+ }
2869
+
2861
2870
  .toast-description {
2862
2871
  font-size: 13px;
2863
2872
  color: #6b7280;
@@ -2878,8 +2887,6 @@ var toastStyles = css2`
2878
2887
  color: var(--toast-info);
2879
2888
  cursor: pointer;
2880
2889
  align-self: flex-start;
2881
- text-decoration: underline;
2882
- text-underline-offset: 2px;
2883
2890
  transition: color 150ms ease;
2884
2891
  }
2885
2892
 
@@ -3091,7 +3098,7 @@ var ToastContainer = class extends LitElement2 {
3091
3098
  <div class="toast-body">
3092
3099
  <span class="toast-icon icon-${item.type}"> ${this._renderIcon(item.type)} </span>
3093
3100
  <div class="toast-text">
3094
- <p class="toast-message">${item.message}</p>
3101
+ <p class="toast-message" ?data-titled=${!!item.description}>${item.message}</p>
3095
3102
  ${item.description ? html2`<p class="toast-description">${item.description}</p>` : nothing2}
3096
3103
  ${item.action ? html2`<button
3097
3104
  class="toast-action-btn"
@@ -3104,11 +3111,7 @@ var ToastContainer = class extends LitElement2 {
3104
3111
  </button>` : nothing2}
3105
3112
  </div>
3106
3113
  <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
- >
3114
+ ${item.duration > 0 && item.type !== "loading" ? html2`<svg class="toast-timer-ring" viewBox="0 0 24 24" aria-hidden="true">
3112
3115
  <circle class="toast-timer-track" cx="12" cy="12" r="10" />
3113
3116
  <circle
3114
3117
  class="toast-timer-fill"