@jsenv/navi 0.27.33 → 0.27.35

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.
@@ -23230,6 +23230,7 @@ const css$L = /* css */`
23230
23230
  display: flex;
23231
23231
  width: 100%;
23232
23232
  flex-grow: 1;
23233
+ justify-content: inherit;
23233
23234
  gap: 0.3em;
23234
23235
 
23235
23236
  .navi_text_overflow_text {
@@ -25639,7 +25640,9 @@ const useUIStateController = (
25639
25640
  if (isRadio && newUIState && uiStateController.name && !controlProxyFor) {
25640
25641
  const siblings = radioControllersByName.get(uiStateController.name);
25641
25642
  if (siblings) {
25642
- const siblingUncheckEvent = new CustomEvent("radio_sibling_uncheck");
25643
+ const siblingUncheckEvent = new CustomEvent("radio_sibling_uncheck", {
25644
+ detail: {},
25645
+ });
25643
25646
  chainEvent(siblingUncheckEvent, e);
25644
25647
  for (const siblingController of siblings) {
25645
25648
  if (siblingController === uiStateController) {
@@ -26024,7 +26027,10 @@ const useUIGroupStateController = (
26024
26027
  );
26025
26028
  return;
26026
26029
  }
26027
- const propagateDownEvent = new CustomEvent("propagate_down_set_ui_state");
26030
+ const propagateDownEvent = new CustomEvent(
26031
+ "propagate_down_set_ui_state",
26032
+ { detail: {} },
26033
+ );
26028
26034
  chainEvent(propagateDownEvent, e);
26029
26035
  for (const childUIStateController of childUIStateControllerArray) {
26030
26036
  if (!isMonitoringChild(childUIStateController)) {
@@ -26147,6 +26153,7 @@ const useUIGroupStateController = (
26147
26153
  resetUIState: (e) => {
26148
26154
  const propagateDownResetEvent = new CustomEvent(
26149
26155
  "propagate_down_reset_ui_state",
26156
+ { detail: {} },
26150
26157
  );
26151
26158
  chainEvent(propagateDownResetEvent, e);
26152
26159
  for (const childUIStateController of childUIStateControllerArray) {
@@ -26163,6 +26170,7 @@ const useUIGroupStateController = (
26163
26170
  clearUIState: (e) => {
26164
26171
  const propagateDownClearEvent = new CustomEvent(
26165
26172
  "propagate_down_clear_ui_state",
26173
+ { detail: {} },
26166
26174
  );
26167
26175
  chainEvent(propagateDownClearEvent, e);
26168
26176
  for (const childUIStateController of childUIStateControllerArray) {
@@ -26240,7 +26248,10 @@ const useUIFacadeStateController = (uiStateController) => {
26240
26248
  return;
26241
26249
  }
26242
26250
  updatingRef.current = true;
26243
- const propagateDownEvent = new CustomEvent("propagate_down_set_ui_state");
26251
+ const propagateDownEvent = new CustomEvent(
26252
+ "propagate_down_set_ui_state",
26253
+ { detail: {} },
26254
+ );
26244
26255
  chainEvent(propagateDownEvent, e);
26245
26256
  child.setUIState(newUIState, propagateDownEvent);
26246
26257
  updatingRef.current = false;
@@ -27376,6 +27387,10 @@ installImportMetaCssBuild(import.meta);const css$I = /* css */`
27376
27387
  --button-background-color-readonly
27377
27388
  );
27378
27389
  --button-color-disabled: var(--button-color-readonly);
27390
+
27391
+ /* Here to be easy to override */
27392
+ font-size: var(--button-font-size);
27393
+ font-family: var(--button-font-family);
27379
27394
  }
27380
27395
  }
27381
27396
 
