@webority/ui-react 0.178.4 → 0.179.0

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.
@@ -2,7 +2,7 @@
2
2
  "kind": "WeborityWeb",
3
3
  "library": {
4
4
  "name": "@webority/ui-react",
5
- "version": "0.178.4"
5
+ "version": "0.179.0"
6
6
  },
7
7
  "rendererProtocolVersion": 14,
8
8
  "platform": "Web",
@@ -25,7 +25,7 @@
25
25
  "name": "closeLabel",
26
26
  "type": "string",
27
27
  "required": false,
28
- "description": "The label every trigger carries as data-close-label, for a stylesheet to show while the pane is open. Omitted when unset."
28
+ "description": "The label every trigger carries as data-close-label, for a stylesheet to show while the pane is open; under numbered the open toggle shows it as a pill. Omitted when unset."
29
29
  },
30
30
  {
31
31
  "name": "id",
@@ -85,15 +85,22 @@
85
85
  "required": false,
86
86
  "description": "The keys of the panes that start open. It replaces each item's own open flag and is read again when its content changes. Without multiple only the first key opens."
87
87
  },
88
+ {
89
+ "name": "openLabel",
90
+ "type": "string",
91
+ "required": false,
92
+ "description": "Under numbered, the label the closed toggle shows beside its plus, making it a pill. Unset, the closed toggle stays a round plus button."
93
+ },
88
94
  {
89
95
  "name": "variant",
90
96
  "type": "enum",
91
97
  "enum": [
92
98
  "bordered",
93
- "flat"
99
+ "flat",
100
+ "numbered"
94
101
  ],
95
102
  "required": false,
96
- "description": "bordered (default) | flat: a text toggle with a leading chevron and an optional count chip, for a section header rather than a card of questions.",
103
+ "description": "bordered (default) | flat: a text toggle with a leading chevron and an optional count chip, for a section header rather than a card of questions | numbered: a numbered FAQ list between divider lines with a round plus toggle that turns primary while open, drawn as a pill with openLabel closed and closeLabel open.",
97
104
  "default": "bordered"
98
105
  }
99
106
  ],
@@ -1816,10 +1823,11 @@
1816
1823
  "glow",
1817
1824
  "none",
1818
1825
  "roll",
1819
- "sheen"
1826
+ "sheen",
1827
+ "wave"
1820
1828
  ],
1821
1829
  "required": false,
1822
- "description": "Hover animation; omit for the default sheen. roll rolls the label up and slides a trailing rightIcon through a round well."
1830
+ "description": "Hover animation; omit for the default sheen. roll rolls the label up and slides a trailing rightIcon through a round well. wave fills the button from below with its hover colour."
1823
1831
  },
1824
1832
  {
1825
1833
  "name": "block",
@@ -1848,6 +1856,36 @@
1848
1856
  "required": false,
1849
1857
  "description": "Render as a button-styled link (an <a href>) instead of a <button>; matches Razor <app-button href>."
1850
1858
  },
1859
+ {
1860
+ "name": "iconBg",
1861
+ "type": "enum",
1862
+ "enum": [
1863
+ "danger",
1864
+ "info",
1865
+ "neutral",
1866
+ "primary",
1867
+ "success",
1868
+ "warning",
1869
+ "white"
1870
+ ],
1871
+ "required": false,
1872
+ "description": "The colour of the round well behind a pinned or rolling rightIcon. Needs rightIcon with pinRightIcon or animation roll; anything else throws."
1873
+ },
1874
+ {
1875
+ "name": "iconColor",
1876
+ "type": "enum",
1877
+ "enum": [
1878
+ "danger",
1879
+ "info",
1880
+ "neutral",
1881
+ "primary",
1882
+ "success",
1883
+ "warning",
1884
+ "white"
1885
+ ],
1886
+ "required": false,
1887
+ "description": "The colour of a pinned or rolling rightIcon inside its well, with the same rule as iconBg."
1888
+ },
1851
1889
  {
1852
1890
  "name": "iconVariant",
1853
1891
  "type": "enum",
@@ -16961,6 +16999,13 @@
16961
16999
  "description": "The accessible name of the navigation landmark.",
16962
17000
  "default": "Main"
16963
17001
  },
17002
+ {
17003
+ "name": "flush",
17004
+ "type": "boolean",
17005
+ "required": false,
17006
+ "description": "Drops the entries' side padding so the first label lines up with the content edge. Only with variant underline.",
17007
+ "default": false
17008
+ },
16964
17009
  {
16965
17010
  "name": "items",
16966
17011
  "type": "array",
@@ -17043,6 +17088,18 @@
17043
17088
  "required": false,
17044
17089
  "description": "The entries, left to right. An entry with links is a button that opens them; without links it is a link to its target.",
17045
17090
  "default": []
17091
+ },
17092
+ {
17093
+ "name": "variant",
17094
+ "type": "enum",
17095
+ "enum": [
17096
+ "pills",
17097
+ "text",
17098
+ "underline"
17099
+ ],
17100
+ "required": false,
17101
+ "description": "How an entry shows hover and the current page: pills fills the entry, underline draws a line under it, text colours its label.",
17102
+ "default": "pills"
17046
17103
  }
17047
17104
  ],
17048
17105
  "itemsTakeAction": [
@@ -28784,6 +28841,20 @@
28784
28841
  "description": "A class added to the control.",
28785
28842
  "default": ""
28786
28843
  },
28844
+ {
28845
+ "name": "clearLabel",
28846
+ "type": "string",
28847
+ "required": false,
28848
+ "description": "Replaces the built-in English text, for other languages.",
28849
+ "default": "Clear"
28850
+ },
28851
+ {
28852
+ "name": "clearable",
28853
+ "type": "boolean",
28854
+ "required": false,
28855
+ "description": "Shows a clear button while the field has text. A read-only, disabled or loading field shows none.",
28856
+ "default": false
28857
+ },
28787
28858
  {
28788
28859
  "name": "controlOnly",
28789
28860
  "type": "boolean",
@@ -28817,6 +28888,18 @@
28817
28888
  "description": "A class added to the wrapping field.",
28818
28889
  "default": ""
28819
28890
  },
28891
+ {
28892
+ "name": "floatingLabel",
28893
+ "type": "enum",
28894
+ "enum": [
28895
+ "above",
28896
+ "border",
28897
+ "off"
28898
+ ],
28899
+ "required": false,
28900
+ "description": "Where the label rests. Off keeps it above the field. Border sits it inside on the first line, then slides it onto the top border once the field is focused or filled. Above rests it above the box, clear of the border.",
28901
+ "default": "off"
28902
+ },
28820
28903
  {
28821
28904
  "name": "help",
28822
28905
  "type": "node",
@@ -28848,6 +28931,12 @@
28848
28931
  "required": false,
28849
28932
  "description": "The label above the field."
28850
28933
  },
