@wavemaker/foundation-css 11.15.6-rc.647667 → 11.16.0-rc.647821

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.
Files changed (33) hide show
  1. package/cjs/foundation-css.cjs +27 -61
  2. package/cjs/src_tokens_mobile_components_chips_chips_json.foundation-css.cjs +1 -1
  3. package/cjs/src_tokens_mobile_components_dropdown-menu_dropdown-menu_json.foundation-css.cjs +1 -1
  4. package/cjs/src_tokens_mobile_components_form-controls_form-controls_json.foundation-css.cjs +1 -1
  5. package/cjs/src_tokens_mobile_components_icon_icon_json.foundation-css.cjs +1 -1
  6. package/cjs/src_tokens_mobile_components_label_label_json.foundation-css.cjs +1 -1
  7. package/cjs/src_tokens_mobile_components_switch_switch_json.foundation-css.cjs +1 -1
  8. package/cjs/src_tokens_mobile_components_tabs_tabs_json.foundation-css.cjs +1 -1
  9. package/foundation/foundation.css +4 -2
  10. package/foundation/foundation.min.css +1 -1
  11. package/npm-shrinkwrap.json +160 -227
  12. package/package-lock.json +160 -227
  13. package/package.json +2 -2
  14. package/src/styles/mobile/components/basic/icon.less +6 -4
  15. package/src/styles/mobile/components/basic/label.less +46 -4
  16. package/src/styles/mobile/components/container/tabs/tab-header.less +15 -3
  17. package/src/styles/mobile/components/data/form.less +14 -0
  18. package/src/styles/mobile/components/input/chips.less +37 -0
  19. package/src/styles/mobile/components/input/select.less +29 -1
  20. package/src/styles/mobile/components/input/switch.less +4 -4
  21. package/src/styles/mobile/components/navigation/menu.less +1 -0
  22. package/src/styles/mobile/components/tokens.light.css +18 -1
  23. package/src/styles/mobile/components/variables/chips.variant.less +5 -1
  24. package/src/styles/mobile/studio/basic/icon.less +0 -3
  25. package/src/styles/mobile/studio/container/tabs.less +5 -1
  26. package/src/styles/mobile/studio/input/form.less +20 -5
  27. package/src/tokens/mobile/components/chips/chips.json +72 -2
  28. package/src/tokens/mobile/components/dropdown-menu/dropdown-menu.json +8 -0
  29. package/src/tokens/mobile/components/form-controls/form-controls.json +28 -4
  30. package/src/tokens/mobile/components/icon/icon.json +3 -3
  31. package/src/tokens/mobile/components/label/label.json +8 -0
  32. package/src/tokens/mobile/components/switch/switch.json +24 -0
  33. package/src/tokens/mobile/components/tabs/tabs.json +27 -3
@@ -55,11 +55,14 @@
55
55
  border-width: var(--wm-form-controls-border-width);
56
56
  border-color: var(--wm-form-controls-border-color);
57
57
  border-radius: var(--wm-form-controls-border-radius);
58
- background-color: var(--wm-form-controls-background);
58
+ background: var(--wm-form-controls-background);
59
+ text-align: var(--wm-form-controls-text-align);
59
60
  color: var(--wm-form-controls-color);
60
61
  font-size: var(--wm-form-controls-font-size);
61
62
  font-family: var(--wm-form-controls-font-family);
62
63
  font-weight: var(--wm-form-controls-font-weight);
64
+ line-height: var(--wm-form-controls-font-line-height);
65
+ letter-spacing: var(--wm-form-controls-font-letter-spacing);
63
66
  }
64
67
 
65
68
  .wm-app .app-form > .panel-body{
@@ -101,12 +104,15 @@
101
104
  border-width: var(--wm-form-controls-border-width);
102
105
  border-color: var(--wm-form-controls-border-color);
103
106
  border-radius: var(--wm-form-controls-border-radius);
104
- background-color: var(--wm-form-controls-background);
107
+ background: var(--wm-form-controls-background);
108
+ text-align: var(--wm-form-controls-text-align);
105
109
  color: var(--wm-form-controls-color);
106
110
  opacity: var(--wm-form-controls-opacity);
107
111
  font-size: var(--wm-form-controls-font-size);
108
112
  font-family: var(--wm-form-controls-font-family);
109
113
  font-weight: var(--wm-form-controls-font-weight);
114
+ line-height: var(--wm-form-controls-font-line-height);
115
+ letter-spacing: var(--wm-form-controls-font-letter-spacing);
110
116
  width: var(--wm-form-controls-min-width);
111
117
  }