@@ -27403,8 +27418,6 @@ installImportMetaCssBuild(import.meta);const css$I = /* css */`
27403
27418
  cursor: var(--x-button-cursor);
27404
27419
  -webkit-tap-highlight-color: transparent;
27405
27420
  position: relative;
27406
- font-size: var(--button-font-size);
27407
- font-family: var(--button-font-family);
27408
27421
  touch-action: manipulation;
27409
27422
  user-select: none;
27410
27423
  -webkit-tap-highlight-color: var(--navi-control-tap-highlight-color);
@@ -27540,6 +27553,7 @@ installImportMetaCssBuild(import.meta);const css$I = /* css */`
27540
27553
 
27541
27554
  /* discrete: background on hover */
27542
27555
  &[data-variant="discrete"] {
27556
+ --button-border-width: 0;
27543
27557
  --x-button-background-color: transparent;
27544
27558
  --x-button-border-color: transparent;
27545
27559
 
@@ -31724,11 +31738,12 @@ const InputSearchUI = ({
31724
31738
  }
31725
31739
  return jsx(InputRightSlot, {
31726
31740
  children: jsx(Button, {
31727
- tabIndex: "-1",
31728
- "navi-focus-delegate": id,
31729
- variant: "icon",
31730
31741
  command: "--navi-clear",
31731
31742
  commandFor: id,
31743
+ tabIndex: "-1",
31744
+ "navi-focus-delegate": id,
31745
+ icon: true,
31746
+ variant: "discrete",
31732
31747
  children: jsx(Icon, {
31733
31748
  children: jsx(CloseSvg, {})
31734
31749
  })
@@ -32242,13 +32257,17 @@ const css$w = /* css */`
32242
32257
  }
32243
32258
 
32244
32259
  .navi_input_slot {
32245
- margin-inline: 0.2em;
32260
+ --slot-spacing: calc(2px + 0.1em);
32261
+
32262
+ margin-right: var(--slot-spacing);
32263
+ margin-left: var(--slot-spacing);
32246
32264
  color: #5e4e4e;
32247
32265
 
32248
32266
  &[data-left] {
32249
- margin-right: var(--x-padding-left);
32250
32267
  order: -1;
32251
32268
  }
32269
+ &[data-right] {
32270
+ }
32252
32271
  }
32253
32272
 
32254
32273
  /* Hover */
@@ -38071,7 +38090,6 @@ installImportMetaCssBuild(import.meta);const css$i = /* css */`
38071
38090
  padding-left: 0;
38072
38091
  flex-direction: row;
38073
38092
  align-items: center;
38074
- gap: var(--navi-xs);
38075
38093
  color: var(--x-picker-color);
38076
38094
  font-size: var(--picker-font-size);
38077
38095
  font-family: var(--picker-font-family);
@@ -38096,7 +38114,6 @@ installImportMetaCssBuild(import.meta);const css$i = /* css */`
38096
38114
  display: inline-block;
38097
38115
  min-width: 0;
38098
38116
  max-width: 100%;
38099
- margin-inline: 0.2em;
38100
38117
  margin-top: calc(-1 * var(--x-picker-padding-top));
38101
38118
  margin-bottom: calc(-1 * var(--x-picker-padding-bottom));
38102
38119
  padding-top: var(--x-picker-padding-top);
@@ -38113,9 +38130,13 @@ installImportMetaCssBuild(import.meta);const css$i = /* css */`
38113
38130
  }
38114
38131
  }
38115
38132
  .navi_picker_right_slot {
38133
+ --slot-spacing: calc(0.1em);
38134
+
38116
38135
  display: inline-flex;
38117
38136
  height: 1em;
38118
38137
  height: 1lh;
38138
+ margin-right: var(--slot-spacing);
38139
+ margin-left: var(--slot-spacing);
38119
38140
  flex-shrink: 0;
38120
38141
  align-items: center;
38121
38142
  align-self: flex-start;
@@ -38144,6 +38165,7 @@ installImportMetaCssBuild(import.meta);const css$i = /* css */`
38144
38165
 
38145
38166
  .navi_picker_content {
38146
38167
  display: contents;
38168
+ text-align: initial; /* Don't inherit picker text align */
38147
38169
  }
38148
38170
 
38149
38171
  &[data-line-clamp] {