28934
+ {
28935
+ "name": "leftIcon",
28936
+ "type": "icon",
28937
+ "required": false,
28938
+ "description": "A leading icon on the first line, given as a semantic icon name. A floating label takes its room, so it is not drawn with one."
28939
+ },
28851
28940
  {
28852
28941
  "name": "loading",
28853
28942
  "type": "boolean",
@@ -28940,6 +29029,16 @@
28940
29029
  "type": "stringOrNumber",
28941
29030
  "required": false,
28942
29031
  "description": "The controlled value, paired with onChange."
29032
+ },
29033
+ {
29034
+ "name": "variant",
29035
+ "type": "enum",
29036
+ "enum": [
29037
+ "bare",
29038
+ "underline"
29039
+ ],
29040
+ "required": false,
29041
+ "description": "Bare drops the border and the fill, for inline editing. Underline keeps only a line under the field, which takes the same hover and focus colours as the boxed field."
28943
29042
  }
28944
29043
  ],
28945
29044
  "itemsTakeAction": [],
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "name": "webority-web",
3
- "version": "0.178.4",
3
+ "version": "0.179.0",
4
4
  "platform": "Web",
5
5
  "kitModuleVersion": 2,
6
6
  "rendererProtocolVersion": 14,
7
7
  "library": {
8
8
  "name": "@webority/ui-react",
9
- "version": "0.178.4"
9
+ "version": "0.179.0"
10
10
  },
