@g9tm/lynxcontrols 2.5.6 → 2.5.7

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 (122) hide show
  1. package/catalog/cards/G9AppBar.md +1 -1
  2. package/catalog/cards/G9CarryContexts.md +10 -0
  3. package/catalog/cards/G9CheckBox.md +1 -1
  4. package/catalog/cards/G9FormField.md +2 -2
  5. package/catalog/cards/G9ListRow.md +1 -1
  6. package/catalog/cards/G9RangeSlider.md +2 -2
  7. package/catalog/cards/G9Stepper.md +1 -1
  8. package/catalog/cards/G9SwitchRow.md +1 -1
  9. package/catalog/cards/G9UpdateBar.md +2 -1
  10. package/catalog/catalog.json +879 -42
  11. package/catalog/index.md +3 -2
  12. package/dist/.tsbuildinfo +1 -1
  13. package/dist/base/selection-item.d.ts +5 -0
  14. package/dist/base/selection-item.d.ts.map +1 -1
  15. package/dist/display/figures.d.ts.map +1 -1
  16. package/dist/display/figures.jsx +10 -2
  17. package/dist/display/status.d.ts +1 -1
  18. package/dist/display/status.d.ts.map +1 -1
  19. package/dist/display/status.jsx +15 -3
  20. package/dist/effects/effects.d.ts.map +1 -1
  21. package/dist/effects/effects.jsx +8 -1
  22. package/dist/fields/extra-entries.d.ts +2 -1
  23. package/dist/fields/extra-entries.d.ts.map +1 -1
  24. package/dist/fields/extra-entries.jsx +51 -17
  25. package/dist/fields/fields.css +21 -0
  26. package/dist/fields/fields.css.map +1 -1
  27. package/dist/fields/outlined-field.d.ts +9 -0
  28. package/dist/fields/outlined-field.d.ts.map +1 -1
  29. package/dist/fields/outlined-field.jsx +6 -1
  30. package/dist/fields/pin-entry.d.ts.map +1 -1
  31. package/dist/fields/pin-entry.jsx +36 -3
  32. package/dist/fields/text-entry.d.ts +4 -0
  33. package/dist/fields/text-entry.d.ts.map +1 -1
  34. package/dist/fields/text-entry.jsx +32 -25
  35. package/dist/fields/use-text-input.d.ts +3 -2
  36. package/dist/fields/use-text-input.d.ts.map +1 -1
  37. package/dist/fields/use-text-input.jsx +3 -0
  38. package/dist/header/app-bar.d.ts +6 -0
  39. package/dist/header/app-bar.d.ts.map +1 -1
  40. package/dist/header/app-bar.jsx +22 -8
  41. package/dist/header/header.css +12 -0
  42. package/dist/header/header.css.map +1 -1
  43. package/dist/host/bottom-overlays.d.ts +5 -0
  44. package/dist/host/bottom-overlays.d.ts.map +1 -1
  45. package/dist/host/bottom-overlays.jsx +17 -1
  46. package/dist/host/carry-contexts.d.ts +28 -0
  47. package/dist/host/carry-contexts.d.ts.map +1 -0
  48. package/dist/host/carry-contexts.jsx +62 -0
  49. package/dist/host/host.d.ts.map +1 -1
  50. package/dist/host/host.jsx +5 -1
  51. package/dist/host/index.d.ts +2 -0
  52. package/dist/host/index.d.ts.map +1 -1
  53. package/dist/host/index.jsx +2 -0
  54. package/dist/icon/icon.d.ts.map +1 -1
  55. package/dist/icon/icon.jsx +13 -9
  56. package/dist/layout/containers.d.ts.map +1 -1
  57. package/dist/layout/containers.jsx +2 -1
  58. package/dist/layout/layout.css +5 -0
  59. package/dist/layout/layout.css.map +1 -1
  60. package/dist/list/list.css +22 -0
  61. package/dist/list/list.css.map +1 -1
  62. package/dist/list/rows.d.ts +13 -1
  63. package/dist/list/rows.d.ts.map +1 -1
  64. package/dist/list/rows.jsx +39 -20
  65. package/dist/provider/direction-scope.d.ts +8 -0
  66. package/dist/provider/direction-scope.d.ts.map +1 -1
  67. package/dist/provider/direction-scope.jsx +13 -2
  68. package/dist/provider/index.d.ts +1 -1
  69. package/dist/provider/index.d.ts.map +1 -1
  70. package/dist/provider/provider.css +7 -0
  71. package/dist/provider/provider.css.map +1 -1
  72. package/dist/provider/settings.d.ts +14 -0
  73. package/dist/provider/settings.d.ts.map +1 -1
  74. package/dist/provider/settings.jsx +4 -1
  75. package/dist/range-slider/index.d.ts +1 -1
  76. package/dist/range-slider/index.d.ts.map +1 -1
  77. package/dist/range-slider/range-slider.css +69 -0
  78. package/dist/range-slider/range-slider.css.map +1 -1
  79. package/dist/range-slider/range-slider.d.ts +22 -0
  80. package/dist/range-slider/range-slider.d.ts.map +1 -1
  81. package/dist/range-slider/range-slider.jsx +34 -5
  82. package/dist/selection/selection-sheet.d.ts.map +1 -1
  83. package/dist/selection/selection-sheet.jsx +23 -10
  84. package/dist/selection/selection.css +16 -1
  85. package/dist/selection/selection.css.map +1 -1
  86. package/dist/shell/shell.css +6 -0
  87. package/dist/shell/shell.css.map +1 -1
  88. package/dist/shell/shell.d.ts +10 -1
  89. package/dist/shell/shell.d.ts.map +1 -1
  90. package/dist/shell/shell.jsx +6 -4
  91. package/dist/survey/survey.css +15 -0
  92. package/dist/survey/survey.css.map +1 -1
  93. package/dist/survey/survey.d.ts +6 -0
  94. package/dist/survey/survey.d.ts.map +1 -1
  95. package/dist/survey/survey.jsx +17 -2
  96. package/dist/tab-bar/flat.d.ts.map +1 -1
  97. package/dist/tab-bar/flat.jsx +49 -35
  98. package/dist/tab-bar/tab-bar.d.ts.map +1 -1
  99. package/dist/tab-bar/tab-bar.jsx +28 -6
  100. package/dist/tabs/tab-view.jsx +10 -3
  101. package/dist/tabs/tabs.css +5 -0
  102. package/dist/tabs/tabs.css.map +1 -1
  103. package/dist/toggle/checkbox.d.ts +5 -0
  104. package/dist/toggle/checkbox.d.ts.map +1 -1
  105. package/dist/toggle/checkbox.jsx +7 -2
  106. package/dist/toggle/choice.css +8 -0
  107. package/dist/toggle/choice.css.map +1 -1
  108. package/dist/toggle/choice.d.ts +9 -0
  109. package/dist/toggle/choice.d.ts.map +1 -1
  110. package/dist/toggle/choice.jsx +24 -14
  111. package/package.json +2 -2
  112. package/skills/g9-lynx-app/references/catalog-index.md +2 -2
  113. package/skills/g9-lynx-app/references/components/commerce.md +1 -1
  114. package/skills/g9-lynx-app/references/components/fields.md +2 -2
  115. package/skills/g9-lynx-app/references/components/header.md +1 -1
  116. package/skills/g9-lynx-app/references/components/host.md +11 -0
  117. package/skills/g9-lynx-app/references/components/list.md +2 -2
  118. package/skills/g9-lynx-app/references/components/map.md +19 -1
  119. package/skills/g9-lynx-app/references/components/range-slider.md +2 -2
  120. package/skills/g9-lynx-app/references/components/shell.md +2 -1
  121. package/skills/g9-lynx-app/references/components/toggle.md +2 -2
  122. package/skills/g9-lynx-app/references/provider-and-host.md +4 -3
@@ -3,6 +3,7 @@ import "./tab-bar.css";
3
3
  import "../base/press.css";
4
4
  import { g9Ms } from "@g9tm/lynxcontrols-foundation";
5
5
  import { useEffect, useRef, useState } from "@lynx-js/react";
6
+ import { useG9Anchor } from "../anchor/hooks.jsx";
6
7
  import { useG9PressFeedback, usePressVisual } from "../base/press.jsx";
7
8
  import { startTimer, stopTimer } from "../base/timers.jsx";
8
9
  import { useControllableState } from "../base/use-controllable-state.jsx";
