@jsenv/navi 0.11.9 → 0.11.11

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.
@@ -10121,10 +10121,11 @@ const withPropsStyle = (
10121
10121
  visualStyles.borderBottom = borderBottom;
10122
10122
  }
10123
10123
  if (borderWidth !== undefined) {
10124
- visualStyles.borderWidth = borderWidth;
10124
+ visualStyles.borderWidth = sizeSpacingScale[borderWidth] || borderWidth;
10125
10125
  }
10126
10126
  if (borderRadius !== undefined) {
10127
- visualStyles.borderRadius = borderRadius;
10127
+ visualStyles.borderRadius =
10128
+ sizeSpacingScale[borderRadius] || borderRadius;
10128
10129
  }
10129
10130
  if (borderColor !== undefined) {
10130
10131
  visualStyles.borderColor = borderColor;
@@ -13857,7 +13858,8 @@ installImportMetaCss(import.meta);import.meta.css = /* css */`
13857
13858
  );
13858
13859
 
13859
13860
  --color: currentColor;
13860
- --color-readonly: color-mix(in srgb, currentColor 60%, transparent);
13861
+ --color-dimmed: color-mix(in srgb, currentColor 60%, transparent);
13862
+ --color-readonly: var(--color-dimmed);
13861
13863
  --color-disabled: var(--color-readonly);
13862
13864
 
13863
13865
  width: 100%;
@@ -13874,6 +13876,15 @@ installImportMetaCss(import.meta);import.meta.css = /* css */`
13874
13876
  outline-color: var(--border-color);
13875
13877
  outline-offset: calc(-1 * (var(--border-width)));
13876
13878
  }
13879
+ .navi_input::placeholder {
13880
+ color: var(--color-dimmed);
13881
+ }
13882
+ .navi_input:-internal-autofill-selected {
13883
+ /* Webkit is putting some nasty styles after automplete that look as follow */
13884
+ /* input:-internal-autofill-selected { color: FieldText !important; } */
13885
+ /* Fortunately we can override it as follow */
13886
+ -webkit-text-fill-color: var(--color) !important;
13887
+ }
13877
13888
  /* Focus */
13878
13889
  .navi_input[data-focus] {
13879
13890
  border-color: var(--outline-color);
@@ -13883,16 +13894,13 @@ installImportMetaCss(import.meta);import.meta.css = /* css */`
13883
13894
  }
13884
13895
  /* Readonly */
13885
13896
  .navi_input[data-readonly] {
13886
- color: var(--color-readonly);
13897
+ --color: var(--color-readonly);
13887
13898
  background-color: var(--background-color-readonly);
13888
13899
  outline-color: var(--border-color-readonly);
13889
13900
  }
13890
- .navi_input[data-readonly]::placeholder {
13891
- color: var(--color-readonly);
13892
- }
13893
13901
  /* Disabled */
13894
13902
  .navi_input[data-disabled] {
13895
- color: var(--color-disabled);
13903
+ --color: var(--color-disabled);
13896
13904
  background-color: var(--background-color-disabled);
13897
13905
  outline-color: var(--border-color-disabled);
13898
13906
  }
@@ -19304,8 +19312,8 @@ const Title = ({
19304
19312
  as = "h1",
19305
19313
  ...rest
19306
19314
  }) => {
19307
- if (rest.bold === undefined) {
19308
- rest.bold = true;
19315
+ if (rest.textBold === undefined) {
19316
+ rest.textBold = true;
19309
19317
  }
19310
19318
  const [remainingProps, innerStyle] = withPropsStyle(rest, {
19311
19319
  layout: true,
@@ -19337,12 +19345,14 @@ installImportMetaCss(import.meta);import.meta.css = /* css */`
19337
19345
  }
19338
19346
  `;
19339
19347
  const FlexRow = ({
19348
+ className,
19340
19349
  alignX,
19341
19350
  alignY,
19342
19351
  gap,
19343
19352
  children,
19344
19353
  ...rest
19345
19354
  }) => {
19355
+ const innerClassName = withPropsClassName("navi_flex_row", className);
19346
19356
  const [remainingProps, innerStyle] = withPropsStyle(rest, {
19347
19357
  base: {
19348
19358
  // Only set justifyContent if it's not the default "start"
@@ -19355,7 +19365,7 @@ const FlexRow = ({
19355
19365
  });
19356
19366
  return jsx("div", {
19357
19367
  ...remainingProps,
19358
- className: "navi_flex_row",
19368
+ className: innerClassName,
19359
19369
  style: innerStyle,
19360
19370
  children: jsx(FlexDirectionContext.Provider, {
19361
19371
  value: "row",
@@ -19364,12 +19374,14 @@ const FlexRow = ({
19364
19374
  });
19365
19375
  };
19366
19376
  const FlexColumn = ({
19377
+ className,
19367
19378
  alignX,
19368
19379
  alignY,
19369
19380
  gap,
19370
19381
  children,
19371
19382
  ...rest
19372
19383
  }) => {
19384
+ const innerClassName = withPropsClassName("navi_flex_column", className);
19373
19385
  const [remainingProps, innerStyle] = withPropsStyle(rest, {
19374
19386
  base: {
19375
19387
  // Only set alignItems if it's not the default "stretch"
@@ -19377,11 +19389,12 @@ const FlexColumn = ({
19377
19389
  // Only set justifyContent if it's not the default "start"
19378
19390
  justifyContent: alignY !== "start" ? alignY : undefined,
19379
19391
  gap: sizeSpacingScale[gap] || gap
19380
- }
19392
+ },
19393
+ layout: true
19381
19394
  });
19382
19395
  return jsx("div", {
19383
19396
  ...remainingProps,
19384
- className: "navi_flex_column",
19397
+ className: innerClassName,
19385
19398
  style: innerStyle,
19386
19399
  children: jsx(FlexDirectionContext.Provider, {
19387
19400
  value: "column",
@@ -19421,7 +19434,8 @@ const Spacing = ({
19421
19434
  ...rest
19422
19435
  }) => {
19423
19436
  const [remainingProps, innerStyle] = withPropsStyle(rest, {
19424
- spacing: true
19437
+ spacing: true,
19438
+ visual: true
19425
19439
  });
19426
19440
  return jsx("div", {
19427
19441
  ...remainingProps,