11
11
  "files": {
12
12
  "manifest.json": {
13
- "sha256": "eaa6f0c07b4dd922d6456eaa58520119e0b701dc23039e04caf5f8c250fbb4d6",
14
- "bytes": 1141267
13
+ "sha256": "773fd0a6681d251895753abcbdbe2eeac39482b48616d9d6138b6c9050e7283a",
14
+ "bytes": 1144990
15
15
  },
16
16
  "kit.js": {
17
- "sha256": "3d71b8aa31f9e6782366874bb0655aa548b08ca60463ae8d3534d01efb4dd54b",
18
- "bytes": 10157396
17
+ "sha256": "855ebd1d1422e0a8208ba56c4356cdf0f35fdaf0ddd45ac7577d7a5d15061785",
18
+ "bytes": 10162463
19
19
  },
20
20
  "kit.css": {
21
21
  "sha256": "13b14f71fb6ea024945f95cba617b4f1d49f44a65ba7c7ed05d2354805539ef6",
@@ -1 +1 @@
1
- import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./AppIcon.js";import n from"./assertValidValue.js";import r from"./warnUnknownProps.js";import{useEffect as i,useId as a,useRef as o,useState as s}from"react";import{jsx as c,jsxs as l}from"react/jsx-runtime";var u=[`bordered`,`flat`];function d(e,t,n){if(Array.isArray(n)){let e=n.map(String);return new Set(t?e:e.slice(0,1))}let r=e.map((e,t)=>({item:e,key:e.key??String(t)})).filter(({item:e})=>e.open).map(({key:e})=>e);return new Set(t?r:r.slice(0,1))}function f(f){let{marker:p,props:m}=e(`AppAccordion`,f),{items:h=[],multiple:g=!1,openItems:_,variant:v=`bordered`,id:y,closeLabel:b,className:x=``,...S}=m;r(`AppAccordion`,S),n(`AppAccordion`,`variant`,v,u);let C=v===`flat`,w=/* @__PURE__ */ c(`span`,{className:`wui-accordion-icon`,children:/* @__PURE__ */ c(t,{name:`chevron-down`,size:18})}),T=a(),E=y||T,[D,O]=s(()=>d(h,g,_)),k=Array.isArray(_)?_.map(String).join(`\0`):null,A=o({items:h,openItems:_});i(()=>{A.current={items:h,openItems:_}}),i(()=>{k!==null&&O(d(A.current.items,g,A.current.openItems))},[k,g]);let j=(e,t)=>e.key??String(t),M=e=>{O(t=>{let n=new Set(g?t:[]);return t.has(e)?n.delete(e):n.add(e),n})};return/* @__PURE__ */ c(`div`,{className:`wui-accordion${C?` wui-accordion-flat`:``}${x?` ${x}`:``}`,...p,...S,children:h.map((e,t)=>{let n=j(e,t),r=D.has(n),i=`${E}-${t}`,a=`${i}-q`;return/* @__PURE__ */ l(`div`,{className:`wui-accordion-item${r?` open`:``}`,children:[/* @__PURE__ */ l(`button`,{type:`button`,className:`wui-accordion-trigger`,id:a,"aria-expanded":r,"aria-controls":i,"data-close-label":b,onClick:()=>M(n),children:[C?w:null,e.title,e.count==null?null:/* @__PURE__ */ c(`span`,{className:`wui-accordion-count`,children:e.count}),C?null:w]}),/* @__PURE__ */ c(`section`,{className:`wui-accordion-panel`,id:i,"aria-labelledby":a,inert:!r,"aria-hidden":!r||void 0,children:/* @__PURE__ */ c(`div`,{className:`wui-accordion-body`,children:e.content})})]},n)})})}export{f as default};
1
+ import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./AppIcon.js";import n from"./assertValidValue.js";import r from"./warnUnknownProps.js";import{useEffect as i,useId as a,useRef as o,useState as s}from"react";import{jsx as c,jsxs as l}from"react/jsx-runtime";var u=[`bordered`,`flat`,`numbered`];function d(e,t,n){if(Array.isArray(n)){let e=n.map(String);return new Set(t?e:e.slice(0,1))}let r=e.map((e,t)=>({item:e,key:e.key??String(t)})).filter(({item:e})=>e.open).map(({key:e})=>e);return new Set(t?r:r.slice(0,1))}function f(f){let{marker:p,props:m}=e(`AppAccordion`,f),{items:h=[],multiple:g=!1,openItems:_,variant:v=`bordered`,id:y,closeLabel:b,openLabel:x,className:S=``,...C}=m;r(`AppAccordion`,C),n(`AppAccordion`,`variant`,v,u);let w=v===`flat`,T=v===`numbered`,E=T?/* @__PURE__ */ l(`span`,{className:`wui-accordion-icon`,"aria-hidden":`true`,children:[/* @__PURE__ */ l(`span`,{className:`wui-accordion-icon-closed`,children:[/* @__PURE__ */ c(t,{name:`plus`,size:18}),x?/* @__PURE__ */ c(`span`,{className:`wui-accordion-open-label`,children:x}):null]}),/* @__PURE__ */ l(`span`,{className:`wui-accordion-icon-open`,children:[/* @__PURE__ */ c(t,{name:`minus`,size:18}),b?/* @__PURE__ */ c(`span`,{className:`wui-accordion-close-label`,children:b}):null]})]}):/* @__PURE__ */ c(`span`,{className:`wui-accordion-icon`,children:/* @__PURE__ */ c(t,{name:`chevron-down`,size:18})}),D=w?` wui-accordion-flat`:T?` wui-accordion-numbered`:``,O=a(),k=y||O,[A,j]=s(()=>d(h,g,_)),M=Array.isArray(_)?_.map(String).join(`\0`):null,N=o({items:h,openItems:_});i(()=>{N.current={items:h,openItems:_}}),i(()=>{M!==null&&j(d(N.current.items,g,N.current.openItems))},[M,g]);let P=(e,t)=>e.key??String(t),F=e=>{j(t=>{let n=new Set(g?t:[]);return t.has(e)?n.delete(e):n.add(e),n})};return/* @__PURE__ */ c(`div`,{className:`wui-accordion${D}${S?` ${S}`:``}`,...p,...C,children:h.map((e,t)=>{let n=P(e,t),r=A.has(n),i=`${k}-${t}`,a=`${i}-q`;return/* @__PURE__ */ l(`div`,{className:`wui-accordion-item${r?` open`:``}`,children:[/* @__PURE__ */ l(`button`,{type:`button`,className:`wui-accordion-trigger`,id:a,"aria-expanded":r,"aria-controls":i,"data-close-label":b,onClick:()=>F(n),children:[w?E:null,e.title,e.count==null?null:/* @__PURE__ */ c(`span`,{className:`wui-accordion-count`,children:e.count}),w?null:E]}),/* @__PURE__ */ c(`section`,{className:`wui-accordion-panel`,id:i,"aria-labelledby":a,inert:!r,"aria-hidden":!r||void 0,children:/* @__PURE__ */ c(`div`,{className:`wui-accordion-body`,children:e.content})})]},n)})})}export{f as default};
@@ -1 +1 @@
1
- import{buttonClass as e}from"../lib/buttonClass.js";import{shortcutAria as t,shortcutChip as n}from"../lib/shortcutChip.js";import{FILL_VARIANTS as r,TONES as i}from"../lib/vocabulary.js";import{splitMarkerProps as ee}from"../lib/wuiMarker.js";import{FormSubmitContext as te}from"./AppForm.js";import a from"./AppIcon.js";import o from"./assertValidValue.js";import ne from"./warnUnknownProps.js";import s from"./withTooltip.js";import{useContext as c,useRef as l,useState as re}from"react";import{jsx as u,jsxs as d}from"react/jsx-runtime";import{Button as ie}from"react-bootstrap";var f={sm:14,md:16,lg:20,xl:20},p=[`sheen`,`fill`,`expand`,`glow`,`roll`,`none`],m=[`rounded`,`pill`,`sharp`],h=[`button`,`submit`,`reset`],ae=/* @__PURE__ */ new Set([!0,!1,...Array.from({length:100},(e,t)=>t+1)]),oe={variant:null},se=[`linear`,`outline`,`bold`,`bulk`,`broken`,`twotone`],g=e=>e===`pill`||e===`sharp`?`wui-btn-shape-${e}`:``;function ce(e){return/* @__PURE__ */ d(`span`,{className:`wui-btn-roll`,children:[/* @__PURE__ */ u(`span`,{className:`wui-btn-roll__a`,children:e}),/* @__PURE__ */ u(`span`,{className:`wui-btn-roll__b`,"aria-hidden":`true`,children:e})]})}function le(e,t,n,r){if(!e)return null;let i=n=>/* @__PURE__ */ u(a,{name:e,size:f[t]??f.md,variant:r,className:n});return/* @__PURE__ */ d(`span`,{className:n?`wui-btn-roll-ico wui-btn-pin-icon`:`wui-btn-roll-ico ms-2`,"aria-hidden":`true`,children:[i(),i(`wui-btn-roll-ico__next`)]})}function _(e,t,n,r){if(!e)return null;let i=t===`left`?`me-2`:`ms-2`;return/* @__PURE__ */ u(a,{name:e,size:f[n]??f.md,variant:r,className:i})}function v(e,t,n){return e?/* @__PURE__ */ u(`span`,{className:`wui-btn-pin-icon`,"aria-hidden":`true`,children:/* @__PURE__ */ u(a,{name:e,size:f[t]??f.md,variant:n})}):null}function y(a){let{marker:y,props:ue}=ee(`AppButton`,a),{children:b,tone:x=`primary`,variant:S=`solid`,size:C=`md`,type:w=`button`,loading:T=!1,disabled:E=!1,block:D=!1,leftIcon:O=null,rightIcon:k=null,href:A,static:j=!1,tooltip:M,tooltipPlacement:N,shortcut:P,animation:F,pinRightIcon:I=!1,shape:L=`rounded`,iconVariant:R,className:z=``,onClick:B,onClickCapture:V,vibrate:H,...U}=ue,[de,W]=re(!1),G=l(!1),K=c(te),fe=K!==null&&w===`submit`&&K.submitting,q=T||de||fe;ne(`AppButton`,U),o(`AppButton`,`vibrate`,H,ae);let J=H===!0?10:typeof H==`number`&&Number.isInteger(H)&&H>=1&&H<=100?H:0;F!==void 0&&o(`AppButton`,`animation`,F,p);let Y=F===`roll`&&!j,X=I&&k!=null&&k!==``&&!j&&!q;if(o(`AppButton`,`tone`,x,i),o(`AppButton`,`variant`,S,r),o(`AppButton`,`size`,C,Object.keys(f)),o(`AppButton`,`shape`,L,m),o(`AppButton`,`type`,w,h),R!==void 0&&o(`AppButton`,`iconVariant`,R,se),j){let t=[`btn`,e(x,S),C===`sm`?`btn-sm`:C===`lg`?`btn-lg`:C===`xl`?`btn-xl`:``,D?`w-100`:``,g(L),`btn-static`,z].filter(Boolean).join(` `);return s(/* @__PURE__ */ d(`span`,{className:t,...y,...U,children:[_(O,`left`,C,R),b,_(k,`right`,C,R)]}),M,N)}let pe=[D?`w-100`:``,q?`is-loading`:``,e(x,S),C===`xl`?`btn-xl`:``,F&&p.includes(F)?`btn-anim-${F}`:``,X?`wui-btn-pin-end`:``,g(L),z].filter(Boolean).join(` `),Z=(U.as===void 0||U.as===`button`)&&A===void 0&&U.to===void 0,me=Z?{}:{role:void 0,tabIndex:E||q?-1:void 0},{as:he,...ge}=U,_e={as:he},Q=M!=null&&M!==``,ve=e=>{if(G.current)return;J&&!E&&!q&&navigator.vibrate?.(J);let t=B?.(e);if(!(t instanceof Promise))return;G.current=!0,W(!0);let n=()=>{G.current=!1,W(!1)};t.then(n,e=>{throw n(),e})},$=/* @__PURE__ */ d(ie,{type:Z?w:void 0,href:A,...oe,...C===`sm`||C===`lg`?{size:C}:null,disabled:E||q,"aria-busy":q||void 0,"aria-keyshortcuts":t(P),"data-wui-vibrate":J||void 0,className:pe||void 0,onClick:ve,onClickCapture:E||q?void 0:V,...me,...y,..._e,...ge,children:[q&&/* @__PURE__ */ u(`span`,{className:`spinner-border spinner-border-sm me-2`,"aria-hidden":`true`}),!q&&_(O,`left`,C,R),Y?ce(b):b,!q&&(Y?le(k,C,X,R):X?v(k,C,R):_(k,`right`,C,R)),!Q&&n(P)]});return s(E&&Q?/* @__PURE__ */ u(`span`,{className:`d-inline-block`,tabIndex:0,children:$}):$,M,N,P)}export{y as default};
1
+ import{buttonClass as e}from"../lib/buttonClass.js";import{shortcutAria as t,shortcutChip as n}from"../lib/shortcutChip.js";import{FILL_VARIANTS as r,TONES as i}from"../lib/vocabulary.js";import{splitMarkerProps as a}from"../lib/wuiMarker.js";import{FormSubmitContext as ee}from"./AppForm.js";import o from"./AppIcon.js";import s from"./assertValidValue.js";import te from"./warnUnknownProps.js";import c from"./withTooltip.js";import{useContext as ne,useRef as l,useState as re}from"react";import{jsx as u,jsxs as d}from"react/jsx-runtime";import{Button as f}from"react-bootstrap";var p={sm:14,md:16,lg:20,xl:20},m=[`sheen`,`fill`,`expand`,`glow`,`roll`,`wave`,`none`],ie=[`rounded`,`pill`,`sharp`],ae=[`button`,`submit`,`reset`],oe=/* @__PURE__ */ new Set([!0,!1,...Array.from({length:100},(e,t)=>t+1)]),se={variant:null},h=[`linear`,`outline`,`bold`,`bulk`,`broken`,`twotone`],g=[`primary`,`success`,`warning`,`danger`,`info`,`neutral`,`white`],_=e=>e===`pill`||e===`sharp`?`wui-btn-shape-${e}`:``;function ce(e){return/* @__PURE__ */ d(`span`,{className:`wui-btn-roll`,children:[/* @__PURE__ */ u(`span`,{className:`wui-btn-roll__a`,children:e}),/* @__PURE__ */ u(`span`,{className:`wui-btn-roll__b`,"aria-hidden":`true`,children:e})]})}function le(e,t,n,r){if(!e)return null;let i=n=>/* @__PURE__ */ u(o,{name:e,size:p[t]??p.md,variant:r,className:n});return/* @__PURE__ */ d(`span`,{className:n?`wui-btn-roll-ico wui-btn-pin-icon`:`wui-btn-roll-ico ms-2`,"aria-hidden":`true`,children:[i(),i(`wui-btn-roll-ico__next`)]})}function v(e,t,n,r){if(!e)return null;let i=t===`left`?`me-2`:`ms-2`;return/* @__PURE__ */ u(o,{name:e,size:p[n]??p.md,variant:r,className:i})}function ue(e,t,n){return e?/* @__PURE__ */ u(`span`,{className:`wui-btn-pin-icon`,"aria-hidden":`true`,children:/* @__PURE__ */ u(o,{name:e,size:p[t]??p.md,variant:n})}):null}function y(o){let{marker:y,props:de}=a(`AppButton`,o),{children:b,tone:x=`primary`,variant:S=`solid`,size:C=`md`,type:w=`button`,loading:fe=!1,disabled:T=!1,block:E=!1,leftIcon:D=null,rightIcon:O=null,href:k,static:A=!1,tooltip:j,tooltipPlacement:M,shortcut:N,animation:P,pinRightIcon:F=!1,shape:I=`rounded`,iconVariant:L,iconBg:R,iconColor:z,className:B=``,onClick:V,onClickCapture:pe,vibrate:H,...U}=de,[me,W]=re(!1),G=l(!1),K=ne(ee),he=K!==null&&w===`submit`&&K.submitting,q=fe||me||he;te(`AppButton`,U),s(`AppButton`,`vibrate`,H,oe);let J=H===!0?10:typeof H==`number`&&Number.isInteger(H)&&H>=1&&H<=100?H:0;P!==void 0&&s(`AppButton`,`animation`,P,m);let Y=P===`roll`&&!A,X=F&&O!=null&&O!==``&&!A&&!q;if(s(`AppButton`,`tone`,x,i),s(`AppButton`,`variant`,S,r),s(`AppButton`,`size`,C,Object.keys(p)),s(`AppButton`,`shape`,I,ie),s(`AppButton`,`type`,w,ae),L!==void 0&&s(`AppButton`,`iconVariant`,L,h),R!==void 0&&s(`AppButton`,`iconBg`,R,g),z!==void 0&&s(`AppButton`,`iconColor`,z,g),(R!==void 0||z!==void 0)&&(!O||!(F||P===`roll`)))throw Error(`<AppButton> iconBg and iconColor need rightIcon with pinRightIcon or animation="roll", which draw the icon well.`);if(A){let t=[`btn`,e(x,S),C===`sm`?`btn-sm`:C===`lg`?`btn-lg`:C===`xl`?`btn-xl`:``,E?`w-100`:``,_(I),`btn-static`,B].filter(Boolean).join(` `);return c(/* @__PURE__ */ d(`span`,{className:t,...y,...U,children:[v(D,`left`,C,L),b,v(O,`right`,C,L)]}),j,M)}let ge=[E?`w-100`:``,q?`is-loading`:``,e(x,S),C===`xl`?`btn-xl`:``,P&&m.includes(P)?`btn-anim-${P}`:``,X?`wui-btn-pin-end`:``,R?`wui-btn-icon-bg-${R}`:``,z?`wui-btn-icon-color-${z}`:``,_(I),B].filter(Boolean).join(` `),Z=(U.as===void 0||U.as===`button`)&&k===void 0&&U.to===void 0,_e=Z?{}:{role:void 0,tabIndex:T||q?-1:void 0},{as:ve,...ye}=U,be={as:ve},Q=j!=null&&j!==``,xe=e=>{if(G.current)return;J&&!T&&!q&&navigator.vibrate?.(J);let t=V?.(e);if(!(t instanceof Promise))return;G.current=!0,W(!0);let n=()=>{G.current=!1,W(!1)};t.then(n,e=>{throw n(),e})},$=/* @__PURE__ */ d(f,{type:Z?w:void 0,href:k,...se,...C===`sm`||C===`lg`?{size:C}:null,disabled:T||q,"aria-busy":q||void 0,"aria-keyshortcuts":t(N),"data-wui-vibrate":J||void 0,className:ge||void 0,onClick:xe,onClickCapture:T||q?void 0:pe,..._e,...y,...be,...ye,children:[q&&/* @__PURE__ */ u(`span`,{className:`spinner-border spinner-border-sm me-2`,"aria-hidden":`true`}),!q&&v(D,`left`,C,L),Y?ce(b):b,!q&&(Y?le(O,C,X,L):X?ue(O,C,L):v(O,`right`,C,L)),!Q&&n(N)]});return c(T&&Q?/* @__PURE__ */ u(`span`,{className:`d-inline-block`,tabIndex:0,children:$}):$,j,M,N)}export{y as default};
@@ -1 +1 @@
1
- import{linkTarget as e}from"../lib/linkTarget.js";import{TargetLink as t}from"../lib/TargetLink.js";import n from"../lib/useElementEntry.js";import r from"../lib/useWuiText.js";import{splitMarkerProps as i}from"../lib/wuiMarker.js";import a from"./renderIconProp.js";import o from"./warnUnknownProps.js";import{Fragment as s,useId as c}from"react";import{jsx as l,jsxs as u}from"react/jsx-runtime";import{NAVIGATION_MENU_TEXT as d}from"@webority/ui-elements/text";var f=()=>import(`@webority/ui-elements/elements/navigation-menu`);function p(p){n(`wui-navigation-menu`,f);let m=r(`navigationMenu`,d),{marker:h,props:g}=i(`AppNavigationMenu`,p),{items:_=[],ariaLabel:v=m.ariaLabel,linkComponent:y,className:b=``,...x}=g;o(`AppNavigationMenu`,x);let S=c();return/* @__PURE__ */ l(`wui-navigation-menu`,{class:[`wui-nav-menu`,b].filter(Boolean).join(` `),...h,...x,children:/* @__PURE__ */ l(`nav`,{"aria-label":v,children:/* @__PURE__ */ l(`ul`,{className:`wui-nav-menu-list`,children:_.map((n,r)=>{let i=n.group&&n.group!==_[r-1]?.group?/* @__PURE__ */ l(`li`,{className:`wui-nav-menu-group`,role:`presentation`,children:n.group},`${n.key}-group`):null;if(!n.links?.length)return/* @__PURE__ */ u(s,{children:[i,/* @__PURE__ */ l(`li`,{className:`wui-nav-menu-item`,children:/* @__PURE__ */ l(t,{link:e(y,{href:n.to}),className:`wui-nav-menu-toplink`,"aria-current":n.current?`page`:void 0,children:n.label})})]},n.key);let o=`${S}-${n.key}`;return/* @__PURE__ */ u(s,{children:[i,/* @__PURE__ */ u(`li`,{className:`wui-nav-menu-item`,children:[/* @__PURE__ */ u(`button`,{type:`button`,className:n.current?`wui-nav-menu-trigger is-current`:`wui-nav-menu-trigger`,"aria-expanded":`false`,"aria-controls":o,"data-key":n.key,children:[n.label,a(`chevron-down`,{size:14,className:`wui-nav-menu-chevron`})]}),/* @__PURE__ */ l(`div`,{className:`wui-nav-menu-panel`,id:o,children:/* @__PURE__ */ l(`ul`,{className:`wui-nav-menu-links`,children:n.links.map(n=>/* @__PURE__ */ l(`li`,{children:/* @__PURE__ */ u(t,{link:e(y,{href:n.to}),className:`wui-nav-menu-link`,"aria-current":n.current?`page`:void 0,children:[a(n.icon,{size:18}),/* @__PURE__ */ u(`span`,{className:`wui-nav-menu-link-text`,children:[/* @__PURE__ */ l(`span`,{className:`wui-nav-menu-link-label`,children:n.label}),n.description?/* @__PURE__ */ l(`span`,{className:`wui-nav-menu-link-desc`,children:n.description}):null]})]})},n.key))})})]})]},n.key)})})})})}export{p as default};
1
+ import{linkTarget as e}from"../lib/linkTarget.js";import{TargetLink as t}from"../lib/TargetLink.js";import n from"../lib/useElementEntry.js";import r from"../lib/useWuiText.js";import{splitMarkerProps as i}from"../lib/wuiMarker.js";import a from"./assertValidValue.js";import o from"./renderIconProp.js";import s from"./warnUnknownProps.js";import{Fragment as c,useId as l}from"react";import{jsx as u,jsxs as d}from"react/jsx-runtime";import{NAVIGATION_MENU_TEXT as f}from"@webority/ui-elements/text";var p=[`pills`,`underline`,`text`],m=()=>import(`@webority/ui-elements/elements/navigation-menu`);function h(h){n(`wui-navigation-menu`,m);let g=r(`navigationMenu`,f),{marker:_,props:v}=i(`AppNavigationMenu`,h),{items:y=[],ariaLabel:b=g.ariaLabel,variant:x=`pills`,flush:S=!1,linkComponent:C,className:w=``,...T}=v;if(s(`AppNavigationMenu`,T),a(`AppNavigationMenu`,`variant`,x,p),S&&x!==`underline`)throw Error(`AppNavigationMenu: flush works only with variant="underline", not "${x}".`);let E=l();return/* @__PURE__ */ u(`wui-navigation-menu`,{class:[`wui-nav-menu`,x===`pills`?``:`wui-nav-menu-${x}`,S?`wui-nav-menu-flush`:``,w].filter(Boolean).join(` `),..._,...T,children:/* @__PURE__ */ u(`nav`,{"aria-label":b,children:/* @__PURE__ */ u(`ul`,{className:`wui-nav-menu-list`,children:y.map((n,r)=>{let i=n.group&&n.group!==y[r-1]?.group?/* @__PURE__ */ u(`li`,{className:`wui-nav-menu-group`,role:`presentation`,children:n.group},`${n.key}-group`):null;if(!n.links?.length)return/* @__PURE__ */ d(c,{children:[i,/* @__PURE__ */ u(`li`,{className:`wui-nav-menu-item`,children:/* @__PURE__ */ u(t,{link:e(C,{href:n.to}),className:`wui-nav-menu-toplink`,"aria-current":n.current?`page`:void 0,children:n.label})})]},n.key);let a=`${E}-${n.key}`;return/* @__PURE__ */ d(c,{children:[i,/* @__PURE__ */ d(`li`,{className:`wui-nav-menu-item`,children:[/* @__PURE__ */ d(`button`,{type:`button`,className:n.current||n.links.some(e=>e.current)?`wui-nav-menu-trigger is-current`:`wui-nav-menu-trigger`,"aria-expanded":`false`,"aria-controls":a,"data-key":n.key,children:[n.label,o(`chevron-down`,{size:14,className:`wui-nav-menu-chevron`})]}),/* @__PURE__ */ u(`div`,{className:`wui-nav-menu-panel`,id:a,children:/* @__PURE__ */ u(`ul`,{className:`wui-nav-menu-links`,children:n.links.map(n=>/* @__PURE__ */ u(`li`,{children:/* @__PURE__ */ d(t,{link:e(C,{href:n.to}),className:`wui-nav-menu-link`,"aria-current":n.current?`page`:void 0,children:[o(n.icon,{size:18}),/* @__PURE__ */ d(`span`,{className:`wui-nav-menu-link-text`,children:[/* @__PURE__ */ u(`span`,{className:`wui-nav-menu-link-label`,children:n.label}),n.description?/* @__PURE__ */ u(`span`,{className:`wui-nav-menu-link-desc`,children:n.description}):null]})]})},n.key))})})]})]},n.key)})})})})}export{h as default};
@@ -1 +1 @@
1
- import{devWarn as e}from"../lib/devWarn.js";import t from"../lib/FieldMessage.js";import{FIELD_BUSY_CLASS as n,FIELD_SIZES as r}from"../lib/fieldState.js";import{useFieldError as i}from"../lib/formFields.js";import ee from"../lib/useWuiText.js";import{splitMarkerProps as a}from"../lib/wuiMarker.js";import o from"./AppInfoTip.js";import s from"./AppRequiredMark.js";import te from"./assertValidValue.js";import ne from"./warnUnknownProps.js";import{useCallback as re,useEffect as c,useId as l,useLayoutEffect as u,useRef as d,useState as f}from"react";import{jsx as p,jsxs as m}from"react/jsx-runtime";import{TEXTAREA_TEXT as h}from"@webority/ui-elements/text";import{Form as g}from"react-bootstrap";var _=e=>e!=null&&e!==``&&e!==!1;function v({ref:v,...ie}){let{marker:y,props:b}=a(`AppTextarea`,ie),x=ee(`textarea`,h),{label:S,required:C=!1,optional:w=!1,optionalLabel:T=x.optionalLabel,error:ae,helperText:E,help:D,helpLabel:oe=x.helpLabel,id:se,name:O,rows:ce=4,autoGrow:k=!1,monospace:A=!1,showCount:j=!1,maxLength:M,disabled:N=!1,readOnly:P=!1,loading:F=!1,size:I=`md`,className:L=``,fieldClassName:R=``,controlOnly:z=!1,value:B,...V}=b,H=i(O),U=ae??H,{onChange:W,...le}=V;if(z){let e=[[`label`,S],[`error`,U],[`helperText`,E],[`fieldClassName`,R],[`showCount`,j],[`help`,D],[`optional`,w]];for(let[t,n]of e)if(_(n))throw Error(`<AppTextarea> controlOnly draws no field, so it takes no ${t}; draw the label or message on the page.`)}ne(`AppTextarea`,V),te(`AppTextarea`,`size`,I,r),c(()=>{w&&C&&typeof process<`u`&&process.env.NODE_ENV!==`production`&&e(`AppTextarea: optional and required together; optional ignored`)},[w,C]);let ue=l(),G=se||ue,de=[k?`autosize`:``,A?`wui-mono`:``,U?`error`:``,I===`sm`?`wui-input-sm`:``,I===`lg`?`wui-input-lg`:``,I===`xl`?`wui-input-xl`:``,F?n:``,L].filter(Boolean).join(` `),K=U&&G?`${G}-error`:void 0,q=E&&G?`${G}-hint`:void 0,fe=K||q,J=d(null),pe=e=>{J.current=e,typeof v==`function`?v(e):v&&(v.current=e)},Y=d(void 0),X=re(()=>{let e=J.current;e&&(e.style.height=`auto`,e.style.height=`${e.scrollHeight}px`,Y.current=`${e.value}|${e.clientWidth}`)},[]);u(()=>{let e=J.current;!k||!e?Y.current=void 0:`${String(B??e.value)}|${e.clientWidth}`!==Y.current&&X()});let[Z,Q]=f(()=>String(B??V.defaultValue??``).length);c(()=>{j&&B!==void 0&&Q(String(B??``).length)},[B,j]);let me=e=>{k&&X(),j&&Q(e.currentTarget.value.length),V.onInput?.(e)},$=/* @__PURE__ */ p(g.Control,{as:`textarea`,id:G,name:O,rows:ce,className:de,"aria-invalid":U?`true`:`false`,"aria-describedby":fe,"aria-busy":F||void 0,required:C,maxLength:M,disabled:N,readOnly:P||F,...z?y:null,...B===void 0?null:{value:B},...le,...W?{onChange:W}:null,ref:pe,onInput:me});return z?$:/* @__PURE__ */ m(g.Group,{...y,className:`field${R?` ${R}`:``}`,children:[S&&/* @__PURE__ */ m(g.Label,{className:`label`,htmlFor:G,children:[S,w&&!C&&/* @__PURE__ */ p(`span`,{className:`label-optional`,children:` ${T}`}),C&&/* @__PURE__ */ p(s,{}),D&&/* @__PURE__ */ p(o,{label:oe,children:D})]}),$,/* @__PURE__ */ p(t,{error:U,hint:E,errorId:K,hintId:q}),j&&/* @__PURE__ */ m(`div`,{className:`field-count${M&&Z>=M?` at-limit`:``}`,children:[Z,M?` / ${M}`:``]})]})}export{v as default};
1
+ import{devWarn as e}from"../lib/devWarn.js";import t from"../lib/FieldMessage.js";import{FIELD_BUSY_CLASS as n,FIELD_SIZES as ee}from"../lib/fieldState.js";import{useFieldError as te}from"../lib/formFields.js";import ne from"../lib/useWuiText.js";import{splitMarkerProps as re}from"../lib/wuiMarker.js";import r from"./AppIcon.js";import ie from"./AppInfoTip.js";import i from"./AppRequiredMark.js";import a from"./assertValidValue.js";import ae from"./warnUnknownProps.js";import{cloneElement as oe,useCallback as se,useEffect as o,useId as ce,useLayoutEffect as le,useRef as s,useState as c}from"react";import{jsx as l,jsxs as u}from"react/jsx-runtime";import{TEXTAREA_TEXT as ue}from"@webority/ui-elements/text";import{Form as d}from"react-bootstrap";var de=[`bare`,`underline`],fe=[`off`,`border`,`above`],pe=e=>e!=null&&e!==``&&e!==!1;function f({ref:f,...me}){let{marker:p,props:m}=re(`AppTextarea`,me),h=ne(`textarea`,ue),{label:g,required:_=!1,optional:v=!1,optionalLabel:he=h.optionalLabel,error:ge,helperText:y,help:b,helpLabel:_e=h.helpLabel,id:ve,name:x,rows:ye=4,autoGrow:S=!1,monospace:be=!1,showCount:C=!1,maxLength:w,disabled:T=!1,readOnly:E=!1,loading:D=!1,size:O=`md`,variant:k,leftIcon:A,clearable:j=!1,clearLabel:xe=h.clearLabel,floatingLabel:M=`off`,className:Se=``,fieldClassName:N=``,controlOnly:P=!1,value:F,...I}=m,Ce=te(x),L=ge??Ce,{onChange:R,...we}=I;if(P){let e=[[`label`,g],[`error`,L],[`helperText`,y],[`fieldClassName`,N],[`showCount`,C],[`help`,b],[`optional`,v],[`floatingLabel`,M===`off`?void 0:M]];for(let[t,n]of e)if(pe(n))throw Error(`<AppTextarea> controlOnly draws no field, so it takes no ${t}; draw the label or message on the page.`)}ae(`AppTextarea`,I),a(`AppTextarea`,`size`,O,ee),a(`AppTextarea`,`variant`,k,de),a(`AppTextarea`,`floatingLabel`,M,fe),o(()=>{v&&_&&typeof process<`u`&&process.env.NODE_ENV!==`production`&&e(`AppTextarea: optional and required together; optional ignored`)},[v,_]);let Te=ce(),z=ve||Te,B=M!==`off`&&!!g,V=B?`float`:j?`clear`:A?`icon`:`none`,H=j&&!T&&!E&&!D,Ee=[S?`autosize`:``,be?`wui-mono`:``,L?`error`:``,O===`sm`?`wui-input-sm`:``,O===`lg`?`wui-input-lg`:``,O===`xl`?`wui-input-xl`:``,D?n:``,k===`underline`?`wui-input-underline`:k?`input-${k}`:``,V===`clear`&&H?`has-clear`:``,Se].filter(Boolean).join(` `),U=L&&z?`${z}-error`:void 0,W=y&&z?`${z}-hint`:void 0,De=U||W,G=s(null),Oe=e=>{G.current=e,typeof f==`function`?f(e):f&&(f.current=e)},K=s(void 0),q=se(()=>{let e=G.current;e&&(e.style.height=`auto`,e.style.height=`${e.scrollHeight}px`,K.current=`${e.value}|${e.clientWidth}`)},[]);le(()=>{let e=G.current;!S||!e?K.current=void 0:`${String(F??e.value)}|${e.clientWidth}`!==K.current&&q()});let[J,Y]=c(()=>String(F??I.defaultValue??``).length);o(()=>{C&&F!==void 0&&Y(String(F??``).length)},[F,C]);let[ke,X]=c(()=>String(F??I.defaultValue??``)!==``);o(()=>{j&&F!==void 0&&X(String(F??``)!==``)},[F,j]);let Ae=e=>{S&&q(),C&&Y(e.currentTarget.value.length),j&&X(e.currentTarget.value!==``),I.onInput?.(e)},je=()=>{let e=G.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLTextAreaElement.prototype,`value`)?.set;t?t.call(e,``):e.value=``,e.dispatchEvent(new Event(`input`,{bubbles:!0})),X(!1),e.focus()},Z=/* @__PURE__ */ l(d.Control,{as:`textarea`,id:z,name:x,rows:ye,className:Ee,"aria-invalid":L?`true`:`false`,"aria-describedby":De,"aria-busy":D||void 0,required:_,maxLength:w,disabled:T,readOnly:E||D,...P&&V===`none`?p:null,...F===void 0?null:{value:F},...we,...M===`off`?null:{placeholder:` `},...R?{onChange:R}:null,ref:Oe,onInput:Ae}),Q=A?/* @__PURE__ */ l(`span`,{className:`ic`,children:/* @__PURE__ */ l(r,{name:A,size:16})}):null,Me=H?/* @__PURE__ */ l(`button`,{type:`button`,className:`input-clear`,onClick:je,"aria-label":xe,tabIndex:-1,hidden:!ke,children:/* @__PURE__ */ l(r,{name:`x`,size:16})}):null,$=Z;return V===`float`?$=/* @__PURE__ */ u(`div`,{className:M===`above`?`field-float wui-float-above`:`field-float`,children:[Z,/* @__PURE__ */ u(`label`,{className:`float-label`,htmlFor:z,children:[g,_&&/* @__PURE__ */ l(i,{})]})]}):V===`clear`?$=/* @__PURE__ */ u(`div`,{className:A?`input-icon`:`input-wrap`,children:[Q,Z,Me]}):V===`icon`&&($=/* @__PURE__ */ u(`div`,{className:`input-icon`,children:[Q,Z]})),P?V===`none`?Z:oe($,p):/* @__PURE__ */ u(d.Group,{...p,className:`field${N?` ${N}`:``}`,children:[g&&!B&&/* @__PURE__ */ u(d.Label,{className:`label`,htmlFor:z,children:[g,v&&!_&&/* @__PURE__ */ l(`span`,{className:`label-optional`,children:` ${he}`}),_&&/* @__PURE__ */ l(i,{}),b&&/* @__PURE__ */ l(ie,{label:_e,children:b})]}),$,/* @__PURE__ */ l(t,{error:L,hint:y,errorId:U,hintId:W}),C&&/* @__PURE__ */ u(`div`,{className:`field-count${w&&J>=w?` at-limit`:``}`,children:[J,w?` / ${w}`:``]})]})}export{f as default};
@@ -2,7 +2,7 @@
2
2
  "format": "webority-guidance/1",
3
3
  "package": {
4
4
  "name": "@webority/ui-react",
5
- "version": "0.178.4"
5
+ "version": "0.179.0"
6
6
  },
7
7
  "components": [
8
8
  {
@@ -20,14 +20,16 @@ export interface AppAccordionProps extends ComponentPropsWithoutRef<"div"> {
20
20
  /** The keys of the panes that start open. It replaces each item's own open flag and is read again when its content changes. Without multiple only the first key opens. */
21
21
  openItems?: readonly string[] | undefined;
22
22
  /**
23
- * bordered (default) | flat: a text toggle with a leading chevron and an optional count chip, for a section header rather than a card of questions.
23
+ * bordered (default) | flat: a text toggle with a leading chevron and an optional count chip, for a section header rather than a card of questions | numbered: a numbered FAQ list between divider lines with a round plus toggle that turns primary while open, drawn as a pill with openLabel closed and closeLabel open.
24
24
  * @default "bordered"
25
25
  */
26
- variant?: "bordered" | "flat" | undefined;
26
+ variant?: "bordered" | "flat" | "numbered" | undefined;
27
27
  /** Prefix for the generated pane ids. Set it when a pane needs a stable anchor to link to. */
28
28
  id?: string | undefined;
29
- /** The label every trigger carries as data-close-label, for a stylesheet to show while the pane is open. Omitted when unset. */
29
+ /** The label every trigger carries as data-close-label, for a stylesheet to show while the pane is open; under numbered the open toggle shows it as a pill. Omitted when unset. */
30
30
  closeLabel?: string | undefined;
31
+ /** Under numbered, the label the closed toggle shows beside its plus, making it a pill. Unset, the closed toggle stays a round plus button. */
32
+ openLabel?: string | undefined;
31
33
  /**
32
34
  * Extra classes on the list.
33
35
  * @default ""
@@ -1,6 +1,7 @@
1
1
  import type { ComponentPropsWithRef, ElementType, JSX, MouseEventHandler, ReactNode } from "react";
2
2
  type ButtonSize = "sm" | "md" | "lg" | "xl";
3
3
  type IconVariant = "linear" | "outline" | "bold" | "bulk" | "broken" | "twotone";
4
+ type IconTone = "primary" | "success" | "warning" | "danger" | "info" | "neutral" | "white";
4
5
  export interface AppButtonProps extends Omit<ComponentPropsWithRef<"button">, "children" | "className" | "onClick" | "onClickCapture" | "type"> {
5
6
  children: ReactNode;
6
7
  /**
@@ -53,8 +54,8 @@ export interface AppButtonProps extends Omit<ComponentPropsWithRef<"button">, "c
53
54
  tooltipPlacement?: "auto" | "top" | "bottom" | "start" | "end" | undefined;
54
55
  /** The key that runs this action ("A", "E", "/"), drawn as a key chip: in the tooltip when the button has one, otherwise after the label. Sets aria-keyshortcuts; the page binds the key itself. Ignored on a static button. */
55
56
  shortcut?: string | undefined;
56
- /** Hover animation; omit for the default sheen. roll rolls the label up and slides a trailing rightIcon through a round well. */
57
- animation?: "sheen" | "fill" | "expand" | "glow" | "roll" | "none" | undefined;
57
+ /** Hover animation; omit for the default sheen. roll rolls the label up and slides a trailing rightIcon through a round well. wave fills the button from below with its hover colour. */
58
+ animation?: "sheen" | "fill" | "expand" | "glow" | "roll" | "wave" | "none" | undefined;
58
59
  /**
59
60
  * Pin the rightIcon (or the roll animation's icon well) to the button's end edge and centre the label; for a wide or full-width button.
60
61
  * @default false
@@ -70,6 +71,10 @@ export interface AppButtonProps extends Omit<ComponentPropsWithRef<"button">, "c
70
71
  * @default "linear"
71
72
  */
72
73
  iconVariant?: IconVariant | undefined;
74
+ /** The colour of the round well behind a pinned or rolling rightIcon. Needs rightIcon with pinRightIcon or animation roll; anything else throws. */
75
+ iconBg?: IconTone | undefined;
76
+ /** The colour of a pinned or rolling rightIcon inside its well, with the same rule as iconBg. */
77
+ iconColor?: IconTone | undefined;
73
78
  /**
74
79
  * Extra classes on the button.
75
80
  * @default ""
@@ -111,6 +116,8 @@ export interface AppButtonProps extends Omit<ComponentPropsWithRef<"button">, "c
111
116
  * @param [props.pinRightIcon]
112
117
  * @param [props.shape]
113
118
  * @param [props.iconVariant]
119
+ * @param [props.iconBg] Needs rightIcon with pinRightIcon or the roll animation; anything else throws.
120
+ * @param [props.iconColor] Needs rightIcon with pinRightIcon or the roll animation; anything else throws.
114
121
  * @param [props.className]
115
122
  * @param [props.vibrate] `true` buzzes 10 ms on a tap, a whole number 1 to 100 buzzes that many ms; phones only.
116
123
  * @param [props.onClick] Runs on a click; ignored on a static button. A promise it returns holds the button in its loading state until it settles.
@@ -28,6 +28,16 @@ export interface AppNavigationMenuProps {
28
28
  * @default "Main"
29
29
  */
30
30
  ariaLabel?: string | undefined;
31
+ /**
32
+ * How an entry shows hover and the current page: pills fills the entry, underline draws a line under it, text colours its label.
33
+ * @default "pills"
34
+ */
35
+ variant?: "pills" | "underline" | "text" | undefined;
36
+ /**
37
+ * Drops the entries' side padding so the first label lines up with the content edge. Only with variant underline.
38
+ * @default false
39
+ */
40
+ flush?: boolean | undefined;
31
41
  /** The product's router link, which receives `to` (e.g. Link). */
32
42
  linkComponent?: AppLinkComponent | undefined;
33
43
  className?: string | undefined;
@@ -43,6 +43,25 @@ export interface AppTextareaProps extends ComponentPropsWithoutRef<"textarea"> {
43
43
  * @default "md"
44
44
  */
45
45
  size?: "sm" | "md" | "lg" | "xl" | undefined;
46
+ /** Bare drops the border and the fill, for inline editing. Underline keeps only a line under the field, which takes the same hover and focus colours as the boxed field. */
47
+ variant?: "bare" | "underline" | undefined;
48
+ /** A leading icon on the first line, given as a semantic icon name. A floating label takes its room, so it is not drawn with one. */
49
+ leftIcon?: string | undefined;
50
+ /**
51
+ * Shows a clear button while the field has text. A read-only, disabled or loading field shows none.
52
+ * @default false
53
+ */
54
+ clearable?: boolean | undefined;
55
+ /**
56
+ * Replaces the built-in English text, for other languages.
57
+ * @default "Clear"
58
+ */
59
+ clearLabel?: string | undefined;
60
+ /**
61
+ * Where the label rests. Off keeps it above the field. Border sits it inside on the first line, then slides it onto the top border once the field is focused or filled. Above rests it above the box, clear of the border.
62
+ * @default "off"
63
+ */
64
+ floatingLabel?: "off" | "border" | "above" | undefined;
46
65
  /**
47
66
  * A class added to the control.
48
67
  * @default ""
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webority/ui-react",
3
- "version": "0.178.4",
3
+ "version": "0.179.0",
4
4
  "description": "Webority shared React component library: App* primitives on react-bootstrap and the @webority/theme design system.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "type": "module",
@@ -41,10 +41,10 @@
41
41
  "./src/elements/*.ts"
42
42
  ],
43
43
  "dependencies": {
44
- "@webority/markdown-core": "0.178.4",
45
- "@webority/theme": "0.178.4",
46
- "@webority/ui-elements": "0.178.4",
47
- "@webority/web-core": "0.178.4"
44
+ "@webority/markdown-core": "0.179.0",
45
+ "@webority/theme": "0.179.0",
46
+ "@webority/ui-elements": "0.179.0",
47
+ "@webority/web-core": "0.179.0"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "@webority/analytics": "^0.45.0",
@@ -69,10 +69,10 @@
69
69
  "@types/react-dom": "^19.3.0",
70
70
  "@vitejs/plugin-react": "^6.0.1",
71
71
  "@vitest/coverage-v8": "5.1.0",
72
- "@webority/analytics": "0.45.0",
73
- "@webority/canvas-kit": "0.178.4",
74
- "@webority/biome-config": "0.178.4",
75
- "@webority/tokens": "0.178.4",
72
+ "@webority/analytics": "0.45.1",
73
+ "@webority/canvas-kit": "0.179.0",
74
+ "@webority/biome-config": "0.179.0",
75
+ "@webority/tokens": "0.179.0",
76
76
  "bootstrap": "5.3.9",
77
77
  "jsdom": "30.1.1",
78
78
  "react": "^19.3.1",