@@ -352,6 +353,19 @@ function TabBarSlot(props) {
352
353
  const slotDir = useG9Direction();
353
354
  const press = useG9PressFeedback(PRESS, false);
354
355
  const { item, selected, hidden, revealPose, metrics } = props;
356
+ const anchor = useG9Anchor(item.automationId, {
357
+ kind: 'tab',
358
+ label: ()=>{
359
+ var _item_text;
360
+ return null != (_item_text = item.text) ? _item_text : null;
361
+ },
362
+ enabled: ()=>!hidden,
363
+ capabilities: {
364
+ activate: ()=>props.onTap()
365
+ }
366
+ }, item.automationId ? {
367
+ domId: item.automationId
368
+ } : {});
355
369
  const sculpted = 'sculpted' === metrics.style;
356
370
  const color = sculpted ? selected ? 'var(--g9-primary)' : 'var(--g9-text-secondary)' : selected ? 'var(--g9-on-primary-container)' : 'var(--g9-on-surface-variant)';
357
371
  const icon = sculpted && selected && void 0 !== item.selectedIcon ? item.selectedIcon : null != (_item_icon = item.icon) ? _item_icon : 'check';
@@ -370,9 +384,7 @@ function TabBarSlot(props) {
370
384
  transform: `translateY(${g9TabBarMetrics.selectedItemTranslationY}px) scale(1)`,
371
385
  transition: `opacity ${g9TabBarMetrics.selectedReturnRevealDurationMs}ms ease-out, transform ${g9TabBarMetrics.selectedReturnRevealDurationMs}ms ease-out`
372
386
  };
373
- return <view className={`g9-tab-bar__slot${selected ? ' g9-tab-bar__slot--selected' : ''}${hidden ? ' g9-tab-bar__slot--hidden' : ''}${press.className}`} {...item.automationId ? {
374
- id: item.automationId
375
- } : {}} style={{
387
+ return <view className={`g9-tab-bar__slot${selected ? ' g9-tab-bar__slot--selected' : ''}${hidden ? ' g9-tab-bar__slot--hidden' : ''}${press.className}`} {...anchor.props} style={{
376
388
  order: props.order,
377
389
  width: `${props.share}%`
378
390
  }} accessibility-element accessibility-traits="button" accessibility-label={item.badge && true !== item.badge ? `${null != (_item_text1 = item.text) ? _item_text1 : ''} (${item.badge})` : null != (_item_text2 = item.text) ? _item_text2 : ''} bindtap={hidden ? void 0 : props.onTap} {...press.props}>
@@ -406,6 +418,18 @@ function TabBarSlot(props) {
406
418
  function MenuCell(props) {
407
419
  var _props_item_text, _props_item_icon, _props_item_text1;
408
420
  const [shown, setShown] = useState(false);
421
+ const anchor = useG9Anchor(props.item.automationId, {
422
+ kind: 'tab',
423
+ label: ()=>{
424
+ var _props_item_text;
425
+ return null != (_props_item_text = props.item.text) ? _props_item_text : null;
426
+ },
427
+ capabilities: {
428
+ activate: ()=>props.onTap()
429
+ }
430
+ }, props.item.automationId ? {
431
+ domId: props.item.automationId
432
+ } : {});
409
433
  useEffect(()=>{
410
434
  const t = startTimer(()=>setShown(true), 16);
411
435
  return ()=>stopTimer(t);
@@ -417,9 +441,7 @@ function MenuCell(props) {
417
441
  const bounce = easeOutBackCss(g9TabBarMetrics.fabPopBackCoefficient);
418
442
  const color = props.selected ? 'var(--g9-on-primary)' : 'var(--g9-on-surface)';
419
443
  const iconColor = props.onAccent ? 'var(--g9-on-primary)' : color;
420
- return <view className={`${props.className}${press.className}${props.selected ? ` ${props.className}--selected` : ''}`} {...props.item.automationId ? {
421
- id: props.item.automationId
422
- } : {}} accessibility-element accessibility-traits="button" accessibility-label={null != (_props_item_text = props.item.text) ? _props_item_text : ''} style={{
444
+ return <view className={`${props.className}${press.className}${props.selected ? ` ${props.className}--selected` : ''}`} {...anchor.props} accessibility-element accessibility-traits="button" accessibility-label={null != (_props_item_text = props.item.text) ? _props_item_text : ''} style={{
423
445
  left: `${props.left}px`,
424
446
  bottom: `${props.bottom}px`,
425
447
  width: `${props.size}px`,
@@ -280,11 +280,18 @@ function TabBarStrip(props) {
280
280
  backgroundColor: null != (_props_background = props.background) ? _props_background : pill ? 'var(--g9-surface-container-low)' : 'transparent'
281
281
  };
282
282
  return <view className="g9-tabs__bar" style={barStyle}>
283
- {fixed ? <view className="g9-tabs__cells">
283
+ {}
284
+ {fixed ? <view className="g9-tabs__cells" style={{
285
+ direction: 'ltr'
286
+ }}>
284
287
  {slider}
285
288
  {cells}
286
- </view> : <scroll-view className="g9-tabs__scroller" scroll-orientation="horizontal">
287
- <view className="g9-tabs__cells g9-tabs__cells--scrollable">
289
+ </view> : <scroll-view className="g9-tabs__scroller" scroll-orientation="horizontal" style={{
290
+ direction: 'ltr'
291
+ }}>
292
+ <view className={`g9-tabs__cells g9-tabs__cells--scrollable${'rtl' === direction ? ' g9-tabs__cells--end' : ''}`} style={{
293
+ direction: 'ltr'
294
+ }}>
288
295
  <G9HorizontalStripContext.Provider value={true}>{cells}</G9HorizontalStripContext.Provider>
289
296
  </view>
290
297
  </scroll-view>}
@@ -52,6 +52,11 @@
52
52
  width: auto;
53
53
  }
54
54
 
55
+ .g9-tabs__cells--end {
56
+ justify-content: flex-end;
57
+ min-width: 100%;
58
+ }
59
+
55
60
  .g9-tabs__scroller {
56
61
  width: 100%;
57
62
  height: 100%;
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack://./src/tabs/tabs.css"],"names":[],"mappings":"AACA;EAAE,sBAAsB;EACtB,WAAW;EACX,aAAa;AACf;;AAGA;EAAE,UAAU;AACZ;;AAGA;EAAE,cAAc;EACd,WAAW;EACX,kBAAkB;AACpB;;AAGA;EAAE,sBAAsB;EACtB,OAAO;EACP,aAAa;EACb,kBAAkB;EAClB,gBAAgB;AAClB;;AAGA;EAAE,uCAA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,YAAY;AACd;;AAKA;EAFE,sBAAsB;EACtB,OAAO;EACP,WAAW;EACX,aAAa;AACf;;AAKA;EAFE,uBAAuB;EACvB,mBAAmB;EACnB,WAAW;EACX,gBAAgB;EAChB,aAAa;AACf","sourcesContent":["/* G9TabView (MAUI G9TabView): bar, sliding indicator, lazily realized bodies. No shadows (plan/specs/02 §2). */\n.g9-tabs {\n display: flex;\n flex-direction: column;\n width: 100%;\n}\n\n.g9-tabs--header-only {\n flex: 0 0 auto;\n}\n\n.g9-tabs__bar {\n position: relative;\n width: 100%;\n flex-shrink: 0;\n}\n\n.g9-tabs__content {\n position: relative;\n flex: 1;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n}\n\n.g9-tabs--underlined .g9-tabs__bar {\n border-top: 1px solid var(--g9-divider);\n border-bottom: 1px solid var(--g9-divider);\n}\n\n.g9-tabs--pill .g9-tabs__bar {\n border-radius: 26px;\n padding: 4px;\n}\n\n.g9-tabs--pill.g9-tabs--top .g9-tabs__content {\n margin-top: 8px;\n}\n\n.g9-tabs--pill.g9-tabs--bottom .g9-tabs__content {\n margin-bottom: 8px;\n}\n\n.g9-tabs__cells {\n position: relative;\n display: flex;\n flex-direction: row;\n height: 100%;\n width: 100%;\n}\n\n.g9-tabs__cells--scrollable {\n width: auto;\n}\n\n.g9-tabs__scroller {\n height: 100%;\n width: 100%;\n}\n\n.g9-tabs__cell {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n padding: 0 14px;\n}\n\n.g9-tabs__cell-row {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n gap: 6px;\n}\n\n.g9-tabs__label {\n font-size: 14px;\n font-family: var(--g9-font-text);\n}\n\n.g9-tabs__separator {\n position: absolute;\n left: 0;\n top: 12px;\n bottom: 12px;\n width: 1px;\n background-color: var(--g9-divider);\n}\n\n.g9-tabs__badge {\n min-width: 18px;\n height: 18px;\n padding: 0 5px;\n border-radius: 9px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.g9-tabs__badge-text {\n font-size: 11px;\n font-family: var(--g9-font-text-600);\n font-weight: 600;\n color: var(--g9-on-error);\n}\n\n.g9-tabs__badge-dot {\n width: 7px;\n height: 7px;\n border-radius: 3.5px;\n}\n\n.g9-tabs__underline {\n position: absolute;\n bottom: 0;\n height: 2.5px;\n display: flex;\n flex-direction: row;\n justify-content: center;\n}\n\n.g9-tabs__underline-fill,\n.g9-tabs__cell-underline {\n height: 2.5px;\n width: 100%;\n}\n\n.g9-tabs__cell-underline {\n position: absolute;\n left: 0;\n bottom: 0;\n}\n\n.g9-tabs__pill {\n position: absolute;\n top: 2px;\n bottom: 2px;\n display: flex;\n}\n\n.g9-tabs__pill-fill,\n.g9-tabs__cell-pill {\n width: 100%;\n height: 100%;\n border-radius: 18px;\n background-color: var(--g9-primary-container);\n border: 1px solid var(--g9-primary-border);\n}\n\n.g9-tabs__cell-pill {\n position: absolute;\n top: 2px;\n bottom: 2px;\n left: 0;\n height: auto;\n}\n\n.g9-tabs__panel {\n display: flex;\n flex: 1;\n flex-direction: column;\n width: 100%;\n}\n\n.g9-tabs__pager {\n flex: 1;\n height: 100%;\n}\n\n.g9-tabs__page {\n flex: 1;\n display: flex;\n flex-direction: column;\n width: 100%;\n}\n\n.g9-tabs__spinner {\n display: flex;\n align-items: center;\n justify-content: center;\n min-height: 72px;\n width: 100%;\n}\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack://./src/tabs/tabs.css"],"names":[],"mappings":"AACA;EAAE,sBAAsB;EACtB,WAAW;EACX,aAAa;AACf;;AAGA;EAAE,UAAU;AACZ;;AAGA;EAAE,cAAc;EACd,WAAW;EACX,kBAAkB;AACpB;;AAGA;EAAE,sBAAsB;EACtB,OAAO;EACP,aAAa;EACb,kBAAkB;EAClB,gBAAgB;AAClB;;AAGA;EAAE,uCAAuC;EACvC,0CAA0C;AAC5C;;AAGA;EAAE,mBAAmB;EACnB,YAAY;AACd;;AAGA;EAAE,eAAe;AACjB;;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,aAAa;AACf;;AAMA;EAHE,uBAAuB;EACvB,mBAAmB;EACnB,WAAW;EACX,gBAAgB;EAChB,aAAa;AACf","sourcesContent":["/* G9TabView (MAUI G9TabView): bar, sliding indicator, lazily realized bodies. No shadows (plan/specs/02 §2). */\n.g9-tabs {\n display: flex;\n flex-direction: column;\n width: 100%;\n}\n\n.g9-tabs--header-only {\n flex: 0 0 auto;\n}\n\n.g9-tabs__bar {\n position: relative;\n width: 100%;\n flex-shrink: 0;\n}\n\n.g9-tabs__content {\n position: relative;\n flex: 1;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n}\n\n.g9-tabs--underlined .g9-tabs__bar {\n border-top: 1px solid var(--g9-divider);\n border-bottom: 1px solid var(--g9-divider);\n}\n\n.g9-tabs--pill .g9-tabs__bar {\n border-radius: 26px;\n padding: 4px;\n}\n\n.g9-tabs--pill.g9-tabs--top .g9-tabs__content {\n margin-top: 8px;\n}\n\n.g9-tabs--pill.g9-tabs--bottom .g9-tabs__content {\n margin-bottom: 8px;\n}\n\n.g9-tabs__cells {\n position: relative;\n display: flex;\n flex-direction: row;\n height: 100%;\n width: 100%;\n}\n\n.g9-tabs__cells--scrollable {\n width: auto;\n}\n\n/* RTL: cells that do not fill the bar sit at its right (its reading start); wider ones scroll as before (2.5.7). */\n.g9-tabs__cells--end {\n min-width: 100%;\n justify-content: flex-end;\n}\n\n.g9-tabs__scroller {\n height: 100%;\n width: 100%;\n}\n\n.g9-tabs__cell {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n padding: 0 14px;\n}\n\n.g9-tabs__cell-row {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n gap: 6px;\n}\n\n.g9-tabs__label {\n font-size: 14px;\n font-family: var(--g9-font-text);\n}\n\n.g9-tabs__separator {\n position: absolute;\n left: 0;\n top: 12px;\n bottom: 12px;\n width: 1px;\n background-color: var(--g9-divider);\n}\n\n.g9-tabs__badge {\n min-width: 18px;\n height: 18px;\n padding: 0 5px;\n border-radius: 9px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.g9-tabs__badge-text {\n font-size: 11px;\n font-family: var(--g9-font-text-600);\n font-weight: 600;\n color: var(--g9-on-error);\n}\n\n.g9-tabs__badge-dot {\n width: 7px;\n height: 7px;\n border-radius: 3.5px;\n}\n\n.g9-tabs__underline {\n position: absolute;\n bottom: 0;\n height: 2.5px;\n display: flex;\n flex-direction: row;\n justify-content: center;\n}\n\n.g9-tabs__underline-fill,\n.g9-tabs__cell-underline {\n height: 2.5px;\n width: 100%;\n}\n\n.g9-tabs__cell-underline {\n position: absolute;\n left: 0;\n bottom: 0;\n}\n\n.g9-tabs__pill {\n position: absolute;\n top: 2px;\n bottom: 2px;\n display: flex;\n}\n\n.g9-tabs__pill-fill,\n.g9-tabs__cell-pill {\n width: 100%;\n height: 100%;\n border-radius: 18px;\n background-color: var(--g9-primary-container);\n border: 1px solid var(--g9-primary-border);\n}\n\n.g9-tabs__cell-pill {\n position: absolute;\n top: 2px;\n bottom: 2px;\n left: 0;\n height: auto;\n}\n\n.g9-tabs__panel {\n display: flex;\n flex: 1;\n flex-direction: column;\n width: 100%;\n}\n\n.g9-tabs__pager {\n flex: 1;\n height: 100%;\n}\n\n.g9-tabs__page {\n flex: 1;\n display: flex;\n flex-direction: column;\n width: 100%;\n}\n\n.g9-tabs__spinner {\n display: flex;\n align-items: center;\n justify-content: center;\n min-height: 72px;\n width: 100%;\n}\n"],"sourceRoot":""}
@@ -41,6 +41,11 @@ export interface G9CheckBoxProps extends G9ControlBaseProps {
41
41
  readonly onPress?: (checked: boolean) => void;
42
42
  /** 48 px touch slot with the box at the top; false: a 20 px slot, box centred. Default true. */
43
43
  readonly reserveTouchTarget?: boolean;
44
+ /**
45
+ * Space between the box and the text in dp (G9Hub, 2.5.7). Default 2 with the 48 dp touch slot (the box's own margin
46
+ * makes it 16 visually), 8 without it.
47
+ */
48
+ readonly labelGap?: number;
44
49
  }
45
50
  /** Imperative handle of {@link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CAAC;IAC3B,QAAQ,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC;IAClC,2GAA2G;IAC3G,QAAQ,CAAC,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACtD,wEAAwE;IACxE,QAAQ,CAAC,aAAa,CAAC,EAAE,OAAO,CAAC;IACjC,QAAQ,CAAC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IACxC,QAAQ,CAAC,qBAAqB,CAAC,EAAE,CAAC,aAAa,EAAE,OAAO,KAAK,IAAI,CAAC;IAClE,0DAA0D;IAC1D,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,oEAAoE;IACpE,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAC9C,gGAAgG;IAChG,QAAQ,CAAC,kBAAkB,CAAC,EAAE,OAAO,CAAC;IACtC;;;OAGG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,+CAA+C;AAC/C,MAAM,WAAW,gBAAgB;IAC/B,6DAA6D;IAC7D,MAAM,IAAI,IAAI,CAAC;CAChB;AAED;;;;GAIG;AACH,eAAO,MAAM,UAAU,8GA0ItB,CAAC"}
@@ -41,7 +41,7 @@ function checkBoxSvg(progress, morph, colors, disabled) {
41
41
  return parts.join('');
42
42
  }
43
43
  const G9CheckBox = forwardRef(function(props, ref) {
44
- var _props_defaultChecked, _props_defaultIndeterminate, _props_accessibilityLabel, _ref, _props_accessibilityLabel1;
44
+ var _props_defaultChecked, _props_defaultIndeterminate, _props_labelGap, _props_accessibilityLabel, _ref, _props_accessibilityLabel1;
45
45
  const control = useG9Control(props, 'g9-checkbox', {
46
46
  kind: 'toggle',
47
47
  label: ()=>{
@@ -143,7 +143,12 @@ const G9CheckBox = forwardRef(function(props, ref) {
143
143
  const reserve = false !== props.reserveTouchTarget;
144
144
  const text1 = props.text && '' !== props.text.trim() ? props.text : null;
145
145
  const state = indeterminate ? strings.get(G9StringKey.PartiallyChecked) : checked ? strings.get(G9StringKey.Checked) : strings.get(G9StringKey.NotChecked);
146
- return <view className={`${control.className}${text1 ? ' g9-checkbox--labelled' : ''}`} {...control.idProps} style={control.rootStyle(g9RowStyle(control.direction))} accessibility-element={true} accessibility-traits="button" accessibility-value={state} {...(null != (_props_accessibilityLabel = props.accessibilityLabel) ? _props_accessibilityLabel : text1) ? {
146
+ return <view className={`${control.className}${text1 ? ' g9-checkbox--labelled' : ''}`} {...control.idProps} style={control.rootStyle({
147
+ ...g9RowStyle(control.direction),
148
+ ...text1 ? {
149
+ columnGap: `${null != (_props_labelGap = props.labelGap) ? _props_labelGap : reserve ? 2 : 8}px`
150
+ } : {}
151
+ })} accessibility-element={true} accessibility-traits="button" accessibility-value={state} {...(null != (_props_accessibilityLabel = props.accessibilityLabel) ? _props_accessibilityLabel : text1) ? {
147
152
  'accessibility-label': null != (_ref = null != (_props_accessibilityLabel1 = props.accessibilityLabel) ? _props_accessibilityLabel1 : text1) ? _ref : ''
148
153
  } : {}} bindtap={press}>
149
154
  <view className={`g9-checkbox__slot${reserve ? ' g9-checkbox__slot--reserve' : ''}`} style={{
@@ -87,6 +87,8 @@
87
87
  flex-direction: row;
88
88
  align-items: center;
89
89
  column-gap: 5px;
90
+ min-width: 0;
91
+ max-width: 100%;
90
92
  display: flex;
91
93
  }
92
94
 
@@ -94,7 +96,11 @@
94
96
  font-size: 14px;
95
97
  font-family: var(--g9-font-text-500);
96
98
  white-space: nowrap;
99
+ text-overflow: ellipsis;
100
+ flex-shrink: 1;
101
+ min-width: 0;
97
102
  font-weight: 500;
103
+ overflow: hidden;
98
104
  }
99
105
 
100
106
  .g9-seg__label--on {
@@ -106,6 +112,8 @@
106
112
  font-size: 11px;
107
113
  font-family: var(--g9-font-text);
108
114
  opacity: .8;
115
+ text-overflow: ellipsis;
116
+ max-width: 100%;
109
117
  }
110
118
 
111
119
  .g9-seg__count {
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack://./src/toggle/choice.css"],"names":[],"mappings":"AACA;EAAE,mBAAmB;EACnB,iBAAiB;EACjB,cAAc;EACd,sBAAsB;EACtB,mBAAmB;EACnB,eAAe;EACf,aAAa;AACf;;AAGA;EAAE,oBAAoB;AACtB;;AAGA;EAAE,mBAAmB;EACnB,gBAAgB;EAChB,oCAAoC;AACtC;;AAGA;EAAE,mBAAmB;EACnB,uBAAuB;EACvB,mBAAmB;EACnB,WAAW;EACX,YAAY;EACZ,aAAa;AACf;;AAGA;EAAE,kDAAkD;EAClD,oBAAoB;EACpB,YAAY;EACZ,aAAa;EACb,kBAAkB;AACpB;;AAGA;EAAE,0BAA0B;EAC1B,wBAAwB;EACxB,sCAAsC;EACtC,uBAAuB;EACvB,UAAU;AACZ;;AAGA;EAAE,oDAAoD;EACpD,kBAAkB;EAClB,QAAQ;EACR,WAAW;AACb;;AAGA;EAAE,mCAAmC;EACnC,mBAAmB;EACnB,iBAAiB;EACjB,uCAAuC;AACzC;;AAGA;EAAE,mCAAmC;AACrC;;AAGA;EAAE,sBAAsB;EACtB,OAAO;EACP,uBAAuB;EACvB,mBAAmB;EACnB,YAAY;EACZ,cAAc;EACd,aAAa;AACf;;AAGA;EAAE,UAAU;AACZ;;AAGA;EAAE,8BAA8B;AAChC;;AAKA;EAFE,YAAY;AACd;;AAKA;EAFE,mBAAmB;EACnB,mBAAmB;EACnB,eAAe;EACf,aAAa;AACf;;AAKA;EAFE,eAAe;EACf,oCAAoC;EACpC,mBAAmB;EACnB,gBAAgB;AAClB;;AAKA;EAFE,gBAAgB;EAChB,oCAAoC;AACtC;;AAKA;EAFE,eAAe;EACf,gCAAgC;EAChC,WAAW;AACb;;AAKA;EAFE,kBAAkB;EAClB,uBAAuB;EACvB,mBAAmB;EACnB,eAAe;EACf,YAAY;EACZ,cAAc;EACd,aAAa;AACf;;AAKA;EAFE,eAAe;EACf,oCAAoC;EACpC,gBAAgB;AAClB;;AAKA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EACf,eAAe;EACf,oCAAoC;EACpC,6BAA6B;EAC7B,gBAAgB;AAClB;;AAMA;EAHE,mBAAmB;EACnB,aAAa;AACf;;AAMA;EAHE,uBAAuB;EACvB,mBAAmB;EACnB,aAAa;AACf","sourcesContent":["/* G9Chip, G9Segmented, G9RadioGroup, G9Stepper, G9RatingInput. */\n.g9-chip2 {\n display: flex;\n align-items: center;\n align-self: flex-start;\n flex-shrink: 0;\n border-style: solid;\n border-width: 1px;\n column-gap: 5px;\n}\n\n.g9-chip2--dashed {\n border-style: dashed;\n}\n\n.g9-chip2__text {\n font-weight: 600;\n white-space: nowrap;\n font-family: var(--g9-font-text-600);\n}\n\n.g9-chip2__remove {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 22px;\n height: 22px;\n border-radius: 11px;\n}\n\n.g9-seg {\n display: flex;\n position: relative;\n align-items: stretch;\n padding: 3px;\n background-color: var(--g9-surface-container-high);\n}\n\n.g9-seg--underline {\n padding: 0px;\n background-color: transparent;\n border-bottom-width: 1px;\n border-bottom-style: solid;\n border-bottom-color: var(--g9-divider);\n}\n\n.g9-seg__indicator {\n position: absolute;\n top: 3px;\n bottom: 3px;\n transition: transform 220ms cubic-bezier(0.2, 0, 0, 1);\n}\n\n.g9-seg__indicator--lift {\n background-color: var(--g9-surface);\n border-width: 1px;\n border-style: solid;\n border-color: var(--g9-outline-variant);\n}\n\n.g9-seg__indicator--filled {\n background-color: var(--g9-primary);\n}\n\n.g9-seg__item {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n flex: 1;\n min-width: 0px;\n padding: 0px 8px;\n}\n\n.g9-seg__item--content {\n flex: 1 1 auto;\n}\n\n.g9-seg__item--underline {\n border-bottom-width: 2px;\n border-bottom-style: solid;\n border-bottom-color: transparent;\n}\n\n.g9-seg__item--disabled {\n opacity: 0.38;\n}\n\n.g9-seg__line {\n display: flex;\n flex-direction: row;\n align-items: center;\n column-gap: 5px;\n}\n\n.g9-seg__label {\n font-size: 14px;\n font-family: var(--g9-font-text-500);\n font-weight: 500;\n white-space: nowrap;\n}\n\n.g9-seg__label--on {\n font-weight: 700;\n font-family: var(--g9-font-text-700);\n}\n\n.g9-seg__sub {\n font-size: 11px;\n font-family: var(--g9-font-text);\n opacity: 0.8;\n}\n\n.g9-seg__count {\n display: flex;\n align-items: center;\n justify-content: center;\n min-width: 18px;\n height: 18px;\n padding: 0px 5px;\n border-radius: 9px;\n}\n\n.g9-seg__count-text {\n font-size: 11px;\n font-family: var(--g9-font-text-700);\n font-weight: 700;\n}\n\n.g9-radio-group {\n display: flex;\n flex-direction: column;\n}\n\n.g9-radio {\n display: flex;\n align-items: center;\n min-height: 48px;\n column-gap: 12px;\n padding: 6px 0px;\n}\n\n.g9-radio--card {\n padding: 12px 14px;\n border-radius: var(--g9-radius-card);\n border-width: 1px;\n border-style: solid;\n border-color: var(--g9-outline-variant);\n background-color: var(--g9-surface);\n}\n\n.g9-radio--card-on {\n border-width: 2px;\n border-color: var(--g9-primary);\n background-color: var(--g9-primary-container);\n}\n\n.g9-radio--disabled {\n opacity: 0.38;\n}\n\n.g9-radio__mark {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 22px;\n height: 22px;\n border-radius: 11px;\n border-width: 2px;\n border-style: solid;\n border-color: var(--g9-outline);\n flex-shrink: 0;\n}\n\n.g9-radio__mark--on {\n border-color: var(--g9-primary);\n}\n\n.g9-radio__dot {\n width: 10px;\n height: 10px;\n border-radius: 5px;\n background-color: var(--g9-primary);\n}\n\n.g9-radio__body {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-width: 0px;\n}\n\n.g9-radio__label {\n font-size: 15px;\n font-family: var(--g9-font-text);\n line-height: 24px;\n color: var(--g9-text-primary);\n}\n\n.g9-radio__desc {\n font-size: 12px;\n font-family: var(--g9-font-text);\n line-height: 20px;\n color: var(--g9-text-secondary);\n}\n\n.g9-stepper {\n display: flex;\n align-items: center;\n justify-content: space-between;\n align-self: flex-start;\n background-color: var(--g9-surface-container-high);\n}\n\n.g9-stepper--block {\n align-self: stretch;\n}\n\n.g9-stepper--add {\n display: flex;\n flex-direction: row;\n justify-content: center;\n padding: 0px 14px;\n column-gap: 6px;\n background-color: var(--g9-primary);\n}\n\n.g9-stepper__add-text {\n font-size: 14px;\n font-family: var(--g9-font-text-700);\n font-weight: 700;\n color: var(--g9-on-primary);\n}\n\n.g9-stepper__btn {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.g9-stepper__btn--off {\n opacity: 0.35;\n}\n\n/* the tray look (appearance 'tray'): the pill in the primary container, round surface buttons inside, a bold count */\n.g9-stepper--tray {\n background-color: var(--g9-primary-container);\n}\n\n.g9-stepper__btn--tray {\n background-color: var(--g9-surface);\n}\n\n.g9-stepper__value--tray {\n font-size: 17px;\n font-family: var(--g9-font-text-700);\n font-weight: 700;\n color: var(--g9-on-primary-container);\n}\n\n.g9-stepper__value {\n min-width: 28px;\n text-align: center;\n font-size: 15px;\n font-family: var(--g9-font-text-800);\n font-weight: 800;\n color: var(--g9-text-primary);\n}\n\n.g9-rating {\n display: flex;\n align-items: center;\n}\n\n.g9-rating__star {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack://./src/toggle/choice.css"],"names":[],"mappings":"AACA;EAAE,mBAAmB;EACnB,iBAAiB;EACjB,cAAc;EACd,sBAAsB;EACtB,mBAAmB;EACnB,eAAe;EACf,aAAa;AACf;;AAGA;EAAE,oBAAoB;AACtB;;AAGA;EAAE,mBAAmB;EACnB,gBAAgB;EAChB,oCAAoC;AACtC;;AAGA;EAAE,mBAAmB;EACnB,uBAAuB;EACvB,mBAAmB;EACnB,WAAW;EACX,YAAY;EACZ,aAAa;AACf;;AAGA;EAAE,kDAAkD;EAClD,oBAAoB;EACpB,YAAY;EACZ,aAAa;EACb,kBAAkB;AACpB;;AAGA;EAAE,0BAA0B;EAC1B,wBAAwB;EACxB,sCAAsC;EACtC,uBAAuB;EACvB,UAAU;AACZ;;AAGA;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X,YAAY;EACZ,aAAa;AACf;;AAMA;EAHE,+BAA+B;AACjC;;AAMA;EAHE,mCAAmC;EACnC,kBAAkB;EAClB,WAAW;EACX,YAAY;AACd;;AAMA;EAHE,sBAAsB;EACtB,OAAO;EACP,YAAY;EACZ,aAAa;AACf;;AAMA;EAHE,eAAe;EACf,gCAAgC;EAChC,6BAA6B;EAC7B,iBAAiB;AACnB;;AAMA;EAHE,eAAe;EACf,gCAAgC;EAChC,+BAA+B;EAC/B,iBAAiB;AACnB;;AAMA;EAHE,kDAAkD;EAClD,8BAA8B;EAC9B,sBAAsB;EACtB,mBAAmB;EACnB,aAAa;AACf;;AAMA;EAHE,mBAAmB;AACrB;;AAMA;EAHE,mCAAmC;EACnC,mBAAmB;EACnB,uBAAuB;EACvB,eAAe;EACf,eAAe;EACf,aAAa;AACf;;AAMA;EAHE,eAAe;EACf,oCAAoC;EACpC,2BAA2B;EAC3B,gBAAgB;AAClB;;AAMA;EAHE,uBAAuB;EACvB,mBAAmB;EACnB,aAAa;AACf;;AAMA;EAHE,YAAY;AACd;;AAOA;EAJE,6CAA6C;AAC/C;;AAOA;EAJE,mCAAmC;AACrC;;AAOA;EAJE,eAAe;EACf,oCAAoC;EACpC,qCAAqC;EACrC,gBAAgB;AAClB;;AAOA;EAJE,kBAAkB;EAClB,eAAe;EACf,eAAe;EACf,oCAAoC;EACpC,6BAA6B;EAC7B,gBAAgB;AAClB;;AAOA;EAJE,mBAAmB;EACnB,aAAa;AACf;;AAOA;EAJE,uBAAuB;EACvB,mBAAmB;EACnB,aAAa;AACf","sourcesContent":["/* G9Chip, G9Segmented, G9RadioGroup, G9Stepper, G9RatingInput. */\n.g9-chip2 {\n display: flex;\n align-items: center;\n align-self: flex-start;\n flex-shrink: 0;\n border-style: solid;\n border-width: 1px;\n column-gap: 5px;\n}\n\n.g9-chip2--dashed {\n border-style: dashed;\n}\n\n.g9-chip2__text {\n font-weight: 600;\n white-space: nowrap;\n font-family: var(--g9-font-text-600);\n}\n\n.g9-chip2__remove {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 22px;\n height: 22px;\n border-radius: 11px;\n}\n\n.g9-seg {\n display: flex;\n position: relative;\n align-items: stretch;\n padding: 3px;\n background-color: var(--g9-surface-container-high);\n}\n\n.g9-seg--underline {\n padding: 0px;\n background-color: transparent;\n border-bottom-width: 1px;\n border-bottom-style: solid;\n border-bottom-color: var(--g9-divider);\n}\n\n.g9-seg__indicator {\n position: absolute;\n top: 3px;\n bottom: 3px;\n transition: transform 220ms cubic-bezier(0.2, 0, 0, 1);\n}\n\n.g9-seg__indicator--lift {\n background-color: var(--g9-surface);\n border-width: 1px;\n border-style: solid;\n border-color: var(--g9-outline-variant);\n}\n\n.g9-seg__indicator--filled {\n background-color: var(--g9-primary);\n}\n\n.g9-seg__item {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n flex: 1;\n min-width: 0px;\n padding: 0px 8px;\n}\n\n.g9-seg__item--content {\n flex: 1 1 auto;\n}\n\n.g9-seg__item--underline {\n border-bottom-width: 2px;\n border-bottom-style: solid;\n border-bottom-color: transparent;\n}\n\n.g9-seg__item--disabled {\n opacity: 0.38;\n}\n\n.g9-seg__line {\n display: flex;\n flex-direction: row;\n align-items: center;\n column-gap: 5px;\n max-width: 100%;\n min-width: 0px;\n}\n\n.g9-seg__label {\n font-size: 14px;\n font-family: var(--g9-font-text-500);\n font-weight: 500;\n white-space: nowrap;\n /* a label longer than its segment ends in «…» instead of spilling into the next (G9Hub, 2.5.7) */\n flex-shrink: 1;\n min-width: 0px;\n text-overflow: ellipsis;\n overflow: hidden;\n}\n\n.g9-seg__label--on {\n font-weight: 700;\n font-family: var(--g9-font-text-700);\n}\n\n.g9-seg__sub {\n font-size: 11px;\n font-family: var(--g9-font-text);\n opacity: 0.8;\n max-width: 100%;\n text-overflow: ellipsis;\n}\n\n.g9-seg__count {\n display: flex;\n align-items: center;\n justify-content: center;\n min-width: 18px;\n height: 18px;\n padding: 0px 5px;\n border-radius: 9px;\n}\n\n.g9-seg__count-text {\n font-size: 11px;\n font-family: var(--g9-font-text-700);\n font-weight: 700;\n}\n\n.g9-radio-group {\n display: flex;\n flex-direction: column;\n}\n\n.g9-radio {\n display: flex;\n align-items: center;\n min-height: 48px;\n column-gap: 12px;\n padding: 6px 0px;\n}\n\n.g9-radio--card {\n padding: 12px 14px;\n border-radius: var(--g9-radius-card);\n border-width: 1px;\n border-style: solid;\n border-color: var(--g9-outline-variant);\n background-color: var(--g9-surface);\n}\n\n.g9-radio--card-on {\n border-width: 2px;\n border-color: var(--g9-primary);\n background-color: var(--g9-primary-container);\n}\n\n.g9-radio--disabled {\n opacity: 0.38;\n}\n\n.g9-radio__mark {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 22px;\n height: 22px;\n border-radius: 11px;\n border-width: 2px;\n border-style: solid;\n border-color: var(--g9-outline);\n flex-shrink: 0;\n}\n\n.g9-radio__mark--on {\n border-color: var(--g9-primary);\n}\n\n.g9-radio__dot {\n width: 10px;\n height: 10px;\n border-radius: 5px;\n background-color: var(--g9-primary);\n}\n\n.g9-radio__body {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-width: 0px;\n}\n\n.g9-radio__label {\n font-size: 15px;\n font-family: var(--g9-font-text);\n line-height: 24px;\n color: var(--g9-text-primary);\n}\n\n.g9-radio__desc {\n font-size: 12px;\n font-family: var(--g9-font-text);\n line-height: 20px;\n color: var(--g9-text-secondary);\n}\n\n.g9-stepper {\n display: flex;\n align-items: center;\n justify-content: space-between;\n align-self: flex-start;\n background-color: var(--g9-surface-container-high);\n}\n\n.g9-stepper--block {\n align-self: stretch;\n}\n\n.g9-stepper--add {\n display: flex;\n flex-direction: row;\n justify-content: center;\n padding: 0px 14px;\n column-gap: 6px;\n background-color: var(--g9-primary);\n}\n\n.g9-stepper__add-text {\n font-size: 14px;\n font-family: var(--g9-font-text-700);\n font-weight: 700;\n color: var(--g9-on-primary);\n}\n\n.g9-stepper__btn {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.g9-stepper__btn--off {\n opacity: 0.35;\n}\n\n/* the tray look (appearance 'tray'): the pill in the primary container, round surface buttons inside, a bold count */\n.g9-stepper--tray {\n background-color: var(--g9-primary-container);\n}\n\n.g9-stepper__btn--tray {\n background-color: var(--g9-surface);\n}\n\n.g9-stepper__value--tray {\n font-size: 17px;\n font-family: var(--g9-font-text-700);\n font-weight: 700;\n color: var(--g9-on-primary-container);\n}\n\n.g9-stepper__value {\n min-width: 28px;\n text-align: center;\n font-size: 15px;\n font-family: var(--g9-font-text-800);\n font-weight: 800;\n color: var(--g9-text-primary);\n}\n\n.g9-rating {\n display: flex;\n align-items: center;\n}\n\n.g9-rating__star {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n"],"sourceRoot":""}
@@ -116,8 +116,17 @@ export interface G9StepperProps extends G9ControlBaseProps {
116
116
  readonly increaseLabel?: string;
117
117
  /** What − says when it would fold the stepper back (`collapsedAtMin`: its icon is a bin). Default `decreaseLabel`. */
118
118
  readonly removeLabel?: string;
119
+ /**
120
+ * Below this value − folds the stepper back (its icon a bin): a quantity whose smallest amount is above one step (a
121
+ * 1 kg minimum in 0.5 kg steps). Default `min`.
122
+ */
123
+ readonly collapseBelow?: number;
119
124
  /** What the value says (`'۲ عدد پنیر سفید'`): a text, or one made from the value. Default the shown text. */
120
125
  readonly valueLabel?: string | ((value: number) => string);
126
+ /** What the collapsed add button says (its words shown may be shorter: «افزودن» read as «افزودن پنیر»). */
127
+ readonly addLabel?: string;
128
+ /** Working (the cart is being updated): a spinner in place of the value, − and + do nothing. */
129
+ readonly busy?: boolean;
121
130
  }
122
131
  /** − value + (SAC Stepper, ShopManager stepper and AddControl, mardomi Stepper), with an optional collapsed "add" state. */
123
132
  export declare function G9Stepper(props: G9StepperProps): ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"choice.d.ts","sourceRoot":"","sources":["../../src/toggle/choice.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AACtB,OAA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C,MAAM,WAAW,kBAAmB,SAAQ,kBAAkB;IAC5D,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,iBAAiB;IACjB,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IACtB,+CAA+C;IAC/C,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B,wDAAwD;IACxD,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,QAAQ,CAAC,MAAM,CAAC,EAAE,YAAY,GAAG,KAAK,CAAC;CACxC;AAKD,4FAA4F;AAC5F,wBAAgB,aAAa,CAAC,KAAK,EAAE,kBAAkB,GAAG,SAAS,CAgElE"}
@@ -1,11 +1,12 @@
1
1
  import "./choice.css";
2
2
  import { g9Haptic } from "@g9tm/lynxcontrols-foundation";
3
3
  import { memo } from "@lynx-js/react";
4
- import { g9ChildId, g9IdProps, g9RowStyle, useG9Control } from "../base/control.jsx";
4
+ import { g9ChildId, g9IdProps, g9RowStyle, g9TextStart, useG9Control } from "../base/control.jsx";
5
5
  import { useG9Press } from "../base/press.jsx";
6
6
  import { useG9SharedHeights } from "../base/sizing.jsx";
7
7
  import { toneColors } from "../base/tone.jsx";
8
8
  import { useControllableState } from "../base/use-controllable-state.jsx";
9
+ import { G9ActivityIndicator } from "../display/activity-indicator.jsx";
9
10
  import { G9Icon } from "../icon/icon.jsx";
10
11
  const tick = (kind)=>{
11
12
  if (false !== kind) g9Haptic(null != kind ? kind : 'tick');
@@ -161,7 +162,7 @@ const Segment = memo(function(p) {
161
162
  }} accessibility-element={true} accessibility-traits="button" accessibility-label={p.item.label} accessibility-status={p.on ? 'selected' : ''} bindtap={press}>
162
163
  <view className="g9-seg__line">
163
164
  {p.item.icon ? <G9Icon icon={p.item.icon} size={15} color={fg}/> : null}
164
- <text className={`g9-seg__label${p.on ? ' g9-seg__label--on' : ''}`} style={{
165
+ <text className={`g9-seg__label${p.on ? ' g9-seg__label--on' : ''}`} text-maxline="1" style={{
165
166
  color: fg
166
167
  }}>
167
168
  {p.item.label}
@@ -176,7 +177,7 @@ const Segment = memo(function(p) {
176
177
  </text>
177
178
  </view> : null}
178
179
  </view>
179
- {p.item.sub ? <text className="g9-seg__sub" style={{
180
+ {p.item.sub ? <text className="g9-seg__sub" text-maxline="1" style={{
180
181
  color: fg
181
182
  }}>
182
183
  {p.item.sub}
@@ -230,14 +231,18 @@ const RadioRow = memo(function(p) {
230
231
  source: 'G9RadioGroup',
231
232
  guardMs: 0
232
233
  });
233
- return <view className={`g9-radio${p.cards ? ' g9-radio--card' : ''}${p.cards && p.on ? ' g9-radio--card-on' : ''}${p.blocked ? ' g9-radio--disabled' : ''}`} {...g9IdProps(p.id)} style={g9RowStyle(p.direction)} accessibility-element={true} accessibility-traits="button" accessibility-label={p.option.label} accessibility-status={p.on ? 'selected' : ''} bindtap={press}>
234
+ return <view className={`g9-radio${p.cards ? ' g9-radio--card' : ''}${p.cards && p.on ? ' g9-radio--card-on' : ''}${p.blocked ? ' g9-radio--disabled' : ''}`} {...g9IdProps(p.id)} style={g9RowStyle(p.direction)} flatten={false} accessibility-element={true} accessibility-traits="button" accessibility-label={p.option.label} accessibility-status={p.on ? 'selected' : ''} bindtap={press}>
234
235
  <view className={`g9-radio__mark${p.on ? ' g9-radio__mark--on' : ''}`}>
235
236
  {p.on ? <view className="g9-radio__dot"/> : null}
236
237
  </view>
237
238
  {p.option.icon ? <G9Icon icon={p.option.icon} size={20} color="var(--g9-text-secondary)"/> : null}
238
239
  <view className="g9-radio__body">
239
- <text className="g9-radio__label">{p.option.label}</text>
240
- {p.option.description ? <text className="g9-radio__desc">{p.option.description}</text> : null}
240
+ <text className="g9-radio__label" style={g9TextStart(p.direction)}>
241
+ {p.option.label}
242
+ </text>
243
+ {p.option.description ? <text className="g9-radio__desc" style={g9TextStart(p.direction)}>
244
+ {p.option.description}
245
+ </text> : null}
241
246
  </view>
242
247
  </view>;
243
248
  });
@@ -296,14 +301,16 @@ function G9Stepper(props) {
296
301
  });
297
302
  const collapsed = void 0 !== props.collapsedAtMin && false !== props.collapsedAtMin && value <= min;
298
303
  const text1 = props.format ? props.format(value) : String(value);
299
- const removes = value - step < min + 1e-9 && !!props.collapsedAtMin;
304
+ const removes = !!props.collapsedAtMin && (void 0 !== props.collapseBelow ? value - step < props.collapseBelow - 1e-9 : value - step < min + 1e-9);
300
305
  if (collapsed) {
301
- var _props_increaseLabel1;
306
+ var _props_addLabel, _props_increaseLabel1;
302
307
  return <view className={`${control.className} g9-stepper--add${props.block ? ' g9-stepper--block' : ''}`} {...control.idProps} style={control.rootStyle({
303
308
  height: `${h}px`,
304
309
  borderRadius: `${h / 2}px`
305
- })} accessibility-element={true} accessibility-traits="button" accessibility-label={'string' == typeof props.collapsedAtMin ? props.collapsedAtMin : null != (_props_increaseLabel1 = props.increaseLabel) ? _props_increaseLabel1 : '+'} bindtap={plus}>
306
- <G9Icon icon="plus" size={16} color="var(--g9-on-primary)"/>
310
+ })} accessibility-element={true} accessibility-traits="button" accessibility-label={null != (_props_addLabel = props.addLabel) ? _props_addLabel : 'string' == typeof props.collapsedAtMin ? props.collapsedAtMin : null != (_props_increaseLabel1 = props.increaseLabel) ? _props_increaseLabel1 : '+'} {...props.busy ? {
311
+ 'accessibility-status': 'busy'
312
+ } : {}} bindtap={props.busy ? void 0 : plus}>
313
+ {props.busy ? <G9ActivityIndicator running={true} size={16} color="var(--g9-on-primary)"/> : <G9Icon icon="plus" size={16} color="var(--g9-on-primary)"/>}
307
314
  {'string' == typeof props.collapsedAtMin ? <text className="g9-stepper__add-text">{props.collapsedAtMin}</text> : null}
308
315
  </view>;
309
316
  }
@@ -322,19 +329,22 @@ function G9Stepper(props) {
322
329
  ...tray ? {
323
330
  borderRadius: `${btn / 2}px`
324
331
  } : {}
325
- }} accessibility-element={true} accessibility-traits="button" accessibility-label={removes && void 0 !== props.removeLabel ? props.removeLabel : null != (_props_decreaseLabel = props.decreaseLabel) ? _props_decreaseLabel : '−'} bindtap={minus}>
332
+ }} accessibility-element={true} accessibility-traits="button" accessibility-label={removes && void 0 !== props.removeLabel ? props.removeLabel : null != (_props_decreaseLabel = props.decreaseLabel) ? _props_decreaseLabel : '−'} bindtap={props.busy ? void 0 : minus}>
326
333
  <G9Icon icon={removes ? 'delete' : 'minus'} size={16} color="var(--g9-text-primary)"/>
327
334
  </view>
328
- <text className={`g9-stepper__value${tray ? ' g9-stepper__value--tray' : ''}`} accessibility-label={'function' == typeof props.valueLabel ? props.valueLabel(value) : null != (_props_valueLabel = props.valueLabel) ? _props_valueLabel : text1}>
329
- {text1}
335
+ <text className={`g9-stepper__value${tray ? ' g9-stepper__value--tray' : ''}`} accessibility-label={'function' == typeof props.valueLabel ? props.valueLabel(value) : null != (_props_valueLabel = props.valueLabel) ? _props_valueLabel : text1} {...props.busy ? {
336
+ 'accessibility-status': 'busy'
337
+ } : {}}>
338
+ {props.busy ? '' : text1}
330
339
  </text>
340
+ {props.busy ? <G9ActivityIndicator running={true} size={16} color="var(--g9-text-primary)" className="g9-stepper__busy"/> : null}
331
341
  <view className={`g9-stepper__btn${tray ? ' g9-stepper__btn--tray' : ''}${value >= max ? ' g9-stepper__btn--off' : ''}`} {...g9IdProps(g9ChildId(props.id, 'Plus'))} style={{
332
342
  width: `${btn}px`,
333
343
  height: `${btn}px`,
334
344
  ...tray ? {
335
345
  borderRadius: `${btn / 2}px`
336
346
  } : {}
337
- }} accessibility-element={true} accessibility-traits="button" accessibility-label={null != (_props_increaseLabel = props.increaseLabel) ? _props_increaseLabel : '+'} bindtap={plus}>
347
+ }} accessibility-element={true} accessibility-traits="button" accessibility-label={null != (_props_increaseLabel = props.increaseLabel) ? _props_increaseLabel : '+'} bindtap={props.busy ? void 0 : plus}>
338
348
  <G9Icon icon="plus" size={16} color="var(--g9-text-primary)"/>
339
349
  </view>
340
350
  </view>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@g9tm/lynxcontrols",
3
- "version": "2.5.6",
3
+ "version": "2.5.7",
4
4
  "description": "ReactLynx controls and overlay infrastructure: provider/host, sheets, popups, toasts, fields, buttons, pickers, tab view, tab bar, edge panel, swipe rows.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -214,7 +214,7 @@
214
214
  "build": "rslib build"
215
215
  },
216
216
  "dependencies": {
217
- "@g9tm/lynxcontrols-foundation": "2.5.6"
217
+ "@g9tm/lynxcontrols-foundation": "2.5.7"
218
218
  },
219
219
  "peerDependencies": {
220
220
  "@lynx-js/react": ">=0.129.3 <0.130.0",
@@ -39,7 +39,7 @@ Generated from the installed packages' catalogs (`<package>/catalog`): one line
39
39
  - `@g9tm/lynxcontrols/expander`: G9Expander → `components/expander.md`
40
40
  - `@g9tm/lynxcontrols/fields`: G9Editor, G9FormField, G9NumberEntry, G9NumPad, G9OutlinedField, G9PinEntry, G9SearchEntry, G9TagEntry, G9TextEntry, G9TimeEntry → `components/fields.md`
41
41
  - `@g9tm/lynxcontrols/header`: G9AppBar → `components/header.md`
42
- - `@g9tm/lynxcontrols/host`: G9Host, G9PageLoadingOverlay → `components/host.md`
42
+ - `@g9tm/lynxcontrols/host`: G9CarryContexts, G9Host, G9PageLoadingOverlay → `components/host.md`
43
43
  - `@g9tm/lynxcontrols/icon`: G9Art, G9Icon, G9IconSlot, G9Swatch → `components/icon.md`
44
44
  - `@g9tm/lynxcontrols/layout`: G9ActionRow, G9Bento, G9Card, G9Columns, G9HScroll, G9Page, G9PlaceScroll, G9SaveBar, G9ScrollSpyBar, G9Section, G9SectionHeader, G9SplitPane, G9UnsavedBar → `components/layout-1.md`, `components/layout-2.md`
45
45
  - `@g9tm/lynxcontrols/list`: G9DragList, G9ListRow, G9Pager, G9PullToRefresh, G9SettingsGroup, G9SwitchRow, G9VirtualList → `components/list.md`
@@ -69,7 +69,7 @@ Generated from the installed packages' catalogs (`<package>/catalog`): one line
69
69
 
70
70
  ## @g9tm/lynxcontrols-map
71
71
 
72
- - `@g9tm/lynxcontrols-map`: G9StaticMap → `components/map.md`
72
+ - `@g9tm/lynxcontrols-map`: G9Map, G9StaticMap → `components/map.md`
73
73
 
74
74
  ## @g9tm/lynxcontrols-media
75
75
 
@@ -61,7 +61,7 @@ Props:
61
61
  - `addText`: string
62
62
  - `onChange`: (qty: number) => void
63
63
  - `value`: number
64
- - `size?`: 'sm' | 'md'
64
+ - `size?`: 'sm' | 'md' | 'lg' = "md"
65
65
  - `disabled?`: boolean
66
66
  - `format?`: (qty: number) => void
67
67
  - `onAdd?`: (origin: { readonly x: number; readonly y: number; }) => void
@@ -25,14 +25,14 @@ Example: `<G9Editor />`
25
25
  A label above any control, a hint or an error below (SAC Field, G9Hub Field): for controls without a floating label.
26
26
 
27
27
  Props:
28
- - `label`: string
28
+ - `label?`: string
29
29
  - `children?`: ReactNode
30
30
  - `hint?`: string
31
31
  - `aside?`: ReactNode
32
32
  - `error?`: string
33
33
  - `required?`: boolean
34
34
 
35
- Example: `<G9FormField label="Label" />`
35
+ Example: `<G9FormField />`
36
36
 
37
37
  # G9NumberEntry
38
38
 
@@ -13,7 +13,7 @@ Props:
13
13
  - `disabled?`: boolean = false
14
14
  - `onBack?`: () => void
15
15
  - `backLabel?`: string
16
+ - `actionsGap?`: number = 2
16
17
  - `align?`: 'start' | 'center'
17
- - `backIcon?`: icon
18
18
 
19
19
  Example: `<G9AppBar />`
@@ -1,5 +1,16 @@
1
1
  # `@g9tm/lynxcontrols/host` (generated)
2
2
 
3
+ # G9CarryContexts
4
+
5
+ `import { G9CarryContexts } from '@g9tm/lynxcontrols/host';`
6
+
7
+ Carries React context into the nearest G9Host's layers: sheets, popups, toasts and menus then read `contexts` with their live values, though they render outside the page (SAC's tray sheet read «GuestContext missing» with
8
+
9
+ Props:
10
+ - `contexts`: object[]
11
+
12
+ Example: `<G9CarryContexts contexts={contexts} />`
13
+
3
14
  # G9Host
4
15
 
5
16
  `import { G9Host } from '@g9tm/lynxcontrols/host';`
@@ -30,7 +30,7 @@ Props:
30
30
  - `onPress?`: () => void
31
31
  - `disabled?`: boolean = false
32
32
  - `iconTone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral' = "neutral"
33
- - `hint?`: string
33
+ - `pressFeedback?`: 'none' | 'tint' = "none"
34
34
 
35
35
  Example: `<G9ListRow title="Label" />`
36
36
 
@@ -93,7 +93,7 @@ Props:
93
93
  - `subtitle?`: string
94
94
  - `disabled?`: boolean = false
95
95
  - `iconTone?`: 'primary' | 'info' | 'success' | 'warning' | 'error' | 'accent' | 'neutral' = "neutral"
96
- - `hint?`: string
96
+ - `pressFeedback?`: 'none' | 'tint' = "none"
97
97
 
98
98
  Example: `<G9SwitchRow checked onCheckedChange={() => {}} title="Label" />`
99
99
 
@@ -1,5 +1,23 @@
1
1
  # `@g9tm/lynxcontrols-map` (generated)
2
2
 
3
+ # G9Map
4
+
5
+ `import { G9Map } from '@g9tm/lynxcontrols-map';`
6
+
7
+ The interactive tile map: drag, pinch, tap, tools; pins, lines (with casing) and zones as on G9StaticMap.
8
+
9
+ Props:
10
+ - `attribution`: string
11
+ - `height`: number
12
+ - `tileTemplate`: string
13
+ - `onPress?`: (at: G9LatLng) => void
14
+ - `onLocate?`: () => void
15
+ - `onPinPress?`: (pin: G9MapPin) => void
16
+ - `onViewChange?`: (view: G9MapCamera, reason: G9MapViewReason) => void
17
+ - `fitPadding?`: number = 36
18
+
19
+ Example: `<G9Map attribution="attribution" height={1} tileTemplate="tileTemplate" />`
20
+
3
21
  # G9StaticMap
4
22
 
5
23
  `import { G9StaticMap } from '@g9tm/lynxcontrols-map';`
@@ -11,9 +29,9 @@ Props:
11
29
  - `height`: number
12
30
  - `tileTemplate`: string
13
31
  - `onPinPress?`: (pin: G9MapPin) => void
32
+ - `fitPadding?`: number = 36
14
33
  - `center?`: object
15
34
  - `fit?`: boolean | G9LatLng[]
16
35
  - `pins?`: object[]
17
- - `shapes?`: object[]
18
36
 
19
37
  Example: `<G9StaticMap attribution="attribution" height={1} tileTemplate="tileTemplate" />`
@@ -7,14 +7,14 @@
7
7
  One- or two-thumb slider (MAUI `G9RangeSlider`) on lynx-ui `SliderRoot`: lynx-ui owns the gesture (main-thread drag, thumbs that meet but never cross); G9 maps minimum/maximum/step onto its normalized value, snaps with t
8
8
 
9
9
  Props:
10
+ - `label?`: string
10
11
  - `value?`: number
11
12
  - `onValueChange?`: (value: number) => void
12
13
  - `disabled?`: boolean
13
14
  - `mode?`: 'single' | 'range' = "range"
15
+ - `formatValue?`: (value: number) => void
14
16
  - `onRangeChange?`: (start: number, end: number) => void
15
17
  - `onValueChanged?`: (value: number) => void
16
- - `defaultValue?`: number
17
- - `bands?`: object[]
18
18
 
19
19
  Example: `<G9RangeSlider />`
20
20
 
@@ -87,7 +87,7 @@ Example: `<G9TopBar />`
87
87
 
88
88
  `import { G9UpdateBar } from '@g9tm/lynxcontrols/shell';`
89
89
 
90
- «A new version is ready — restart» (SAC UpdatePrompt, live updates): a slim bar that slides down when shown.
90
+ «A new version is ready — restart» (SAC UpdatePrompt, live updates): a slim bar with the action and an optional dismissal.
91
91
 
92
92
  Props:
93
93
  - `actionText`: string
@@ -96,5 +96,6 @@ Props:
96
96
  - `text`: string
97
97
  - `onDismiss?`: () => void
98
98
  - `dismissText?`: string
99
+ - `placement?`: 'overlay' | 'inline'
99
100
 
100
101
  Example: `<G9UpdateBar actionText="actionText" onAction={() => {}} shown text="Label" />`
@@ -13,8 +13,8 @@ Props:
13
13
  - `disabled?`: boolean = false
14
14
  - `onCheckedChange?`: (checked: boolean) => void
15
15
  - `onIndeterminateChange?`: (indeterminate: boolean) => void
16
+ - `labelGap?`: number = 2
16
17
  - `defaultChecked?`: boolean
17
- - `defaultIndeterminate?`: boolean
18
18
 
19
19
  Example: `<G9CheckBox text="I agree" checked={agree} onCheckedChange={setAgree} />`
20
20
 
@@ -120,9 +120,9 @@ Props:
120
120
  - `onChange?`: (value: number) => void
121
121
  - `disabled?`: boolean = false
122
122
  - `format?`: (value: number) => void
123
+ - `addLabel?`: string
123
124
  - `decreaseLabel?`: string
124
125
  - `increaseLabel?`: string
125
- - `removeLabel?`: string = "decreaseLabel"
126
126
 
127
127
  Example: `<G9Stepper />`
128
128
 
@@ -6,9 +6,10 @@
6
6
  > **The same holds for React context.** A layer is a sibling of the page under `G9Host`, so a provider you mount
7
7
  > INSIDE `G9Host` (around the page) does not reach a sheet's body: React's context hook there returns the default (SAC:
8
8
  > a tray sheet's own guest hook threw «GuestContext missing» and the sheet never opened). Mount app providers ABOVE
9
- > `G9Host` (between `G9Provider` and `G9Host`). A provider that itself needs `useG9Host` must stay below: then read its
10
- > value where the sheet is opened and pass it in (a prop, or re-provide it around the sheet's content). A body that
11
- > only receives values from its opener is safe; one that reads context itself is not.
9
+ > `G9Host` (between `G9Provider` and `G9Host`). A provider that itself needs `useG9Host` must stay below: put
10
+ > `<G9CarryContexts contexts={[GuestContext, CartContext]} />` (`/host`, 2.5.7) under those providers, and every
11
+ > layer (sheets, popups, toasts, menus) reads them with their live values. Keep that list the same from render to
12
+ > render. A body that only receives values from its opener is safe either way.
12
13
 
13
14
  ```tsx
14
15
  import { G9Host } from '@g9tm/lynxcontrols/host';