@sheetxl/utils-react 0.8.0-beta.1 → 0.8.0-beta.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/browser/esm/{CKvLZo8keTi4hdRr.mjs → 3j_xcvx6bFQsulwT.mjs} +1 -1
  2. package/browser/esm/{BIb3Fag4wDs4Gro1.mjs → DmyXYEmBOLQfUC3S.mjs} +19 -18
  3. package/browser/esm/IqQLdwJk1VA8hpDI.mjs +100 -0
  4. package/browser/esm/index.mjs +2572 -2057
  5. package/licenses/dependencies.txt +1 -39
  6. package/node/esm/{TlOKuBGsozMYzzBC.mjs → B7T-c_PH7rtDuiLF.mjs} +1 -1
  7. package/node/esm/DHJ2cDJlYQ1rBfYF.mjs +100 -0
  8. package/node/esm/index.mjs +2294 -1788
  9. package/package.json +8 -11
  10. package/types/src/animation/useAnimatedMeasure.d.ts +2 -3
  11. package/types/src/command/CommandCatalog.d.ts +2 -2
  12. package/types/src/command/CommandScope.d.ts +23 -2
  13. package/types/src/command/index.d.ts +1 -0
  14. package/types/src/command/tags.d.ts +19 -0
  15. package/types/src/components/index.d.ts +0 -1
  16. package/types/src/float/FloatPanel.d.ts +20 -1
  17. package/types/src/float/FloatPopper.d.ts +84 -10
  18. package/types/src/float/index.d.ts +0 -1
  19. package/types/src/hooks/LanguageState.d.ts +1 -1
  20. package/types/src/hooks/index.d.ts +4 -0
  21. package/types/src/hooks/useCallbackRef.d.ts +19 -6
  22. package/types/src/hooks/useEditMode.d.ts +24 -4
  23. package/types/src/hooks/useImperativeElement.d.ts +1 -1
  24. package/types/src/hooks/useInputModality.d.ts +26 -0
  25. package/types/src/hooks/useLocationSearch.d.ts +9 -0
  26. package/types/src/hooks/useMeasure.d.ts +32 -0
  27. package/types/src/hooks/useNotifier.d.ts +32 -36
  28. package/types/src/hooks/useSynchronizedPointerHandler.d.ts +3 -7
  29. package/types/src/hooks/useVisualViewportRect.d.ts +39 -0
  30. package/types/src/icons/packs/Base.json.d.ts +3406 -0
  31. package/types/src/index.d.ts +2 -0
  32. package/types/src/lazy/index.d.ts +2 -0
  33. package/types/src/lazy/lazyComponent.d.ts +43 -0
  34. package/types/src/persistence/PersistentStateProvider.d.ts +3 -0
  35. package/types/src/persistence/Types.d.ts +18 -4
  36. package/types/src/persistence/_Context.d.ts +3 -2
  37. package/types/src/persistence/index.d.ts +2 -2
  38. package/types/src/persistence/usePersistentState.d.ts +39 -0
  39. package/types/src/scroll/AxisViewport.d.ts +6 -2
  40. package/types/src/scroll/IScrollPane.d.ts +10 -1
  41. package/types/src/scroll/Utils.d.ts +1 -0
  42. package/types/src/scroll/Viewport.d.ts +50 -2
  43. package/types/src/scroll/touchOwner.d.ts +19 -0
  44. package/types/src/scroll/useWheelScroll.d.ts +15 -2
  45. package/types/src/scroll/wheelOwner.d.ts +18 -0
  46. package/types/src/scroller/Scroller.d.ts +44 -5
  47. package/types/src/theme/TokenTheme.d.ts +14 -5
  48. package/types/src/theme/index.d.ts +1 -0
  49. package/types/src/theme/zIndex.d.ts +24 -0
  50. package/types/src/utils/index.d.ts +2 -0
  51. package/types/src/utils/measureUIText.d.ts +24 -0
  52. package/types/src/utils/textSelectionDrag.d.ts +52 -0
  53. package/types/src/virtualKeyboard/VirtualKeyboard.d.ts +122 -0
  54. package/types/src/virtualKeyboard/index.d.ts +2 -0
  55. package/browser/cjs/D02anPwyfYZxlZmG.cjs +0 -1
  56. package/browser/cjs/DZSvmqU8nRas1uz6.cjs +0 -1
  57. package/browser/cjs/Dc-AA0ooFLVdAhbT.cjs +0 -1
  58. package/browser/cjs/index.cjs +0 -5
  59. package/browser/esm/BT6JG-bEtM8ou0Xr.mjs +0 -2179
  60. package/node/esm/CdJ0O_khlsS4DqVj.mjs +0 -2179
  61. package/types/src/components/ITooltip.d.ts +0 -38
  62. package/types/src/float/FloatTooltip.d.ts +0 -22
  63. package/types/src/persistence/PersistenceStateProvider.d.ts +0 -3
  64. package/types/src/persistence/usePersistenceState.d.ts +0 -33
  65. package/types/src/utils/PinchZoom.d.ts +0 -3
