fictoan-react 2.0.0-beta.16 → 2.0.0-beta.17

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 (2) hide show
  1. package/dist/index.css +28 -2
  2. package/package.json +1 -1
package/dist/index.css CHANGED
@@ -2255,6 +2255,15 @@ form[data-form] [data-radio-group] [data-form-spaced]:not(:first-child),
2255
2255
  form[data-form] [data-radio-tab-group] [data-form-spaced]:not(:first-child) {
2256
2256
  margin-block-start : 0;
2257
2257
  }
2258
+
2259
+ /* Generic wrapper with inheritFormSpacing acts as a vertical flow container */
2260
+ /* for its own children, using the Form's spacing as the gap. Native form */
2261
+ /* components keep their own layouts. */
2262
+ [data-form-spaced]:not([data-form-item]):not([data-form-item-group]):not([data-checkbox]):not([data-switch]) {
2263
+ display : flex;
2264
+ flex-direction : column;
2265
+ gap : var(--form-spacing, 0);
2266
+ }
2258
2267
  /* For calculating padding, based on side element widths */
2259
2268
  :root {
2260
2269
  --side-element-left-width : 0px;
@@ -2300,8 +2309,6 @@ form[data-form] [data-radio-tab-group] [data-form-spaced]:not(:first-child) {
2300
2309
  font-size : calc(var(--paragraph-font-size) * 1.2);
2301
2310
  }
2302
2311
 
2303
- /* TODO: Size-specific icon sizing */
2304
-
2305
2312
  .size-tiny[data-form-item] {
2306
2313
  --input-icon-size : 12px;
2307
2314
  }
@@ -2310,6 +2317,10 @@ form[data-form] [data-radio-tab-group] [data-form-spaced]:not(:first-child) {
2310
2317
  --input-icon-size : 16px;
2311
2318
  }
2312
2319
 
2320
+ .size-large[data-form-item] {
2321
+ --input-icon-size : 32px;
2322
+ }
2323
+
2313
2324
  /* BASE INPUT FIELD ///////////////////////////////////////////////////////// */
2314
2325
  input[data-input-field] {
2315
2326
  position : relative;
@@ -2400,7 +2411,22 @@ input[data-input-field]:invalid:not(:focus):not(:placeholder-shown) {
2400
2411
  height : var(--input-icon-size);
2401
2412
  fill : none;
2402
2413
  stroke-width : 2px;
2414
+
2415
+ /* Scale any wrapper (e.g. a click handler div) and the SVG itself to */
2416
+ /* match the size-controlled wrapper. Lets library icons follow the */
2417
+ /* input's size prop instead of sitting at their intrinsic dimensions. */
2403
2418
  }
2419
+ .is-icon[data-input-side-element] > * {
2420
+ display : flex;
2421
+ align-items : center;
2422
+ justify-content : center;
2423
+ width : 100%;
2424
+ height : 100%;
2425
+ }
2426
+ .is-icon[data-input-side-element] svg {
2427
+ width : 100%;
2428
+ height : 100%;
2429
+ }
2404
2430
 
2405
2431
  /* Enable pointer events for interactive side elements */
2406
2432
  [data-input-side-element].is-interactive {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name" : "fictoan-react",
3
- "version" : "2.0.0-beta.16",
3
+ "version" : "2.0.0-beta.17",
4
4
  "description" : "A full-featured, designer-friendly, yet performant framework with plain-English props and focus on rapid iteration.",
5
5
  "repository" : {
6
6
  "type" : "git",