112
118
 
@@ -124,12 +130,15 @@
124
130
  border-width: var(--wm-form-controls-border-width);
125
131
  border-color: var(--wm-form-controls-border-color);
126
132
  border-radius: var(--wm-form-controls-border-radius);
127
- background-color: var(--wm-form-controls-background);
133
+ background: var(--wm-form-controls-background);
134
+ text-align: var(--wm-form-controls-text-align);
128
135
  color: var(--wm-form-controls-color);
129
136
  opacity: var(--wm-form-controls-opacity);
130
137
  font-size: var(--wm-form-controls-font-size);
131
138
  font-family: var(--wm-form-controls-font-family);
132
139
  font-weight: var(--wm-form-controls-font-weight);
140
+ line-height: var(--wm-form-controls-font-line-height);
141
+ letter-spacing: var(--wm-form-controls-font-letter-spacing);
133
142
  width: var(--wm-form-controls-min-width);
134
143
  }
135
144
 
@@ -169,12 +178,15 @@
169
178
  border-width: var(--wm-form-controls-border-width);
170
179
  border-color: var(--wm-form-controls-border-color);
171
180
  border-radius: var(--wm-form-controls-border-radius);
172
- background-color: var(--wm-form-controls-background);
181
+ background: var(--wm-form-controls-background);
182
+ text-align: var(--wm-form-controls-text-align);
173
183
  color: var(--wm-form-controls-color);
174
184
  opacity: var(--wm-form-controls-opacity);
175
185
  font-size: var(--wm-form-controls-font-size);
176
186
  font-family: var(--wm-form-controls-font-family);
177
187
  font-weight: var(--wm-form-controls-font-weight);
188
+ line-height: var(--wm-form-controls-font-line-height);
189
+ letter-spacing: var(--wm-form-controls-font-letter-spacing);
178
190
  width: var(--wm-form-controls-min-width);
179
191
  }
180
192
 
@@ -185,12 +197,15 @@
185
197
  border-width: var(--wm-form-controls-border-width);
186
198
  border-color: var(--wm-form-controls-border-color);
187
199
  border-radius: var(--wm-form-controls-border-radius);
188
- background-color: var(--wm-form-controls-background);
200
+ background: var(--wm-form-controls-background);
201
+ text-align: var(--wm-form-controls-text-align);
189
202
  color: var(--wm-form-controls-color);
190
203
  opacity: var(--wm-form-controls-opacity);
191
204
  font-size: var(--wm-form-controls-font-size);
192
205
  font-family: var(--wm-form-controls-font-family);
193
206
  font-weight: var(--wm-form-controls-font-weight);
207
+ line-height: var(--wm-form-controls-font-line-height);
208
+ letter-spacing: var(--wm-form-controls-font-letter-spacing);
194
209
  width: var(--wm-form-controls-min-width);
195
210
  }
196
211
 
@@ -13,7 +13,7 @@
13
13
  },
14
14
  "active": {
15
15
  "selector": {
16
- "mobile": "-active-item, .app-chips-active-item-text"
16
+ "mobile": "-active-item, .app-chips-active-item-text, .app-chips-active-left-badge, .app-chips-active-right-badge, .app-chips-active-left-icon, .app-chips-active-right-icon"
17
17
  }
18
18
  }
19
19
  }
@@ -114,7 +114,7 @@
114
114
  },
115
115
  "style": {
116
116
  "value": "{border.style.base.value}",
117
- "type": "style",
117
+ "type": "radius",
118
118
  "attributes": {
119
119
  "subtype": "border-style",
120
120
  "description": "Controls the border style of the chips container. Acceptable values: solid (continuous line), dashed (dotted line), dotted (small dots), none (no border).<br>CSS variable: --wm-chips-list-border-style"
@@ -161,6 +161,16 @@
161
161
  }
162
162
  },
163
163
  "item": {
164
+ "text": {
165
+ "padding": {
166
+ "value": "0px",
167
+ "type": "space",
168
+ "attributes": {
169
+ "subtype": "space",
170
+ "description": "Controls the padding of chip item label text (.app-chips-item-text).<br>CSS variable: --wm-chips-item-text-padding"
171
+ }
172
+ }
173
+ },
164
174
  "height": {
165
175
  "value": "32px",
166
176
  "type": "space",
@@ -298,6 +308,66 @@
298
308
  }
299
309
  }
