@idds/styles 1.0.29 → 1.0.31

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.29",
3
+ "version": "1.0.31",
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,16 +114,26 @@
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;
121
+ margin: 0;
122
+ padding: 0;
113
123
  }
114
124
 
115
125
  .ina-toast__title {
116
126
  font-size: var(--ina-font-xs);
117
127
  font-weight: 500;
118
128
  line-height: 1.4;
129
+ margin: 0;
130
+ padding: 0;
119
131
  }
120
132
 
121
133
  .ina-toast__description {
122
134
  margin-top: var(--ina-spacing-1);
135
+ margin-bottom: 0;
136
+ padding: 0;
123
137
  font-size: var(--ina-font-2xs);
124
138
  line-height: 1.4;
125
139
  }
@@ -189,7 +203,10 @@
189
203
  /* Mobile (< 640px) */
190
204
  @media (max-width: 639px) {
191
205
  .ina-toast {
206
+ /* Jika viewport < 358px, gunakan max-width dari viewport untuk mencegah overflow */
192
207
  max-width: calc(100vw - var(--ina-spacing-8));
208
+ /* Min-width akan otomatis tidak berlaku jika max-width lebih kecil */
209
+ min-width: min(358px, calc(100vw - var(--ina-spacing-8)));
193
210
  padding: var(--ina-spacing-3);
194
211
  min-height: 40px;
195
212
  }