@tangible/ui 0.2.14 → 0.2.15

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.
@@ -178,6 +178,27 @@
178
178
  }
179
179
  }
180
180
 
181
+ // ---------------------------------------------------------------------------
182
+ // Control-height buttons in a slot — a picker trigger, a custom action
183
+ // ---------------------------------------------------------------------------
184
+ //
185
+ // Button and IconButton anchor to --tui-control-height-*, which IS the whole
186
+ // group's height — so a button dropped into a slot adds the group's own
187
+ // padding-block and borders on top of it and inflates the field. Measured: a
188
+ // `sm` IconButton in an `md` TextInput's suffix made a 42px field where every
189
+ // other `md` control in the row is 40px. Same fix the text addons above use:
190
+ // eat the padding instead of adding to it.
191
+ //
192
+ // Size the button one tier below the field (md field → sm button); a
193
+ // same-tier button is exactly as tall as the group's content box and will
194
+ // graze the border.
195
+ :where(.#{sys.$prefix}interface) .#{sys.$prefix}input-group__prefix > .#{sys.$prefix}button,
196
+ :where(.#{sys.$prefix}interface) .#{sys.$prefix}input-group__prefix > .#{sys.$prefix}icon-button,
197
+ :where(.#{sys.$prefix}interface) .#{sys.$prefix}input-group__suffix > .#{sys.$prefix}button,
198
+ :where(.#{sys.$prefix}interface) .#{sys.$prefix}input-group__suffix > .#{sys.$prefix}icon-button {
199
+ margin-block: calc(-1 * var(--_py));
200
+ }
201
+
181
202
  // ---------------------------------------------------------------------------
182
203
  // Text Addons — string content like "$", ".com", "https://"
183
204
  // ---------------------------------------------------------------------------
package/tui-manifest.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "0.2.14",
3
- "generated": "2026-08-24T18:15:06.072Z",
2
+ "version": "0.2.15",
3
+ "generated": "2026-08-25T23:43:50.070Z",
4
4
  "components": {
5
5
  "Accordion": {
6
6
  "props": {
@@ -1230,6 +1230,11 @@
1230
1230
  "type": "boolean",
1231
1231
  "required": false
1232
1232
  },
1233
+ "children": {
1234
+ "type": "ReactNode",
1235
+ "required": false,
1236
+ "description": "Trigger placement. Omit and the picker renders its own input-group button,\nexactly as before. Provide children to place the trigger yourself — inside\na text field's suffix slot, a toolbar — with `<DatePicker.Trigger>` marking\nthe spot, and `asChild` on that Trigger to supply your own element:\n\n```tsx\n<DatePicker value={date} onChange={commit}>\n <TextInput\n value={text}\n onChange={(e) => setText(e.target.value)}\n suffix={\n <DatePicker.Trigger asChild>\n <IconButton icon=\"lms/calendar\" label=\"Pick a date\" />\n </DatePicker.Trigger>\n }\n />\n</DatePicker>\n```\n\nChildren with no Trigger among them leaves the picker unopenable; a dev\nwarning fires for that case."
1237
+ },
1233
1238
  "className": {
1234
1239
  "type": "string",
1235
1240
  "required": false