300
310
  },
311
+ "left-icon": {
312
+ "padding": {
313
+ "value": "{space.0.value} 2px {space.0.value} {space.0.value}",
314
+ "type": "space",
315
+ "attributes": {
316
+ "subtype": "space",
317
+ "description": "Controls the padding of the left icon on chip items (.app-chips-left-icon, .app-chips-active-left-icon).<br>CSS variable: --wm-chips-left-icon-padding"
318
+ }
319
+ },
320
+ "color": {
321
+ "value": "{color.on-surface.@.value}",
322
+ "type": "color",
323
+ "attributes": {
324
+ "subtype": "color",
325
+ "description": "Sets the color of the left icon on chip items (.app-chips-left-icon, .app-chips-active-left-icon).<br>CSS variable: --wm-chips-left-icon-color"
326
+ }
327
+ }
328
+ },
329
+ "right-icon": {
330
+ "color": {
331
+ "value": "{color.on-surface.@.value}",
332
+ "type": "color",
333
+ "attributes": {
334
+ "subtype": "color",
335
+ "description": "Sets the color of the right icon on chip items (.app-chips-right-icon, .app-chips-active-right-icon).<br>CSS variable: --wm-chips-right-icon-color"
336
+ }
337
+ }
338
+ },
339
+ "left-badge": {
340
+ "text": {
341
+ "color": {
342
+ "value": "{color.on-surface.@.value}",
343
+ "type": "color",
344
+ "attributes": {
345
+ "subtype": "color",
346
+ "description": "Sets the text color of the left badge on chip items (.app-chips-left-badge, .app-chips-active-left-badge).<br>CSS variable: --wm-chips-left-badge-text-color"
347
+ }
348
+ }
349
+ }
350
+ },
351
+ "right-badge": {
352
+ "text": {
353
+ "color": {
354
+ "value": "{color.on-surface.@.value}",
355
+ "type": "color",
356
+ "attributes": {
357
+ "subtype": "color",
358
+ "description": "Sets the text color of the right badge on chip items (.app-chips-right-badge, .app-chips-active-right-badge).<br>CSS variable: --wm-chips-right-badge-text-color"
359
+ }
360
+ },
361
+ "margin-top": {
362
+ "value": "0px",
363
+ "type": "space",
364
+ "attributes": {
365
+ "subtype": "space",
366
+ "description": "Controls the top margin of the right badge text on chip items (.app-chips-right-badge, .app-chips-active-right-badge).<br>CSS variable: --wm-chips-right-badge-text-margin-top"
367
+ }
368
+ }
369
+ }
370
+ },
301
371
  "states": {
302
372
  "disabled": {
303
373
  "opacity": {
@@ -10,6 +10,14 @@
10
10
  "description": "Sets the background color of dropdown menus (lists of options that appear when users click on a button or link). This is the main background color that appears behind the dropdown menu items.<br>CSS variable: --wm-dropdown-menu-background"
11
11
  }
12
12
  },
13
+ "box-shadow": {
14
+ "value": "{elevation.shadow.2.value}",
15
+ "type": "radius",
16
+ "attributes": {
17
+ "subtype": "elevation",
18
+ "description": "Controls the drop shadow on the floating dropdown menu panel (Material 3 menu surface elevation; uses global elevation shadow level 2).<br>CSS variable: --wm-dropdown-menu-box-shadow"
19
+ }
20
+ },
13
21
  "padding": {
14
22
  "type": "space",
15
23
  "value": "{space.2.value} {space.0.value}",
@@ -87,6 +87,22 @@
87
87
  "subtype": "font-family",
88
88
  "description": "Sets the typeface (font style) for form control text (the text that appear next to or above input fields). This determines whether the text appears in Roboto, Times New Roman, or other font styles.<br>CSS variable: --wm-form-controls-font-family"
89
89
  }
90
+ },
91
+ "line-height": {
92
+ "value": "{body.large.line-height.value}",
93
+ "type": "font",
94
+ "attributes": {
95
+ "subtype": "line-height",
96
+ "description": "Controls the vertical spacing between lines when form control text wraps to multiple lines. This affects the height of each line of text inside input fields and text areas. Acceptable units: px.<br>CSS variable: --wm-form-controls-font-line-height"
97
+ }
98
+ },
99
+ "letter-spacing": {
100
+ "value": "{body.large.letter-spacing.value}",
101
+ "type": "font",
102
+ "attributes": {
103
+ "subtype": "letter-spacing",
104
+ "description": "Controls the horizontal spacing between individual characters in form control text. Positive values spread characters apart for increased readability, negative values bring them closer. Acceptable units: px, em.<br>CSS variable: --wm-form-controls-font-letter-spacing"
105
+ }
90
106
  }