@@ -0,0 +1,122 @@
1
+ import { default as React } from 'react';
2
+ /** The virtual keyboard a text field asks for (its `inputmode`). */
3
+ export type VirtualKeyboardInputMode = 'text' | 'decimal' | 'numeric' | 'tel' | 'email' | 'url' | 'search';
4
+ /**
5
+ * Configuration for a {@link VirtualKeyboardStore}.
6
+ */
7
+ export interface VirtualKeyboardOptions {
8
+ /**
9
+ * Never enter keyboard mode: the grid takes focus itself, and the keyboard comes and goes with
10
+ * each text field as the browser decides. `false` turns keyboard mode on where the device was not
11
+ * detected to have one.
12
+ *
13
+ * @defaultValue `true` on a device with no touch input (no virtual keyboard), else `false`
14
+ */
15
+ disabled?: boolean;
16
+ /** Leave the grid scrolled where it is when the keyboard rises over the active cell. */
17
+ disableScrollIntoView?: boolean;
18
+ /**
19
+ * A tap on the grid keeps keyboard mode, as Excel keeps its keyboard, rather than putting the
20
+ * keyboard away.
21
+ */
22
+ keepOnTap?: boolean;
23
+ }
24
+ /**
25
+ * The keyboard-mode state.
26
+ */
27
+ export interface VirtualKeyboardState {
28
+ /**
29
+ * Whether the sheet is in keyboard mode: a virtual keyboard is up for typing into the sheet, and
30
+ * focusing the sheet lands on its typing input so the keyboard stays.
31
+ */
32
+ readonly active: boolean;
33
+ /** The keyboard every sheet text field asks for. */
34
+ readonly inputMode: VirtualKeyboardInputMode;
35
+ }
36
+ /**
37
+ * The imperative handle {@link useVirtualKeyboard} returns.
38
+ */
39
+ export interface VirtualKeyboardHandler {
40
+ /** The current state. A new object on each change. */
41
+ getState(): VirtualKeyboardState;
42
+ /**
43
+ * Whether keyboard mode is available: the device has a virtual keyboard, and the store is not
44
+ * {@link VirtualKeyboardOptions.disabled}. The counterpart of `document.fullscreenEnabled`; a host
45
+ * leaves keyboard-mode parts (the sheet's keyboard layer) out when it is `false`.
46
+ */
47
+ isEnabled(): boolean;
48
+ /** Shorthand for `getState().active`. */
49
+ isActive(): boolean;
50
+ /** Shorthand for `getState().inputMode`. */
51
+ getInputMode(): VirtualKeyboardInputMode;
52
+ /** Ask for a different keyboard on the sheet's text fields. */
53
+ setInputMode(inputMode: VirtualKeyboardInputMode): void;
54
+ /**
55
+ * Enter keyboard mode. A sheet whose focus is not already in a text field focuses its typing
56
+ * input, which raises the keyboard; browsers raise one only inside a user gesture, so call this
57
+ * from a tap.
58
+ *
59
+ * @returns Whether keyboard mode is on: `false` when it is not {@link isEnabled | enabled}, as
60
+ * `requestFullscreen` refuses where fullscreen is not.
61
+ */
62
+ show(): boolean;
63
+ /**
64
+ * Leave keyboard mode, and go back to the letters keyboard: a field opened later (a double-click
65
+ * into a cell) asks for letters, so the next keyboard does too. A sheet whose typing input has focus
66
+ * hands it to the grid, which lowers the keyboard; an editor that has focus keeps it.
67
+ */
68
+ hide(): void;
69
+ /**
70
+ * Name the editor that typing opens in while in keyboard mode, by the id it parks on the edit
71
+ * session (`EditSession.setActiveEditorId`); a phone's formula bar names itself so a typed key
72
+ * opens the edit there rather than in the cell. The latest registration wins.
73
+ *
74
+ * @returns Removes this registration.
75
+ */
76
+ registerEditor(editorId: string): () => void;
77
+ /** The editor typing opens in while in keyboard mode, or `null` for the cell. */
78
+ getEditorId(): string | null;
79
+ /** The options the store was created with. */
80
+ getOptions(): Readonly<VirtualKeyboardOptions>;
81
+ }
82
+ /**
83
+ * A virtual keyboard **bus instance**: one keyboard mode shared by the sheet, its editors, and any
84
+ * control that shows or hides the keyboard.
85
+ */
86
+ export interface VirtualKeyboardStore extends VirtualKeyboardHandler {
87
+ /** Subscribe to any state change. Returns the remover. */
88
+ subscribe(listener: () => void): () => void;
89
+ }
90
+ /**
91
+ * Whether a virtual keyboard is up, read from the visual viewport (the part of the page the keyboard
92
+ * leaves visible). Pinch zoom shrinks the visual viewport too, so its scale is undone first.
93
+ */
94
+ export declare const isVirtualKeyboardUp: () => boolean;
95
+ /**
96
+ * Create an isolated virtual keyboard store.
97
+ */
98
+ export declare const createVirtualKeyboardStore: (options?: VirtualKeyboardOptions) => VirtualKeyboardStore;
99
+ export interface VirtualKeyboardProviderProps extends VirtualKeyboardOptions {
100
+ /** The bus instance to share. Omit to create one for this subtree from the options. */
101
+ store?: VirtualKeyboardStore;
102
+ children?: React.ReactNode;
103
+ }
104
+ /**
105
+ * Share one virtual keyboard bus with a subtree: the sheet, its editors, and any keyboard control an
106
+ * app adds (a "show keyboard" button calls `useVirtualKeyboard().show()`). With no `store` a fresh one
107
+ * is created from the options, stable while they are unchanged.
108
+ */
109
+ export declare const VirtualKeyboardProvider: (props: VirtualKeyboardProviderProps) => React.ReactElement;
110
+ /**
111
+ * Resolve the enclosing bus **instance**: the nearest {@link VirtualKeyboardProvider}'s store, else
112
+ * the app-wide default, enabled on a device with touch input. Never `null`: where there is no
113
+ * virtual keyboard the store reports `isEnabled() === false` and `show()` refuses, as the
114
+ * fullscreen API does where fullscreen is unavailable. Non-reactive; use {@link useVirtualKeyboard}
115
+ * to also re-render.
116
+ */
117
+ export declare const useVirtualKeyboardStore: () => VirtualKeyboardStore;
118
+ /**
119
+ * Access the enclosing virtual keyboard bus. Reading re-renders on change.
120
+ */
121
+ export declare const useVirtualKeyboard: () => VirtualKeyboardHandler;
122
+ //# sourceMappingURL=VirtualKeyboard.d.ts.map
@@ -0,0 +1,2 @@
1
+ export * from './VirtualKeyboard';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- let e=require("@sheetxl/utils"),t=require("react"),n=require("react/jsx-runtime");function r(e){if(typeof e==`function`)return e;if(typeof e==`string`){let t=e.trim();if(t.startsWith(`data:image/svg+xml`)){let e=function(e){let t=/^data:image\/svg\+xml(;[^,]*)?,(.*)$/i.exec(e.trim());if(!t)return null;let n=t[1]||``,r=t[2]||``;try{if(/;base64/i.test(n)){if(typeof atob<`u`){let e=atob(r),t=e.length;if(typeof TextDecoder<`u`){let n=new Uint8Array(t);for(let r=0;r<t;r++)n[r]=e.charCodeAt(r);return new TextDecoder(`utf-8`).decode(n)}let n=``;for(let r=0;r<t;r++)n+=`%${e.charCodeAt(r).toString(16).padStart(2,`0`)}`;return decodeURIComponent(n)}return globalThis.Buffer.from(r,`base64`).toString(`utf-8`)}try{return decodeURIComponent(r)}catch{return r}}catch{return null}}(t);if(e)return o(e)}if(t.startsWith(`<`)){if(/^<\s*svg\b/i.test(t))return o(t);if(/^<\s*path\b/i.test(t)){let e=i(t);if(e)return{paths:[{d:e}]}}return{paths:[{d:t}]}}return{paths:[{d:t}]}}if(Array.isArray(e)){let t=[];for(let n of e)if(typeof n==`string`){let e=String(n).trim();if(e.startsWith(`<path`)){let n=i(e);n&&t.push({d:n})}else t.push({d:e})}else n&&typeof n==`object`&&`d`in n&&typeof n.d==`string`&&t.push({...n});return{paths:t}}return e}function i(e){let t=/\bd\s*=\s*(?:"([^"]+)"|'([^']+)')/i.exec(e);return t?t[1]??t[2]??null:null}function a(e){if(`svg`in e)return{...e,svg:r(e.svg)};if(`url`in e){let t=typeof e.url==`string`?{src:e.url}:e.url;return{...e,url:t}}if(`emoji`in e){let t=typeof e.emoji==`string`?e.emoji:e.emoji.text;return{...e,emoji:t}}return e}function o(e){try{if(typeof DOMParser<`u`){let t=new DOMParser().parseFromString(e,`image/svg+xml`),n=t.querySelector(`svg`)?.getAttribute(`viewBox`)??void 0,r=[];return t.querySelectorAll(`path`).forEach(e=>{let t=e.getAttribute(`d`);if(!t)return;let n={d:t},i=e.getAttribute(`class`);i&&(n.className=i);let a=e.getAttribute(`fill`);a&&a!==`none`&&(n.fill=a);let o=e.getAttribute(`stroke`);o&&(n.stroke=o);let s=e.getAttribute(`opacity`);s&&(n.opacity=Number(s));let c=e.getAttribute(`fill-rule`);c&&(n.fillRule=c);let l=e.getAttribute(`clip-rule`);l&&(n.clipRule=l),r.push(n)}),{viewBox:n,paths:r}}}catch{}let t=e.match(/viewBox="([^"]+)"/i),n=t?t[1]:void 0,r=[],i=/<path\b[^>]*\sd="([^"]+)"[^>]*>/gi,a;for(;a=i.exec(e);)r.push({d:a[1]});return{viewBox:n,paths:r}}function s(e){let t={};for(let[n,r]of Object.entries(e.icons))t[n]=a(r);let n={label:e.meta?.label??`Unnamed`,version:e.meta?.version??`1.0.0`,license:e.meta?.license??`MIT`,defaultViewBox:`0 0 24 24`,extends:e.meta?.extends??[]};n.extends.includes(`base`)||n.extends.push(`base`);let r={meta:n,icons:t},i=e.overrides;if(i){let e={};for(let[t,n]of Object.entries(i)){let r={};for(let[e,t]of Object.entries(n))r[e]=a(t);e[t]=r}r.__overrides=e}return r}function c(){let e=new Map,t=new Map,n=`base`,r=new Map;async function i(t){let r=e.get(t??n);if(!r)throw Error(`Icon pack not registered: ${t}`);if(!r.pack){if(!r.loading){if(!r.loader)throw Error(`No loader for icon pack: ${t}`);r.loading=r.loader().then(e=>{let t=e&&typeof e==`object`&&`default`in e?e.default:e;r.pack=s(t)}).catch(e=>{throw r.loading=void 0,e})}await r.loading}}function a(e){let t=e.indexOf(`:`);return t>0?{ns:e.slice(0,t),key:e.slice(t+1)}:{key:e}}function o(n,r){let i=[n,...e.get(n)?.pack?.meta.extends??[]];for(let n of i){let i=e.get(n);if(!i?.pack)continue;let{icons:a}=i.pack,o=a[t.get(n)?.get(r)??r]??a[r];if(o)return{glyph:o,pack:i.pack,packKey:n}}return null}function c(t,r){let i=r?.packKey??n;if(r?.packKey)return o(r.packKey,t);if(!t)return null;let{ns:s,key:c}=a(t);if(s){let t=e.get(s)?.pack;if(t){if(e.get(n)?.pack){let e=t.__overrides?.[n]?.[c];if(e)return{glyph:e,pack:t,packKey:s}}let r=o(s,c);if(r)return r}return null}return o(i,t)}return{register:function(t,r){let i=e.get(t)??{};typeof r==`function`?i.loader=r:i.pack=s(r),e.set(t,i),n||=t},prefetch:async function(e=n){let t=Array.isArray(e)?e:[e];await Promise.all(t.map(i))},setActive:function(e){n=e;for(let t of r.keys())try{t(e)}catch{}},getActive:function(){return n},resolve:async function(t,r){let o=c(t,r);if(o)return o;let s=r?.packKey??n,{ns:l,key:u}=a(t);if(r?.packKey){if(await i(s),o=c(t,r),o)return o;let n=e.get(s)?.pack?.meta?.extends??[];if(n.length&&(await Promise.all(n.map(i)),o=c(t,r),o))return o}else if(l){if(await i(l),o=c(t,r),o)return o;let n=e.get(l)?.pack?.meta?.extends??[];if(n.length&&(await Promise.all(n.map(i)),o=c(t,r),o))return o}else{if(await i(s),o=c(t,r),o)return o;let n=e.get(s)?.pack?.meta?.extends??[];if(n.length&&(await Promise.all(n.map(i)),o=c(t,r),o))return o}return null},registerAlias:function(e,n,r){t.has(e)||t.set(e,new Map),t.get(e).set(n,r)},has:function(e,t){return!!c(e,t)},getPack:function(t){return e.get(t??n)?.pack},hasPack:function(t){return!!e.get(t)?.pack},listPacks:function(){return Array.from(e.keys())},listIcons:function(t){let n=e.get(t)?.pack;return n?Object.keys(n.icons):[]},addActiveListener:function(e){let t=r.get(e);if(t)return t;let n=()=>{r.delete(e)};return r.set(e,n),n}}}var l=c();l.register(`base`,()=>Promise.resolve().then(()=>require("./Dc-AA0ooFLVdAhbT.cjs"))),l.register(`cf`,()=>Promise.resolve().then(()=>require("./DZSvmqU8nRas1uz6.cjs")));var u=e=>(0,n.jsx)(`svg`,{...e,children:(0,n.jsx)(`path`,{})}),d={Icon:`_Icon_16f7r_10`,"sxl-walk":`_sxl-walk_16f7r_1`},f=(0,t.memo)(r=>{let{iconKey:i,packKey:a,className:o,style:s,role:c,title:f,size:p,ariaHidden:m,propsSource:h,children:g,..._}=r,[v,y]=(0,t.useState)(null);(0,t.useEffect)(()=>{let t=!0,n=a,r=i;if(!r){let t=l.getPack(n);y({glyph:t?{svg:e.CommonUtils.EmptyArray}:void 0,pack:t??void 0,packKey:n??l.getActive()});return}if(r.includes(`:`)){let[e,t]=r.split(`:`);n=e,r=t}return l.resolve(r,{packKey:n}).then(e=>{t&&y(e)}),()=>{t=!1}},[i,a]);let b=v?.pack,x=v?.glyph,S=v?.packKey,C=x?x.svg:void 0,w=x&&!C?x.url:void 0,T=!x||C||w?void 0:x.emoji,E=p==null?void 0:typeof p==`number`?`${p}px`:p,D=(0,t.useMemo)(()=>[d.Icon,`icon`,o].filter(Boolean).join(` `),[o]),O=(0,t.useMemo)(()=>{let e={...s};return e[`--icon-size`]=E,e},[s,E]),k=c??(f?`img`:`presentation`),A=m??(!f||void 0),j=e=>(0,n.jsx)(`span`,{className:D,style:O,role:k,"aria-hidden":A,title:f,"data-icon-glyph":i,"data-icon-pack":S,..._,children:e});if(g)return j(g);if(T)return j((0,n.jsx)(`span`,{children:typeof T==`string`?T:T.text}));if(w)return j((0,n.jsx)(`img`,{src:w.src,alt:f??``}));if(x&&`react`in x){let e=x.react;return j((0,n.jsx)(e,{className:D,style:O,role:k,"aria-hidden":A,title:f,..._,...h}))}let M={viewBox:C?.viewBox??b?.meta.defaultViewBox??`0 0 24 24`};if(typeof C==`function`)return j(C(M)??(0,n.jsx)(u,{...M}));if(!C)return j((0,n.jsx)(u,{...M}));let N=C.paths;return j((0,n.jsx)(`svg`,{...M,children:N?N.map((e,t)=>(0,n.jsx)(`path`,{d:e.d,className:e.className,fill:e.fill,stroke:e.stroke,opacity:e.opacity,fillRule:e.fillRule,clipRule:e.clipRule},t)):null}))});function p(e){let{isWalking:r=!1,themedType:i=`primary`,speed:a=120,dashGap:o=3,dashLength:s=5,iconKey:c,packKey:l,style:u,className:d,...p}=e,m=(0,t.useMemo)(()=>{if(!r)return;let e={"--walk-duration":`${a*(o+s)}ms`,"--walk-dash-length":`${s}px`,"--walk-dash-gap":`${o}px`};return i&&i!==`primary`&&(e[`--icon-primary`]=`var(--sxl-color-${i})`),e},[r,a,o,s,i]);return(0,n.jsx)(f,{iconKey:c,packKey:l,className:(0,t.useMemo)(()=>r?d+` walking`:d,[r,d]),style:{...u,...m},...p})}Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return p}});
@@ -1 +0,0 @@
1
- var e=e=>Math.round(100*e)/100,t=t=>t.map(([t,n],r)=>`${r?`L`:`M`}${e(t)} ${e(n)}`).join(` `)+`Z`,n=(e,t)=>{let n=t*Math.PI/180,r=Math.cos(n),i=Math.sin(n);return e.map(([e,t])=>{let n=e-12,a=t-12;return[12+n*r-a*i,12+n*i+a*r]})},r=[[12,2.5],[19.5,12],[15.25,12],[15.25,21.5],[8.75,21.5],[8.75,12],[4.5,12]],i=e=>({svg:[{d:t(n(r,e)),className:`fill outlined`}]}),a=[[12,5.5],[21,18.5],[3,18.5]],o=e=>({svg:[{d:t(n(a,e)),className:`fill outlined`}]}),s=(...e)=>e.map(e=>({d:e,className:`fill outlined`})),c=(...e)=>e.map(e=>({d:e,className:`line heavy knockout`})),l=(...e)=>e.map(e=>({d:e,className:`line heavy`})),u=`M2 12a10 10 0 1 0 20 0a10 10 0 1 0-20 0`,d=[5,9,13,17].map((e,t)=>({d:`M${3+5*t} ${21-e}h3.5v${e}h-3.5z`})),f=e=>({svg:d.map((t,n)=>({...t,className:n<e?`fill`:`fill tertiary`}))}),p=[`M12 2a10 10 0 0 1 10 10h-10z`,`M22 12a10 10 0 0 1-10 10v-10z`,`M12 22a10 10 0 0 1-10-10h10z`,`M2 12a10 10 0 0 1 10-10v10z`],m=Array.from({length:10},(e,t)=>{let n=t%2==0?10.5:4.4,r=(36*t-90)*Math.PI/180;return[12+n*Math.cos(r),12+n*Math.sin(r)]}),h=(e,t)=>{let n=[],r=e=>{let t=n[n.length-1];t&&t[0]===e[0]&&t[1]===e[1]||n.push(e)},i=e.length;for(let n=0;n<i;n++){let a=e[n],o=e[(n+i-1)%i],s=a[0]<=t;if(s!==o[0]<=t){let e=(t-o[0])/(a[0]-o[0]);r([t,o[1]+e*(a[1]-o[1])])}s&&r(a)}return n},g=e=>({svg:[{d:t(m),className:e===2?`fill`:`fill tertiary`},...e===1?[{d:t(h(m,12)),className:`fill`}]:[]]}),_=[0,1,2,3].map(e=>`M${2.25+5*e} 9.75h4.5v4.5h-4.5z`),v=e=>({svg:_.map((t,n)=>({d:t,className:n<e?`fill`:`fill tertiary`}))}),y=e=>({svg:[...p.slice(0,e).map(e=>({d:e,className:`fill`})),{d:u,className:`line heavy`}]}),b={meta:{label:`Conditional Formatting`,license:`ISC (Lucide)`,defaultViewBox:`0 0 24 24`},icons:{arrowUp:i(0),arrowUpRight:i(45),arrowRight:i(90),arrowDownRight:i(135),arrowDown:i(180),triangleUpSharp:o(0),triangleDownSharp:o(180),dash:{svg:s(`M3 10.4h18v3.2H3z`)},circle:{svg:s(u)},circleRimmed:{svg:[{d:u,className:`fill outlined rimmed`}]},triangleUp:{svg:s(`M13.73 4a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z`)},diamond:{svg:s(`M2.7 10.3a2.41 2.41 0 0 0 0 3.41l7.59 7.59a2.41 2.41 0 0 0 3.41 0l7.59-7.59a2.41 2.41 0 0 0 0-3.41L13.7 2.71a2.41 2.41 0 0 0-3.41 0Z`)},flag:{svg:s(`M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2a8 8 0 0 1 4 1 8 8 0 0 0 4 1 6 6 0 0 0 2.8-.7 1 1 0 0 1 1.2.15 1 1 0 0 1 0 .85V13a1 1 0 0 1-.6.9A6 6 0 0 1 16 14a8 8 0 0 1-4-1 8 8 0 0 0-4-1 6 6 0 0 0-4 1.4`)},check:{svg:l(`M20 6.5 9.5 17 4 11.5`)},cross:{svg:l(`M18.5 5.5 5.5 18.5`,`M5.5 5.5 18.5 18.5`)},exclamation:{svg:l(`M12 4v10`,`M12 19.5h.01`)},circleCheck:{svg:[...s(u),...c(`m8 12.2 2.6 2.6L16 9.4`)]},circleCross:{svg:[...s(u),...c(`m15.5 8.5-7 7`,`m8.5 8.5 7 7`)]},circleExclamation:{svg:[...s(u),...c(`M12 6.5v6`,`M12 16.6h.01`)]},rating0:f(0),rating1:f(1),rating2:f(2),rating3:f(3),rating4:f(4),star0:g(0),star1:g(1),star2:g(2),boxes0:v(0),boxes1:v(1),boxes2:v(2),boxes3:v(3),boxes4:v(4),quarters0:y(0),quarters1:y(1),quarters2:y(2),quarters3:y(3),quarters4:y(4)}};exports.default=b;