@idds/styles 1.0.28 → 1.0.30

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@idds/styles",
3
- "version": "1.0.28",
3
+ "version": "1.0.30",
4
4
  "description": "Shared CSS styles and colors for INA Digital Design System",
5
5
  "type": "module",
6
6
  "main": "./src/index.css",
@@ -8,6 +8,8 @@
8
8
  display: flex;
9
9
  gap: var(--ina-spacing-2);
10
10
  padding: var(--ina-spacing-2);
11
+ max-width: 100vw;
12
+ box-sizing: border-box;
11
13
  }
12
14
 
13
15
  /* Position variants */
@@ -86,7 +88,8 @@
86
88
  display: flex;
87
89
  align-items: center;
88
90
  width: 100%;
89
- max-width: 24rem;
91
+ min-width: 358px;
92
+ max-width: 100%;
90
93
  transition: opacity 300ms ease-in-out;
91
94
  background-color: var(--ina-background-primary);
92
95
  border: 1px solid var(--ina-stroke-primary);
@@ -100,6 +103,7 @@
100
103
  display: flex;
101
104
  align-items: center;
102
105
  flex: 1;
106
+ min-width: 0; /* Allow content to shrink below content size */
103
107
  }
104
108
 
105
109
  .ina-toast__icon {
@@ -110,6 +114,10 @@
110
114
  .ina-toast__text-area {
111
115
  display: flex;
112
116
  flex-direction: column;
117
+ flex: 1;
118
+ min-width: 0; /* Allow text to shrink below content size */
119
+ overflow-wrap: break-word;
120
+ word-break: break-word;
113
121
  }
114
122
 
115
123
  .ina-toast__title {
@@ -151,6 +159,7 @@
151
159
  .ina-toast__close-icon {
152
160
  width: 16px;
153
161
  height: 16px;
162
+ color: var(--ina-white);
154
163
  }
155
164
 
156
165
  /* Style variants */
@@ -188,7 +197,10 @@
188
197
  /* Mobile (< 640px) */
189
198
  @media (max-width: 639px) {
190
199
  .ina-toast {
200
+ /* Jika viewport < 358px, gunakan max-width dari viewport untuk mencegah overflow */
191
201
  max-width: calc(100vw - var(--ina-spacing-8));
202
+ /* Min-width akan otomatis tidak berlaku jika max-width lebih kecil */
203
+ min-width: min(358px, calc(100vw - var(--ina-spacing-8)));
192
204
  padding: var(--ina-spacing-3);
193
205
  min-height: 40px;
194
206
  }