91
107
  },
92
108
  "padding": {
@@ -116,7 +132,7 @@
116
132
  },
117
133
  "style": {
118
134
  "value": "{border.style.base.value}",
119
- "type": "style",
135
+ "type": "radius",
120
136
  "attributes": {
121
137
  "subtype": "border-style",
122
138
  "description": "Sets the visual style of borders around form controls (input fields, text areas, select boxes, and other form elements). 'solid' creates a continuous line, 'dashed' creates a broken line, 'dotted' creates a dotted line, 'none' removes borders completely.<br>CSS variable: --wm-form-controls-border-style"
@@ -153,7 +169,15 @@
153
169
  "value": "{color.black.@.value}",
154
170
  "type": "color"
155
171
  },
156
- "label": {
172
+ "text-align": {
173
+ "value": "left",
174
+ "type": "radius",
175
+ "attributes": {
176
+ "subtype": "text-align",
177
+ "description": "Controls the horizontal alignment of text inside form controls (input fields where users enter data). 'left' aligns the text to the left, 'center' centers it, and 'right' aligns it to the right.<br>CSS variable: --wm-form-controls-text-align"
178
+ }
179
+ },
180
+ "label": {
157
181
  "color": {
158
182
  "value": "{color.on-surface.@.value}",
159
183
  "type": "color",
@@ -449,7 +473,7 @@
449
473
  },
450
474
  "style": {
451
475
  "value": "{border.style.base.value}",
452
- "type": "style"
476
+ "type": "radius"
453
477
  },
454
478
  "width": {
455
479
  "value": "0 0 {border.width.1.value} 0",
@@ -535,7 +559,7 @@
535
559
  },
536
560
  "style": {
537
561
  "value": "{border.style.base.value}",
538
- "type": "style"
562
+ "type": "radius"
539
563
  },
540
564
  "radius": {
541
565
  "value": "{radius.sm.value} {radius.sm.value} 0 0",
@@ -80,7 +80,7 @@
80
80
  "type": "space",
81
81
  "attributes": {
82
82
  "subtype": "icon-size",
83
- "description": "Controls the minimum width of icon symbols to ensure they're always wide enough to be visible and clickable, even when they contain small symbols.<br>CSS variable: --wm-icon-min-width"
83
+ "description": "Controls the minimum width of the icon when it's rendered as an image (via an icon URL), ensuring it's always wide enough to be visible and clickable. This property applies only to image-based icons and has no effect on icons.<br>CSS variable: --wm-icon-min-width"
84
84
  }
85
85
  },
86
86
  "width": {
@@ -88,7 +88,7 @@
88
88
  "type": "space",
89
89
  "attributes": {
90
90
  "subtype": "icon-size",
91
- "description": "Controls how wide icon symbols appear (like arrows, hearts, settings, etc.). This determines the horizontal space each icon takes up.<br>CSS variable: --wm-icon-width"
91
+ "description": "Controls how wide the icon appears when it's rendered as an image (via an icon URL). This determines the horizontal space the icon image takes up. This property applies only to image-based icons and has no effect on icons.<br>CSS variable: --wm-icon-width"
92
92
  }
93
93
  },
94
94
  "height": {
@@ -96,7 +96,7 @@
96
96
  "type": "space",
97
97
  "attributes": {
98
98
  "subtype": "icon-size",
99
- "description": "Controls how tall icon symbols appear (like arrows, hearts, settings, etc.). This determines the vertical space each icon takes up.<br>CSS variable: --wm-icon-height"
99
+ "description": "Controls how tall the icon appears when it's rendered as an image (via an icon URL). This determines the vertical space the icon image takes up. This property applies only to image-based icons and has no effect on icons.<br>CSS variable: --wm-icon-height"
100
100
  }
101
101
  },
102
102
  "gap": {
@@ -177,6 +177,14 @@
177
177
  "description": "Controls the horizontal spacing between individual letters in label text. Positive values spread letters apart, negative values bring them closer together.<br>CSS variable: --wm-label-letter-spacing"
178
178
  }
179
179
  },
180
+ "text-align": {
181
+ "value": "left",
182
+ "type": "radius",
183
+ "attributes": {
184
+ "subtype": "text-align",
185
+ "description": "Controls the horizontal alignment of label text. 'left' aligns the text to the left, 'center' centers it, and 'right' aligns it to the right.<br>CSS variable: --wm-label-text-align"
186
+ }
187
+ },
180
188
  "asterisk": {
181
189
  "color": {
182
190
  "value": "{color.error.@.value}",
@@ -128,6 +128,30 @@
128
128
  }
129
129
  }
130
130
  },
131
+ "first-button": {
132
+ "border": {
133
+ "radius": {
134
+ "value": "1px 0px 0px 1px",
135
+ "type": "radius",
136
+ "attributes": {
137
+ "subtype": "radius",
138
+ "description": "Controls the corner rounding of the first switch button (top-left, top-right, bottom-right, bottom-left). The right corners are squared so it joins seamlessly with the next button. Acceptable units: px.<br>CSS variable: --wm-switch-first-button-border-radius"
139
+ }
140
+ }
141
+ }
142
+ },
143
+ "last-button": {
144
+ "border": {
145
+ "radius": {
146
+ "value": "0px 1px 1px 0px",
147
+ "type": "radius",
148
+ "attributes": {
149
+ "subtype": "radius",
150
+ "description": "Controls the corner rounding of the last switch button (top-left, top-right, bottom-right, bottom-left). The left corners are squared so it joins seamlessly with the previous button. Acceptable units: px.<br>CSS variable: --wm-switch-last-button-border-radius"
151
+ }
152
+ }
153
+ }
154
+ },
131
155
  "states": {
132
156
  "selected": {
133
157
  "button": {
@@ -67,6 +67,14 @@
67
67
  "description": "Sets the background color of tabs headings (the header section that contains tab labels). This determines what color the background of the heading appears in.<br>CSS variable: --wm-tabs-heading-background"
68
68
  }
69
69
  },
70
+ "gap": {
71
+ "value": "{space.0.value}",
72
+ "type": "space",
73
+ "attributes": {
74
+ "subtype": "space",
75
+ "description": "Controls the gap of tab header --wm-tabs-heading-gap"
76
+ }
77
+ },
70
78
  "border": {
71
79
  "radius": {
72
80
  "value": "{radius.sm.value}",
@@ -146,6 +154,22 @@
146
154
  "description": "Controls the internal spacing inside tab item headings (vertical horizontal / top right bottom left). This creates breathing room around the tab text and icons.<br>CSS variable: --wm-tabs-item-heading-padding"
147
155
  }
148
156
  },
157
+ "min-height": {
158
+ "value": "48px",
159
+ "type": "space",
160
+ "attributes": {
161
+ "subtype": "space",
162
+ "description": "Controls the minimum height of tab header item This ensures form fields are always tall enough to be easily clickable and readable. Acceptable units: px, em, rem.<br>CSS variable: --wm-tabs-item--min-height"
163
+ }
164
+ },
165
+ "gap": {
166
+ "value": "{space.0.value}",
167
+ "type": "space",
168
+ "attributes": {
169
+ "subtype": "space",
170
+ "description": "Controls the gap of tab header --wm-tabs-item-gap"
171
+ }
172
+ },
149
173
  "font": {
150
174
  "size": {
151
175
  "value": "{h6.font-size.value}",
@@ -217,12 +241,12 @@
217
241
  }
218
242
  },
219
243
  "indicator": {
220
- "margin": {
221
- "value": "{space.0.value}",
244
+ "margin-top": {
245
+ "value": "-2px",
222
246
  "type": "space",
223
247
  "attributes": {
224
248
  "subtype": "space",
225
- "description": "Controls the margin of tab item heading indicators (vertical horizontal / top right bottom left) in Active state only. Acceptable units: px, em, rem.<br>CSS variable: --wm-tabs-item-heading-indicator-margin"
249
+ "description": "Controls the margin of tab item heading indicators (vertical horizontal / top right bottom left) in Active state only. Acceptable units: px, em, rem.<br>CSS variable: --wm-tabs-item-heading-indicator-margin-top"
226
250
  }
227
251
  },
228
252
  "height": {