@hashrytech/quick-components-kit 0.20.0 → 0.20.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @hashrytech/quick-components-kit
2
2
 
3
+ ## 0.20.1
4
+
5
+ ### Patch Changes
6
+
7
+ - fix: text breaking in toast
8
+
3
9
  ## 0.20.0
4
10
 
5
11
  ### Minor Changes
@@ -42,16 +42,16 @@
42
42
  {#if open}
43
43
  <div transition:fly={{ delay: toastOptions.transitionDelay, duration: toastOptions.transitionDuration, y: toastOptions.transitionY, easing: toastOptions.transitionEasing }} class="flex flex-row rounded-lg mt-2 py-0.5 h-full min-h-[4rem] shadow-lg w-full max-w-md ring-1
44
44
  border-none pointer-events-auto text-neutral-700 {toastTypeClasses[toastType]}">
45
- <div class="flex flex-row gap-4 items-center w-full justify-center rounded-sm mx-4">
45
+ <div class="flex flex-row gap-4 items-center w-full justify-center rounded-sm px-4">
46
46
 
47
47
  <div class="flex flex-row items-center justify-center">
48
48
  <span class="{toastIcons[toastType]} {toastTypeIconColours[toastType]} size-8 outline-hidden"></span>
49
49
  </div>
50
50
 
51
- <div class="flex flex-col gap-1 px-2 w-full rounded-sm p-2">
52
- <p class="text-sm font-medium break-all xs:break-word">{@html message}</p>
51
+ <div class="flex flex-col gap-1 rounded-sm py-2 flex-1 min-w-0">
52
+ <p class="text-sm font-medium break-words overflow-wrap-anywhere hyphens-auto">{@html message}</p>
53
53
  {#if subMessage}
54
- <p class="text-xs font-light break-all xs:break-word">{@html subMessage}</p>
54
+ <p class="text-xs font-light break-words whitespace-normal hyphens-auto">{@html subMessage}</p>
55
55
  {/if}
56
56
  </div>
57
57
 
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/hashrytech/quick-components-kit.git"
7
7
  },
8
- "version": "0.20.0",
8
+ "version": "0.20.1",
9
9
  "license": "MIT",
10
10
  "author": "Hashry Tech",
11
11
  "files": [