@plexui/ui 0.61.1 → 0.62.1

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 (84) hide show
  1. package/dist/es/components/Accordion/Accordion.js +21 -2
  2. package/dist/es/components/Accordion/Accordion.js.map +1 -1
  3. package/dist/es/components/Button/NavigationButton.js +1 -1
  4. package/dist/es/components/Button/NavigationButton.js.map +1 -1
  5. package/dist/es/components/Dialog/Dialog.js +51 -3
  6. package/dist/es/components/Dialog/Dialog.js.map +1 -1
  7. package/dist/es/components/Dialog/sheetDrag.js +45 -12
  8. package/dist/es/components/Dialog/sheetDrag.js.map +1 -1
  9. package/dist/es/components/Field/Field.js +3 -1
  10. package/dist/es/components/Field/Field.js.map +1 -1
  11. package/dist/es/components/Icon/svg/Array.js +3 -3
  12. package/dist/es/components/Icon/svg/Array.js.map +1 -1
  13. package/dist/es/components/Icon/svg/Boolean.js +3 -3
  14. package/dist/es/components/Icon/svg/Boolean.js.map +1 -1
  15. package/dist/es/components/Icon/svg/Clipboard.js +3 -3
  16. package/dist/es/components/Icon/svg/Clipboard.js.map +1 -1
  17. package/dist/es/components/Icon/svg/Comment.js +3 -3
  18. package/dist/es/components/Icon/svg/Comment.js.map +1 -1
  19. package/dist/es/components/Icon/svg/Error.js +3 -3
  20. package/dist/es/components/Icon/svg/Error.js.map +1 -1
  21. package/dist/es/components/Icon/svg/Function.js +3 -3
  22. package/dist/es/components/Icon/svg/Function.js.map +1 -1
  23. package/dist/es/components/Icon/svg/Number.js +3 -3
  24. package/dist/es/components/Icon/svg/Number.js.map +1 -1
  25. package/dist/es/components/Icon/svg/Object.js +3 -3
  26. package/dist/es/components/Icon/svg/Object.js.map +1 -1
  27. package/dist/es/components/Icon/svg/Report.js +3 -3
  28. package/dist/es/components/Icon/svg/Report.js.map +1 -1
  29. package/dist/es/components/Icon/svg/Storage.js +3 -3
  30. package/dist/es/components/Icon/svg/Storage.js.map +1 -1
  31. package/dist/es/components/Icon/svg/String.js +3 -3
  32. package/dist/es/components/Icon/svg/String.js.map +1 -1
  33. package/dist/es/components/Icon/svg/Text.js +3 -3
  34. package/dist/es/components/Icon/svg/Text.js.map +1 -1
  35. package/dist/es/components/Menu/Menu.js +22 -1
  36. package/dist/es/components/Menu/Menu.js.map +1 -1
  37. package/dist/es/components/PlexUIProvider/PlexUIProvider.js +40 -6
  38. package/dist/es/components/PlexUIProvider/PlexUIProvider.js.map +1 -1
  39. package/dist/es/components/PlexUIProvider/androidRipple.js +98 -0
  40. package/dist/es/components/PlexUIProvider/androidRipple.js.map +1 -0
  41. package/dist/es/components/PlexUIProvider/index.js.map +1 -1
  42. package/dist/es/components/Select/Select.js +217 -39
  43. package/dist/es/components/Select/Select.js.map +1 -1
  44. package/dist/es/components/Sidebar/Sidebar.js +6 -3
  45. package/dist/es/components/Sidebar/Sidebar.js.map +1 -1
  46. package/dist/es/components/Sidebar/index.js +1 -1
  47. package/dist/es/components/Sidebar/index.js.map +1 -1
  48. package/dist/es/components/Toolbar/Toolbar.js +230 -5
  49. package/dist/es/components/Toolbar/Toolbar.js.map +1 -1
  50. package/dist/es/components/Toolbar/index.js.map +1 -1
  51. package/dist/es/lib/accordionMotion.js +144 -0
  52. package/dist/es/lib/accordionMotion.js.map +1 -0
  53. package/dist/es/lib/fieldRow.js +73 -1
  54. package/dist/es/lib/fieldRow.js.map +1 -1
  55. package/dist/es/lib/presentMotion.js +151 -0
  56. package/dist/es/lib/presentMotion.js.map +1 -0
  57. package/dist/es/styles/android.css +1 -0
  58. package/dist/types/components/Accordion/Accordion.d.ts +1 -1
  59. package/dist/types/components/Button/NavigationButton.d.ts +8 -1
  60. package/dist/types/components/Field/Field.d.ts +3 -0
  61. package/dist/types/components/Icon/svg/Array.d.ts +2 -2
  62. package/dist/types/components/Icon/svg/Boolean.d.ts +2 -2
  63. package/dist/types/components/Icon/svg/Clipboard.d.ts +2 -2
  64. package/dist/types/components/Icon/svg/Comment.d.ts +2 -2
  65. package/dist/types/components/Icon/svg/Error.d.ts +2 -2
  66. package/dist/types/components/Icon/svg/Function.d.ts +2 -2
  67. package/dist/types/components/Icon/svg/Number.d.ts +2 -2
  68. package/dist/types/components/Icon/svg/Object.d.ts +2 -2
  69. package/dist/types/components/Icon/svg/Report.d.ts +2 -2
  70. package/dist/types/components/Icon/svg/Storage.d.ts +2 -2
  71. package/dist/types/components/Icon/svg/String.d.ts +2 -2
  72. package/dist/types/components/Icon/svg/Text.d.ts +2 -2
  73. package/dist/types/components/PlexUIProvider/PlexUIProvider.d.ts +10 -3
  74. package/dist/types/components/PlexUIProvider/androidRipple.d.ts +9 -0
  75. package/dist/types/components/PlexUIProvider/index.d.ts +1 -1
  76. package/dist/types/components/Select/Select.d.ts +24 -0
  77. package/dist/types/components/Sidebar/Sidebar.d.ts +8 -0
  78. package/dist/types/components/Sidebar/index.d.ts +2 -2
  79. package/dist/types/components/Toolbar/Toolbar.d.ts +16 -1
  80. package/dist/types/components/Toolbar/index.d.ts +1 -1
  81. package/dist/types/lib/accordionMotion.d.ts +20 -0
  82. package/dist/types/lib/fieldRow.d.ts +14 -0
  83. package/dist/types/lib/presentMotion.d.ts +46 -0
  84. package/package.json +2 -2
@@ -1,6 +1,8 @@
1
1
  import { isPhoneLayout } from "../../lib/phoneLayout.js";
2
+ import { SHEET_EXIT_MS, SHEET_RELEASE_SPRING, springEasing } from "../../lib/presentMotion.js";
2
3
  // A bottom sheet follows the finger. A drag from its top 44px moves it 1:1, never up. Past 30% of its
3
- // height, or at 0.5px/ms, it closes; otherwise it returns. Buttons in that strip keep their press.
4
+ // height, or at 0.5px/ms, it closes; otherwise it returns. Either way it goes on at the finger's speed, on a spring
5
+ // that starts at it, as a sheet let go of does on iOS. Buttons in that strip keep their press.
4
6
  // As on iOS, a pull down that starts anywhere else moves the sheet too once the content under the finger is at
5
7
  // its top: the first move decides, down and mostly vertical with every scroller under the finger at its top
6
8
  // takes the sheet; up, sideways, a move another handler took, a field, a control that pans by itself or a
@@ -21,6 +23,11 @@ const EXITING = "[data-exiting], [data-exiting-active]";
21
23
  // A sheet at its full height says so: a sheet under it then steps back, as one presented from a sheet does on iOS.
22
24
  // A shorter sheet leaves the one under it in place, as a medium detent does.
23
25
  const FULL = "data-sheet-full";
26
+ // A sheet that grew out of its button would shrink back into it; one let go of leaves down instead (Dialog sets it).
27
+ const PRESENTED_FROM = "data-presented-from";
28
+ const EXIT_DURATION = "--dialog-exit-duration";
29
+ const EXIT_EASING = "--dialog-exit-easing";
30
+ const reducedMotion = (view) => Boolean(view.matchMedia?.("(prefers-reduced-motion: reduce)").matches);
24
31
  const watchFullHeight = (panel, view) => {
25
32
  if (!view.ResizeObserver)
26
33
  return () => { };
@@ -68,20 +75,27 @@ export const attachSheetDrag = (panel, close) => {
68
75
  stopSettling();
69
76
  clearInline();
70
77
  panel.style.removeProperty(DRAG_TRANSFORM);
78
+ panel.style.removeProperty(EXIT_DURATION);
79
+ panel.style.removeProperty(EXIT_EASING);
71
80
  };
72
81
  const onSettled = (event) => {
73
82
  if (event.target === panel && event.propertyName === "transform")
74
83
  clear();
75
84
  };
76
- const returnToRest = () => {
85
+ // `from` is where the sheet is let go of, `velocity` the finger's speed down in px/ms: the sheet starts back at it.
86
+ const returnToRest = (from = 0, velocity = 0) => {
77
87
  stopSettling();
78
- if (view.matchMedia?.("(prefers-reduced-motion: reduce)").matches) {
88
+ if (reducedMotion(view)) {
79
89
  clear();
80
90
  return;
81
91
  }
82
- panel.style.transition = "transform var(--motion-enter) var(--cubic-enter)";
92
+ // Back up is the way to rest: a finger still going down starts it the other way.
93
+ const spring = springEasing(SHEET_RELEASE_SPRING, from > 0 ? (-velocity * 1000) / from : 0, true);
94
+ panel.style.transition = `transform ${spring.ms}ms ${spring.easing}`;
83
95
  panel.style.transform = "";
84
96
  panel.style.removeProperty(DRAG_TRANSFORM);
97
+ panel.style.removeProperty(EXIT_DURATION);
98
+ panel.style.removeProperty(EXIT_EASING);
85
99
  const durationText = view.getComputedStyle(panel).transitionDuration;
86
100
  const duration = Number.parseFloat(durationText) * (durationText.endsWith("ms") ? 1 : 1000);
87
101
  if (duration === 0) {
@@ -170,29 +184,48 @@ export const attachSheetDrag = (panel, close) => {
170
184
  if (fromContent && travelled > DECIDE && event.cancelable)
171
185
  event.preventDefault();
172
186
  fromContent = false;
173
- // A finger that rested before lifting is no flick.
174
- const flick = speed > CLOSE_SPEED && event.timeStamp - lastTime < REST;
187
+ // A finger that rested before lifting is no flick, and gives the sheet no speed.
188
+ const moving = event.timeStamp - lastTime < REST;
189
+ const velocity = moving ? speed : 0;
190
+ const flick = speed > CLOSE_SPEED && moving;
175
191
  startY = null;
176
192
  if (travelled <= 0) {
177
193
  clear();
178
194
  return;
179
195
  }
180
- if (travelled > panel.getBoundingClientRect().height * CLOSE_SHARE || flick) {
196
+ const height = panel.getBoundingClientRect().height;
197
+ if (travelled > height * CLOSE_SHARE || flick) {
181
198
  // The normal/exit-start CSS states retain this exact release position.
182
199
  // No inline transform or transition may mask the active CSS exit.
183
200
  panel.style.setProperty(DRAG_TRANSFORM, `translateY(${travelled}px)`);
184
201
  clearInline();
202
+ // The rest of the way down goes on at the finger's speed, within the time the dialog gives its exit
203
+ const presentedFrom = panel.hasAttribute(PRESENTED_FROM);
204
+ panel.removeAttribute(PRESENTED_FROM);
205
+ if (!reducedMotion(view)) {
206
+ const left = Math.max(1, height - travelled);
207
+ const spring = springEasing(SHEET_RELEASE_SPRING, (Math.max(0, velocity) * 1000) / left, true);
208
+ panel.style.setProperty(EXIT_DURATION, `${Math.min(spring.ms, SHEET_EXIT_MS)}ms`);
209
+ panel.style.setProperty(EXIT_EASING, spring.easing);
210
+ }
185
211
  // An owner can veto close. Register before close, which can detach us.
186
212
  settleTimer = view.setTimeout(() => {
187
213
  settleTimer = undefined;
188
- if (panel.isConnected && !panel.closest(EXITING))
189
- returnToRest();
214
+ if (!panel.isConnected || panel.closest(EXITING))
215
+ return;
216
+ // An owner that kept the dialog open without saying so: it still goes back into its button later
217
+ if (presentedFrom)
218
+ panel.setAttribute(PRESENTED_FROM, "");
219
+ returnToRest(travelled, velocity);
190
220
  }, SETTLE);
191
- if (close(event) === false)
192
- returnToRest();
221
+ if (close(event) === false) {
222
+ if (presentedFrom)
223
+ panel.setAttribute(PRESENTED_FROM, "");
224
+ returnToRest(travelled, velocity);
225
+ }
193
226
  return;
194
227
  }
195
- returnToRest();
228
+ returnToRest(travelled, velocity);
196
229
  };
197
230
  const onCancel = () => {
198
231
  startY = null;
@@ -1 +1 @@
1
- {"version":3,"file":"sheetDrag.js","sourceRoot":"","sources":["../../../../src/components/Dialog/sheetDrag.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAErD,sGAAsG;AACtG,mGAAmG;AACnG,+GAA+G;AAC/G,4GAA4G;AAC5G,0GAA0G;AAC1G,sFAAsF;AACtF,MAAM,IAAI,GAAG,EAAE,CAAA;AACf,MAAM,WAAW,GAAG,GAAG,CAAA;AACvB,MAAM,WAAW,GAAG,GAAG,CAAA;AACvB,MAAM,IAAI,GAAG,GAAG,CAAA;AAChB,MAAM,MAAM,GAAG,GAAG,CAAA;AAClB,MAAM,WAAW,GAAG,qDAAqD,CAAA;AACzE,MAAM,QAAQ,GAAG,4FAA4F,CAAA;AAC7G,6GAA6G;AAC7G,MAAM,MAAM,GAAG,CAAC,CAAA;AAChB,yFAAyF;AACzF,MAAM,IAAI,GAAG,GAAG,CAAA;AAChB,MAAM,cAAc,GAAG,+BAA+B,CAAA;AACtD,MAAM,OAAO,GAAG,uCAAuC,CAAA;AACvD,mHAAmH;AACnH,6EAA6E;AAC7E,MAAM,IAAI,GAAG,iBAAiB,CAAA;AAE9B,MAAM,eAAe,GAAG,CAAC,KAAkB,EAAE,IAAgC,EAAE,EAAE;IAC/E,IAAI,CAAC,IAAI,CAAC,cAAc;QAAE,OAAO,GAAG,EAAE,GAAE,CAAC,CAAA;IACzC,MAAM,MAAM,GAAG,GAAG,EAAE;QAClB,MA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C,OAAO,GAAG,EAAE;QACV,WAAW,EAAE,CAAA;QACb,aAAa,EAAE,UAAU,EAAE,CAAA;QAC3B,KAAK,CAAC,mBAAmB,CAAC,YAAY,EAAE,OAAO,CAAC,CAAA;QAChD,KAAK,CAAC,mBAAmB,CAAC,WAAW,EAAE,MAAM,CAAC,CAAA;QAC9C,KAAK,CAAC,mBAAmB,CAAC,UAAU,EAAE,KAAK,CAAC,CAAA;QAC5C,KAAK,CAAC,mBAAmB,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAA;QAClD,MAAM,GAAG,IAAI,CAAA;QACb,OAAO,GAAG,IAAI,CAAA;QACd,KAAK,EAAE,CAAA;IACT,CAAC,CAAA;AACH,CAAC,CAAA","sourcesContent":["import { isPhoneLayout } from \"../../lib/phoneLayout\"\n\n// A bottom sheet follows the finger. A drag from its top 44px moves it 1:1, never up. Past 30% of its\n// height, or at 0.5px/ms, it closes; otherwise it returns. Buttons in that strip keep their press.\n// As on iOS, a pull down that starts anywhere else moves the sheet too once the content under the finger is at\n// its top: the first move decides, down and mostly vertical with every scroller under the finger at its top\n// takes the sheet; up, sideways, a move another handler took, a field, a control that pans by itself or a\n// finger that rested first (a hold: Sortable, a context menu) stays with the content.\nconst GRIP = 44\nconst CLOSE_SHARE = 0.3\nconst CLOSE_SPEED = 0.5\nconst REST = 100\nconst SETTLE = 400\nconst INTERACTIVE = \"a, button, input, select, textarea, [role='button']\"\nconst EDITABLE = \"input, textarea, select, [contenteditable]:not([contenteditable='false']), [role='slider']\"\n// The move that settles which way the finger goes, under the browser's own slop so it can still be cancelled\nconst DECIDE = 4\n// A finger that rests this long holds (a Sortable row, a context menu) rather than pulls\nconst HOLD = 200\nconst DRAG_TRANSFORM = \"--dialog-panel-drag-transform\"\nconst EXITING = \"[data-exiting], [data-exiting-active]\"\n// A sheet at its full height says so: a sheet under it then steps back, as one presented from a sheet does on iOS.\n// A shorter sheet leaves the one under it in place, as a medium detent does.\nconst FULL = \"data-sheet-full\"\n\nconst watchFullHeight = (panel: HTMLElement, view: Window & typeof globalThis) => {\n if (!view.ResizeObserver) return () => {}\n const update = () => {\n const max = Number.parseFloat(view.getComputedStyle(panel).maxHeight)\n const full = Number.isFinite(max) && panel.offsetHeight >= max - 1\n if (full !== panel.hasAttribute(FULL)) panel.toggleAttribute(FULL, full)\n }\n const observer = new view.ResizeObserver(update)\n // Its height with the border, as `offsetHeight` reads it\n observer.observe(panel, { box: \"border-box\" })\n update()\n return () => {\n observer.disconnect()\n panel.removeAttribute(FULL)\n }\n}\n\n/** `close` returns false when the owner keeps the dialog open: the sheet then returns at once. */\nexport const attachSheetDrag = (panel: HTMLElement, close: (event: TouchEvent) => boolean | void) => {\n const view = panel.ownerDocument.defaultView\n if (!view) return () => {}\n const unwatchFull = watchFullHeight(panel, view)\n let startY: number | null = null\n // A touch in the content that may become a pull, until its first move says which way it goes\n let pending: { x: number; y: number; time: number; target: Element } | null = null\n // The pull began in the content: its release must not press what lies under the finger\n let fromContent = false\n let lastY = 0\n let lastTime = 0\n let speed = 0\n let settleTimer: number | undefined\n\n const stopSettling = () => {\n if (settleTimer !== undefined) view.clearTimeout(settleTimer)\n settleTimer = undefined\n panel.removeEventListener(\"transitionend\", onSettled)\n }\n const clearInline = () => {\n panel.style.transition = \"\"\n panel.style.transform = \"\"\n }\n const clear = () => {\n stopSettling()\n clearInline()\n panel.style.removeProperty(DRAG_TRANSFORM)\n }\n const onSettled = (event: TransitionEvent) => {\n if (event.target === panel && event.propertyName === \"transform\") clear()\n }\n const returnToRest = () => {\n stopSettling()\n if (view.matchMedia?.(\"(prefers-reduced-motion: reduce)\").matches) {\n clear()\n return\n }\n panel.style.transition = \"transform var(--motion-enter) var(--cubic-enter)\"\n panel.style.transform = \"\"\n panel.style.removeProperty(DRAG_TRANSFORM)\n const durationText = view.getComputedStyle(panel).transitionDuration\n const duration = Number.parseFloat(durationText) * (durationText.endsWith(\"ms\") ? 1 : 1000)\n if (duration === 0) {\n clear()\n return\n }\n panel.addEventListener(\"transitionend\", onSettled)\n // A theme can lengthen the token or remove the transition altogether.\n // This cleanup must not cut a valid longer transition at the veto timeout.\n settleTimer = view.setTimeout(clear, Math.max(SETTLE, Number.isFinite(duration) ? duration : 0))\n }\n\n const begin = (clientY: number, time: number) => {\n stopSettling()\n startY = clientY\n lastY = clientY\n lastTime = time\n speed = 0\n }\n\n // Every element from the target up to the panel: one that can scroll up, or pans by itself, keeps the move.\n const contentTakes = (target: Element) => {\n for (let element: Element | null = target; element; element = element.parentElement) {\n if (element.scrollTop > 0) return true\n const touchAction = view.getComputedStyle(element).touchAction\n if (touchAction && touchAction !== \"auto\" && touchAction !== \"manipulation\" && !touchAction.includes(\"pan-y\")) return true\n if (element === panel) break\n }\n return false\n }\n\n const onStart = (event: TouchEvent) => {\n pending = null\n fromContent = false\n const phone = isPhoneLayout(panel)\n if (event.touches.length !== 1 || !phone || panel.closest(EXITING)) return\n const { clientX, clientY } = event.touches[0]\n const target = event.target instanceof view.Element ? event.target : null\n if (clientY - panel.getBoundingClientRect().top <= GRIP) {\n if (target?.closest(INTERACTIVE)) return\n begin(clientY, event.timeStamp)\n return\n }\n if (!target || target.closest(EDITABLE)) return\n pending = { x: clientX, y: clientY, time: event.timeStamp, target }\n }\n\n // The first move of a touch in the content: a pull down from the top takes the sheet from here on.\n const decide = (event: TouchEvent, touch: Touch) => {\n const start = pending!\n const dx = touch.clientX - start.x\n const dy = touch.clientY - start.y\n if (Math.max(Math.abs(dx), Math.abs(dy)) < DECIDE) return\n pending = null\n if (event.defaultPrevented || !event.cancelable || event.timeStamp - start.time > HOLD) return\n if (dy <= 0 || Math.abs(dx) > dy || contentTakes(start.target)) return\n fromContent = true\n begin(start.y, start.time)\n }\n\n const onMove = (event: TouchEvent) => {\n const touch = event.touches[0]\n if (startY === null && pending && touch) decide(event, touch)\n if (startY === null || !touch) return\n event.preventDefault()\n const { clientY } = touch\n speed = (clientY - lastY) / Math.max(1, event.timeStamp - lastTime)\n lastY = clientY\n lastTime = event.timeStamp\n panel.style.transition = \"none\"\n panel.style.transform = `translateY(${Math.max(0, clientY - startY)}px)`\n }\n\n const onEnd = (event: TouchEvent) => {\n pending = null\n if (startY === null) return\n const travelled = lastY - startY\n // A pull from the content ends where it lifted, not in a press of the row under it. A finger that barely\n // moved keeps its tap.\n if (fromContent && travelled > DECIDE && event.cancelable) event.preventDefault()\n fromContent = false\n // A finger that rested before lifting is no flick.\n const flick = speed > CLOSE_SPEED && event.timeStamp - lastTime < REST\n startY = null\n if (travelled <= 0) {\n clear()\n return\n }\n if (travelled > panel.getBoundingClientRect().height * CLOSE_SHARE || flick) {\n // The normal/exit-start CSS states retain this exact release position.\n // No inline transform or transition may mask the active CSS exit.\n panel.style.setProperty(DRAG_TRANSFORM, `translateY(${travelled}px)`)\n clearInline()\n // An owner can veto close. Register before close, which can detach us.\n settleTimer = view.setTimeout(() => {\n settleTimer = undefined\n if (panel.isConnected && !panel.closest(EXITING)) returnToRest()\n }, SETTLE)\n if (close(event) === false) returnToRest()\n return\n }\n returnToRest()\n }\n\n const onCancel = () => {\n startY = null\n pending = null\n fromContent = false\n clear()\n }\n\n // A retained panel can reopen before its exit completes. Its new entrance\n // must return to rest, not finish at the old gesture's release offset.\n const dialog = panel.closest(\"[data-plex-dialog]\")\n const stateObserver = dialog ? new view.MutationObserver((records) => {\n if (panel.style.getPropertyValue(DRAG_TRANSFORM) &&\n dialog.getAttribute(\"data-state\") === \"open\" &&\n records.some((record) => record.oldValue === \"closed\")) clear()\n }) : undefined\n stateObserver?.observe(dialog ?? panel, {\n attributes: true, attributeFilter: [\"data-state\"], attributeOldValue: true,\n })\n\n panel.addEventListener(\"touchstart\", onStart, { passive: true })\n panel.addEventListener(\"touchmove\", onMove, { passive: false })\n panel.addEventListener(\"touchend\", onEnd)\n panel.addEventListener(\"touchcancel\", onCancel)\n\n return () => {\n unwatchFull()\n stateObserver?.disconnect()\n panel.removeEventListener(\"touchstart\", onStart)\n panel.removeEventListener(\"touchmove\", onMove)\n panel.removeEventListener(\"touchend\", onEnd)\n panel.removeEventListener(\"touchcancel\", onCancel)\n startY = null\n pending = null\n clear()\n }\n}\n"]}
1
+ {"version":3,"file":"sheetDrag.js","sourceRoot":"","sources":["../../../../src/components/Dialog/sheetDrag.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AACrD,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAE3F,sGAAsG;AACtG,oHAAoH;AACpH,+FAA+F;AAC/F,+GAA+G;AAC/G,4GAA4G;AAC5G,0GAA0G;AAC1G,sFAAsF;AACtF,MAAM,IAAI,GAAG,EAAE,CAAA;AACf,MAAM,WAAW,GAAG,GAAG,CAAA;AACvB,MAAM,WAAW,GAAG,GAAG,CAAA;AACvB,MAAM,IAAI,GAAG,GAAG,CAAA;AAChB,MAAM,MAAM,GAAG,GAAG,CAAA;AAClB,MAAM,WAAW,GAAG,qDAAqD,CAAA;AACzE,MAAM,QAAQ,GAAG,4FAA4F,CAAA;AAC7G,6GAA6G;AAC7G,MAAM,MAAM,GAAG,CAAC,CAAA;AAChB,yFAAyF;AACzF,MAAM,IAAI,GAAG,GAAG,CAAA;AAChB,MAAM,cAAc,GAAG,+BAA+B,CAAA;AACtD,MAAM,OAAO,GAAG,uCAAuC,CAAA;AACvD,mHAAmH;AACnH,6EAA6E;AAC7E,MAAM,IAAI,GAAG,iBAAiB,CAAA;AAC9B,qHAAqH;AACrH,MAAM,cAAc,GAAG,qBAAqB,CAAA;AAC5C,MAAM,aAAa,GAAG,wBAAwB,CAAA;AAC9C,MAAM,WAAW,GAAG,sBAAsB,CAAA;AAE1C,MAAM,aAAa,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,kCAAkC,CAAC,CAAC,OAAO,CAAC,CAAA;AAE9G,MAAM,eAAe,GAAG,CAAC,KAAkB,EAAE,IAA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E,CAAA;IACrE,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAA;IACd,aAAa,EAAE,OAAO,CAAC,MAAM,IAAI,KAAK,EAAE;QACtC,UAAU,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC,YAAY,CAAC,EAAE,iBAAiB,EAAE,IAAI;KAC3E,CAAC,CAAA;IAEF,KAAK,CAAC,gBAAgB,CAAC,YAAY,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAA;IAChE,KAAK,CAAC,gBAAgB,CAAC,WAAW,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAA;IAC/D,KAAK,CAAC,gBAAgB,CAAC,UAAU,EAAE,KAAK,CAAC,CAAA;IACzC,KAAK,CAAC,gBAAgB,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAA;IAE/C,OAAO,GAAG,EAAE;QACV,WAAW,EAAE,CAAA;QACb,aAAa,EAAE,UAAU,EAAE,CAAA;QAC3B,KAAK,CAAC,mBAAmB,CAAC,YAAY,EAAE,OAAO,CAAC,CAAA;QAChD,KAAK,CAAC,mBAAmB,CAAC,WAAW,EAAE,MAAM,CAAC,CAAA;QAC9C,KAAK,CAAC,mBAAmB,CAAC,UAAU,EAAE,KAAK,CAAC,CAAA;QAC5C,KAAK,CAAC,mBAAmB,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAA;QAClD,MAAM,GAAG,IAAI,CAAA;QACb,OAAO,GAAG,IAAI,CAAA;QACd,KAAK,EAAE,CAAA;IACT,CAAC,CAAA;AACH,CAAC,CAAA","sourcesContent":["import { isPhoneLayout } from \"../../lib/phoneLayout\"\nimport { SHEET_EXIT_MS, SHEET_RELEASE_SPRING, springEasing } from \"../../lib/presentMotion\"\n\n// A bottom sheet follows the finger. A drag from its top 44px moves it 1:1, never up. Past 30% of its\n// height, or at 0.5px/ms, it closes; otherwise it returns. Either way it goes on at the finger's speed, on a spring\n// that starts at it, as a sheet let go of does on iOS. Buttons in that strip keep their press.\n// As on iOS, a pull down that starts anywhere else moves the sheet too once the content under the finger is at\n// its top: the first move decides, down and mostly vertical with every scroller under the finger at its top\n// takes the sheet; up, sideways, a move another handler took, a field, a control that pans by itself or a\n// finger that rested first (a hold: Sortable, a context menu) stays with the content.\nconst GRIP = 44\nconst CLOSE_SHARE = 0.3\nconst CLOSE_SPEED = 0.5\nconst REST = 100\nconst SETTLE = 400\nconst INTERACTIVE = \"a, button, input, select, textarea, [role='button']\"\nconst EDITABLE = \"input, textarea, select, [contenteditable]:not([contenteditable='false']), [role='slider']\"\n// The move that settles which way the finger goes, under the browser's own slop so it can still be cancelled\nconst DECIDE = 4\n// A finger that rests this long holds (a Sortable row, a context menu) rather than pulls\nconst HOLD = 200\nconst DRAG_TRANSFORM = \"--dialog-panel-drag-transform\"\nconst EXITING = \"[data-exiting], [data-exiting-active]\"\n// A sheet at its full height says so: a sheet under it then steps back, as one presented from a sheet does on iOS.\n// A shorter sheet leaves the one under it in place, as a medium detent does.\nconst FULL = \"data-sheet-full\"\n// A sheet that grew out of its button would shrink back into it; one let go of leaves down instead (Dialog sets it).\nconst PRESENTED_FROM = \"data-presented-from\"\nconst EXIT_DURATION = \"--dialog-exit-duration\"\nconst EXIT_EASING = \"--dialog-exit-easing\"\n\nconst reducedMotion = (view: Window) => Boolean(view.matchMedia?.(\"(prefers-reduced-motion: reduce)\").matches)\n\nconst watchFullHeight = (panel: HTMLElement, view: Window & typeof globalThis) => {\n if (!view.ResizeObserver) return () => {}\n const update = () => {\n const max = Number.parseFloat(view.getComputedStyle(panel).maxHeight)\n const full = Number.isFinite(max) && panel.offsetHeight >= max - 1\n if (full !== panel.hasAttribute(FULL)) panel.toggleAttribute(FULL, full)\n }\n const observer = new view.ResizeObserver(update)\n // Its height with the border, as `offsetHeight` reads it\n observer.observe(panel, { box: \"border-box\" })\n update()\n return () => {\n observer.disconnect()\n panel.removeAttribute(FULL)\n }\n}\n\n/** `close` returns false when the owner keeps the dialog open: the sheet then returns at once. */\nexport const attachSheetDrag = (panel: HTMLElement, close: (event: TouchEvent) => boolean | void) => {\n const view = panel.ownerDocument.defaultView\n if (!view) return () => {}\n const unwatchFull = watchFullHeight(panel, view)\n let startY: number | null = null\n // A touch in the content that may become a pull, until its first move says which way it goes\n let pending: { x: number; y: number; time: number; target: Element } | null = null\n // The pull began in the content: its release must not press what lies under the finger\n let fromContent = false\n let lastY = 0\n let lastTime = 0\n let speed = 0\n let settleTimer: number | undefined\n\n const stopSettling = () => {\n if (settleTimer !== undefined) view.clearTimeout(settleTimer)\n settleTimer = undefined\n panel.removeEventListener(\"transitionend\", onSettled)\n }\n const clearInline = () => {\n panel.style.transition = \"\"\n panel.style.transform = \"\"\n }\n const clear = () => {\n stopSettling()\n clearInline()\n panel.style.removeProperty(DRAG_TRANSFORM)\n panel.style.removeProperty(EXIT_DURATION)\n panel.style.removeProperty(EXIT_EASING)\n }\n const onSettled = (event: TransitionEvent) => {\n if (event.target === panel && event.propertyName === \"transform\") clear()\n }\n // `from` is where the sheet is let go of, `velocity` the finger's speed down in px/ms: the sheet starts back at it.\n const returnToRest = (from = 0, velocity = 0) => {\n stopSettling()\n if (reducedMotion(view)) {\n clear()\n return\n }\n // Back up is the way to rest: a finger still going down starts it the other way.\n const spring = springEasing(SHEET_RELEASE_SPRING, from > 0 ? (-velocity * 1000) / from : 0, true)\n panel.style.transition = `transform ${spring.ms}ms ${spring.easing}`\n panel.style.transform = \"\"\n panel.style.removeProperty(DRAG_TRANSFORM)\n panel.style.removeProperty(EXIT_DURATION)\n panel.style.removeProperty(EXIT_EASING)\n const durationText = view.getComputedStyle(panel).transitionDuration\n const duration = Number.parseFloat(durationText) * (durationText.endsWith(\"ms\") ? 1 : 1000)\n if (duration === 0) {\n clear()\n return\n }\n panel.addEventListener(\"transitionend\", onSettled)\n // A theme can lengthen the token or remove the transition altogether.\n // This cleanup must not cut a valid longer transition at the veto timeout.\n settleTimer = view.setTimeout(clear, Math.max(SETTLE, Number.isFinite(duration) ? duration : 0))\n }\n\n const begin = (clientY: number, time: number) => {\n stopSettling()\n startY = clientY\n lastY = clientY\n lastTime = time\n speed = 0\n }\n\n // Every element from the target up to the panel: one that can scroll up, or pans by itself, keeps the move.\n const contentTakes = (target: Element) => {\n for (let element: Element | null = target; element; element = element.parentElement) {\n if (element.scrollTop > 0) return true\n const touchAction = view.getComputedStyle(element).touchAction\n if (touchAction && touchAction !== \"auto\" && touchAction !== \"manipulation\" && !touchAction.includes(\"pan-y\")) return true\n if (element === panel) break\n }\n return false\n }\n\n const onStart = (event: TouchEvent) => {\n pending = null\n fromContent = false\n const phone = isPhoneLayout(panel)\n if (event.touches.length !== 1 || !phone || panel.closest(EXITING)) return\n const { clientX, clientY } = event.touches[0]\n const target = event.target instanceof view.Element ? event.target : null\n if (clientY - panel.getBoundingClientRect().top <= GRIP) {\n if (target?.closest(INTERACTIVE)) return\n begin(clientY, event.timeStamp)\n return\n }\n if (!target || target.closest(EDITABLE)) return\n pending = { x: clientX, y: clientY, time: event.timeStamp, target }\n }\n\n // The first move of a touch in the content: a pull down from the top takes the sheet from here on.\n const decide = (event: TouchEvent, touch: Touch) => {\n const start = pending!\n const dx = touch.clientX - start.x\n const dy = touch.clientY - start.y\n if (Math.max(Math.abs(dx), Math.abs(dy)) < DECIDE) return\n pending = null\n if (event.defaultPrevented || !event.cancelable || event.timeStamp - start.time > HOLD) return\n if (dy <= 0 || Math.abs(dx) > dy || contentTakes(start.target)) return\n fromContent = true\n begin(start.y, start.time)\n }\n\n const onMove = (event: TouchEvent) => {\n const touch = event.touches[0]\n if (startY === null && pending && touch) decide(event, touch)\n if (startY === null || !touch) return\n event.preventDefault()\n const { clientY } = touch\n speed = (clientY - lastY) / Math.max(1, event.timeStamp - lastTime)\n lastY = clientY\n lastTime = event.timeStamp\n panel.style.transition = \"none\"\n panel.style.transform = `translateY(${Math.max(0, clientY - startY)}px)`\n }\n\n const onEnd = (event: TouchEvent) => {\n pending = null\n if (startY === null) return\n const travelled = lastY - startY\n // A pull from the content ends where it lifted, not in a press of the row under it. A finger that barely\n // moved keeps its tap.\n if (fromContent && travelled > DECIDE && event.cancelable) event.preventDefault()\n fromContent = false\n // A finger that rested before lifting is no flick, and gives the sheet no speed.\n const moving = event.timeStamp - lastTime < REST\n const velocity = moving ? speed : 0\n const flick = speed > CLOSE_SPEED && moving\n startY = null\n if (travelled <= 0) {\n clear()\n return\n }\n const height = panel.getBoundingClientRect().height\n if (travelled > height * CLOSE_SHARE || flick) {\n // The normal/exit-start CSS states retain this exact release position.\n // No inline transform or transition may mask the active CSS exit.\n panel.style.setProperty(DRAG_TRANSFORM, `translateY(${travelled}px)`)\n clearInline()\n // The rest of the way down goes on at the finger's speed, within the time the dialog gives its exit\n const presentedFrom = panel.hasAttribute(PRESENTED_FROM)\n panel.removeAttribute(PRESENTED_FROM)\n if (!reducedMotion(view)) {\n const left = Math.max(1, height - travelled)\n const spring = springEasing(SHEET_RELEASE_SPRING, (Math.max(0, velocity) * 1000) / left, true)\n panel.style.setProperty(EXIT_DURATION, `${Math.min(spring.ms, SHEET_EXIT_MS)}ms`)\n panel.style.setProperty(EXIT_EASING, spring.easing)\n }\n // An owner can veto close. Register before close, which can detach us.\n settleTimer = view.setTimeout(() => {\n settleTimer = undefined\n if (!panel.isConnected || panel.closest(EXITING)) return\n // An owner that kept the dialog open without saying so: it still goes back into its button later\n if (presentedFrom) panel.setAttribute(PRESENTED_FROM, \"\")\n returnToRest(travelled, velocity)\n }, SETTLE)\n if (close(event) === false) {\n if (presentedFrom) panel.setAttribute(PRESENTED_FROM, \"\")\n returnToRest(travelled, velocity)\n }\n return\n }\n returnToRest(travelled, velocity)\n }\n\n const onCancel = () => {\n startY = null\n pending = null\n fromContent = false\n clear()\n }\n\n // A retained panel can reopen before its exit completes. Its new entrance\n // must return to rest, not finish at the old gesture's release offset.\n const dialog = panel.closest(\"[data-plex-dialog]\")\n const stateObserver = dialog ? new view.MutationObserver((records) => {\n if (panel.style.getPropertyValue(DRAG_TRANSFORM) &&\n dialog.getAttribute(\"data-state\") === \"open\" &&\n records.some((record) => record.oldValue === \"closed\")) clear()\n }) : undefined\n stateObserver?.observe(dialog ?? panel, {\n attributes: true, attributeFilter: [\"data-state\"], attributeOldValue: true,\n })\n\n panel.addEventListener(\"touchstart\", onStart, { passive: true })\n panel.addEventListener(\"touchmove\", onMove, { passive: false })\n panel.addEventListener(\"touchend\", onEnd)\n panel.addEventListener(\"touchcancel\", onCancel)\n\n return () => {\n unwatchFull()\n stateObserver?.disconnect()\n panel.removeEventListener(\"touchstart\", onStart)\n panel.removeEventListener(\"touchmove\", onMove)\n panel.removeEventListener(\"touchend\", onEnd)\n panel.removeEventListener(\"touchcancel\", onCancel)\n startY = null\n pending = null\n clear()\n }\n}\n"]}
@@ -2,7 +2,7 @@
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import clsx from "clsx";
4
4
  import { cloneElement, isValidElement, useId, useRef } from "react";
5
- import { FieldRowContext } from "../../lib/fieldRow.js";
5
+ import { FieldRowContext, useBlankPlaceholder } from "../../lib/fieldRow.js";
6
6
  import { FieldError } from "../FieldError/index.js";
7
7
  import s from "@plexui/styles/components/Field/Field.module.css";
8
8
  // What a row's press can reach: a form control, a popup trigger, a choice
@@ -28,6 +28,8 @@ export function Field({ label, hideLabel = false, description, errorMessage, lab
28
28
  const controlId = childProps?.id || fieldId;
29
29
  const descriptionId = description ? `${fieldId}-description` : undefined;
30
30
  const errorId = errorMessage ? `${fieldId}-error` : undefined;
31
+ // In the Plex Android look a text field under its shown label floats the label in its place while it is empty
32
+ useBlankPlaceholder(controlId, row && orientation === "vertical" && !hideLabel);
31
33
  // Build aria-describedby from description + error IDs
32
34
  const ariaDescribedBy = [descriptionId, errorId].filter(Boolean).join(" ") || undefined;
33
35
  const invalid = !!errorMessage;
@@ -1 +1 @@
1
- {"version":3,"file":"Field.js","sourceRoot":"","sources":["../../../../src/components/Field/Field.tsx"],"names":[],"mappings":"AA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nimport { FieldRowContext } from \"../../lib/fieldRow\"\nimport type { ControlSize } from \"../../types\"\nimport { FieldError } from \"../FieldError\"\n\nimport s from \"@plexui/styles/components/Field/Field.module.css\"\n\n// What a row's press can reach: a form control, a popup trigger, a choice\nconst ROW_CONTROL = 'input:not([type=\"hidden\"]):not([aria-hidden=\"true\"]), textarea, select, button, [role=\"button\"], [role=\"switch\"], [role=\"checkbox\"], [role=\"radio\"], [role=\"combobox\"]'\n\n/** The one control inside a wrapper that took the Field's id; a control nested in another (a clear button in a\n * trigger) counts as part of it. */\nfunction soleRowControl(wrapper: HTMLElement): HTMLElement | null {\n const found = Array.from(wrapper.querySelectorAll<HTMLElement>(ROW_CONTROL))\n const outer = found.filter((element) => !found.some((other) => other !== element && other.contains(element)))\n return outer.length === 1 ? outer[0] : null\n}\n\nexport type FieldChildProps = {\n id: string\n /** The label's id. Spread onto a control that the label's `for` cannot name, such as a Select trigger. */\n \"aria-labelledby\"?: string\n \"aria-describedby\"?: string\n \"aria-invalid\"?: boolean\n opticallyAlign?: \"start\" | \"end\"\n}\n\nconst CONTROL_SIZES: ReadonlySet<unknown> = new Set([\"3xs\", \"2xs\", \"xs\", \"sm\", \"md\", \"lg\", \"xl\", \"2xl\", \"3xl\"])\n\nexport type FieldProps = {\n /**\n * Label text for the field\n */\n label: React.ReactNode\n /**\n * Helper/description text displayed below the label.\n * Automatically linked via aria-describedby.\n */\n description?: React.ReactNode\n /**\n * Hides the label from view; it still names the control for assistive technology.\n * On a `row` the value or placeholder then starts at the row's edge, as an iOS cell that\n * shows only its placeholder or value (Notes, a title, a server's address), so the row is\n * vertical unless `orientation` says otherwise. Words that explain the field go in the\n * FieldGroup's `footer`.\n * @default false\n */\n hideLabel?: boolean\n /**\n * Error message displayed below the control.\n * When provided, the child control receives aria-invalid=\"true\".\n * Uses the existing FieldError component internally.\n */\n errorMessage?: React.ReactNode\n /**\n * Content placed at the end of the label row, such as a link that acts on\n * the field (\"Forgot password?\", \"Replace\").\n */\n labelAction?: React.ReactNode\n /**\n * On a `row`, a control at the end of the row after the row's own control. On a `fill`\n * row, such as a button that adds to a list, it stays on the list's first line, and on a\n * phone it stands beside the label with the list on a line of its own. On a row whose\n * control is a radio, such as an info button after a network or a VPN, the radio's mark\n * leads in the icon column and the action alone stands at the end.\n */\n action?: React.ReactNode\n /**\n * On a `row`, a symbol or an app's picture before the label, as an iOS cell's image: the label, its\n * description and the line above the row start after it. An `img` fills the column with the corners of an\n * app icon; an icon takes the symbol size.\n */\n icon?: React.ReactNode\n /**\n * Controls the font size of the label to visually match the child control's size.\n * Matches the ControlSize scale used by Input, Select, etc.\n * @default the child control's `size`, else \"md\"\n */\n size?: ControlSize\n /**\n * Display a required indicator (asterisk) after the label.\n * This is purely visual — it does not add the `required` HTML attribute.\n * @default false\n */\n required?: boolean\n /**\n * Layout direction of label and control.\n * - \"vertical\": label stacked above control (default)\n * - \"horizontal\": label beside control\n * @default \"horizontal\" on a `row` with a visible label, else \"vertical\"\n */\n orientation?: \"vertical\" | \"horizontal\"\n /**\n * One line of a FieldGroup: label at the start, control at the end, an error\n * under both. Other div props reach the root only on a row, so it can carry\n * a click or data attributes.\n * Clicking a non-interactive part of the row focuses its text editor or activates its choice control or popup trigger.\n * A control at the end of the row is a pill unless its own `pill` says otherwise.\n * @default false\n */\n row?: boolean\n /**\n * On a `row`, the control takes the rest of the line after the label, for a\n * list of tags and the like.\n * @default false\n */\n fill?: boolean\n /**\n * Allows overriding the auto-generated `id`. When provided, this becomes\n * the id set on the child control and the `htmlFor` on the label. A child's\n * own `id` wins over both: it stays, and the label's `htmlFor` follows it.\n */\n id?: string\n /**\n * Applies a negative margin on the child control using its gutter to\n * optically align the control's text with surrounding content.\n * Passed through to the child control via cloneElement / render prop.\n */\n opticallyAlign?: \"start\" | \"end\"\n /**\n * CSS class applied to the root wrapper\n */\n className?: string\n /**\n * The form control(s) to render.\n * - If a single ReactElement, Field clones it with { id, aria-describedby, aria-invalid },\n * keeping an `id` the child already has.\n * A child without its own `aria-label`, `aria-labelledby` or `label` also gets\n * `aria-labelledby` pointing at the label, which names controls the label's\n * `for` cannot reach, such as the Select and DatePicker triggers.\n * - If a function (render prop), it is called with { id, \"aria-labelledby\", \"aria-describedby\", \"aria-invalid\" }.\n */\n children: React.ReactElement | ((fieldProps: FieldChildProps) => React.ReactNode)\n} & Omit<React.ComponentProps<\"div\">, \"children\" | \"id\" | \"className\">\n\nexport function Field({\n label,\n hideLabel = false,\n description,\n errorMessage,\n labelAction,\n action,\n icon,\n size: sizeProp,\n required = false,\n orientation: orientationProp,\n row = false,\n fill = false,\n opticallyAlign,\n id: idProp,\n className,\n children,\n ...rest\n}: FieldProps) {\n const orientation = orientationProp ?? (row && !hideLabel ? \"horizontal\" : \"vertical\")\n const generatedId = useId()\n const forwardingRowClick = useRef(false)\n const fieldId = idProp || `field-${generatedId}`\n const labelId = `${fieldId}-label`\n const childProps = isValidElement<{ size?: unknown; id?: string }>(children) ? children.props : undefined\n const childSize = childProps?.size\n const size = sizeProp ?? (CONTROL_SIZES.has(childSize) ? (childSize as ControlSize) : \"md\")\n // The control's id, which the label's `htmlFor` has to match\n const controlId = childProps?.id || fieldId\n const descriptionId = description ? `${fieldId}-description` : undefined\n const errorId = errorMessage ? `${fieldId}-error` : undefined\n\n // Build aria-describedby from description + error IDs\n const ariaDescribedBy =\n [descriptionId, errorId].filter(Boolean).join(\" \") || undefined\n\n const invalid = !!errorMessage\n\n // Props to inject into the child control (`aria-labelledby` is added below:\n // to a render prop's props, and to a cloned child without a name of its own)\n const fieldChildProps: FieldChildProps = {\n id: controlId,\n \"aria-describedby\": ariaDescribedBy,\n \"aria-invalid\": invalid || undefined,\n ...(opticallyAlign && { opticallyAlign }),\n }\n\n // Resolve the children\n let resolvedChildren: React.ReactNode\n if (typeof children === \"function\") {\n resolvedChildren = children({ ...fieldChildProps, \"aria-labelledby\": labelId })\n } else if (isValidElement(children)) {\n const child = children as React.ReactElement<Record<string, unknown>>\n // Merge with the child's own associations instead of overwriting them\n const childDescribedBy = child.props[\"aria-describedby\"] as string | undefined\n const childNamed =\n child.props[\"aria-label\"] != null || child.props[\"aria-labelledby\"] != null || child.props.label != null\n resolvedChildren = cloneElement(child, {\n ...fieldChildProps,\n \"aria-describedby\":\n [childDescribedBy, ariaDescribedBy].filter(Boolean).join(\" \") || undefined,\n \"aria-invalid\": child.props[\"aria-invalid\"] ?? fieldChildProps[\"aria-invalid\"],\n ...(!childNamed && { \"aria-labelledby\": labelId }),\n })\n } else {\n resolvedChildren = children\n }\n\n const labelElement = (\n <label className={s.Label} id={labelId} htmlFor={controlId}>\n {label}\n {required && (\n <span className={s.RequiredIndicator} aria-hidden=\"true\">\n *\n </span>\n )}\n </label>\n )\n\n return (\n <FieldRowContext.Provider value={row && orientation === \"horizontal\"}>\n <div\n {...(row ? rest : undefined)}\n onClick={row ? (event) => {\n if (forwardingRowClick.current) return\n rest.onClick?.(event)\n if (event.defaultPrevented) return\n const target = event.target\n const root = event.currentTarget\n // The linked control remains the keyboard stop and owns its state.\n // Nested actions keep their own click, including a Select's clear button.\n if (!(target instanceof Element) || target.closest(\"[data-row]\") !== root ||\n target.closest('button, a, input, select, textarea, [role=\"button\"], [role=\"link\"], [contenteditable]:not([contenteditable=\"false\"])')) return\n const linkedControl = root.ownerDocument.getElementById(controlId)\n if (!linkedControl || linkedControl.closest(\"[data-row]\") !== root) return\n // Select's id belongs to its hidden form proxy inside the trigger.\n // Never search sibling popups, such as an InputGroup's unit action.\n const direct = linkedControl.matches('input[aria-hidden=\"true\"]')\n ? linkedControl.closest<HTMLElement>(':is(button, [role=\"button\"])[aria-haspopup]:not([aria-haspopup=\"false\"])') ?? linkedControl\n : linkedControl\n // A product's own wrapper may take the id (a row component around a Select): the row then reaches the one\n // control inside it, as an iOS cell does; with two controls, or none, the press stays on the row.\n const control = direct === linkedControl && !linkedControl.matches(ROW_CONTROL) ? soleRowControl(linkedControl) : direct\n // A control of a row nested in the wrapper belongs to that row\n if (!control || control.closest(\"[data-row]\") !== root) return\n if (control.matches(':disabled, [disabled], [data-disabled], [aria-disabled=\"true\"], [data-loading], [aria-busy=\"true\"]')) return\n const label = target.closest(\"label\")\n // Native labels already click their linked form control. A directly\n // linked span trigger, such as DatePicker's, needs forwarding instead.\n if (label && (label.htmlFor !== linkedControl.id || label.control === linkedControl)) return\n // The row is the hit area for its plain editor. Focus only: a synthetic\n // click would also run input actions or disturb native text selection.\n if (control.matches('textarea, input:not([type]), input[type=\"text\"], input[type=\"email\"], input[type=\"password\"], input[type=\"search\"], input[type=\"tel\"], input[type=\"url\"], input[type=\"number\"]') &&\n !control.matches('[hidden], [aria-hidden=\"true\"]')) {\n control.focus({ preventScroll: true })\n return\n }\n if (!control.matches('button[role=\"radio\"], button[role=\"checkbox\"], button[role=\"switch\"], input[type=\"radio\"], input[type=\"checkbox\"], :is(button, [role=\"button\"])[aria-haspopup]:not([aria-haspopup=\"false\"])')) return\n forwardingRowClick.current = true\n try {\n control.focus({ preventScroll: true })\n control.click()\n } finally {\n // Form controls can bubble their hidden input click after the render flush.\n queueMicrotask(() => { forwardingRowClick.current = false })\n }\n } : undefined}\n className={clsx(s.Field, className)}\n data-slot=\"field\"\n data-size={size}\n data-orientation={orientation}\n data-optically-align={opticallyAlign}\n data-row={row ? \"\" : undefined}\n data-fill={fill ? \"\" : undefined}\n data-label-hidden={hideLabel ? \"\" : undefined}\n >\n {row && icon ? <div className={s.Icon} aria-hidden=\"true\">{icon}</div> : null}\n <div className={s.LabelGroup}>\n {labelAction ? (\n <div className={s.LabelRow}>\n {labelElement}\n <div className={s.LabelAction}>{labelAction}</div>\n </div>\n ) : (\n labelElement\n )}\n {description && (\n <div className={s.Description} id={descriptionId}>\n {description}\n </div>\n )}\n </div>\n <div className={s.Content}>\n <div className={s.Control}>{resolvedChildren}</div>\n {errorMessage && (\n <FieldError id={errorId}>{errorMessage}</FieldError>\n )}\n </div>\n {row && action ? <div className={s.Action}>{action}</div> : null}\n </div>\n </FieldRowContext.Provider>\n )\n}\n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,CAAC,CAAC,cAAK,SAAS,EAAE,CAAC,CAAC,MAAM,YAAG,MAAM,GAAO,CAAC,CAAC,CAAC,IAAI,IAC5D,GACmB,CAC5B,CAAA;AACH,CAAC","sourcesContent":["\"use client\"\n\nimport clsx from \"clsx\"\nimport { cloneElement, isValidElement, useId, useRef } from \"react\"\n\nimport { FieldRowContext, useBlankPlaceholder } from \"../../lib/fieldRow\"\nimport type { ControlSize } from \"../../types\"\nimport { FieldError } from \"../FieldError\"\n\nimport s from \"@plexui/styles/components/Field/Field.module.css\"\n\n// What a row's press can reach: a form control, a popup trigger, a choice\nconst ROW_CONTROL = 'input:not([type=\"hidden\"]):not([aria-hidden=\"true\"]), textarea, select, button, [role=\"button\"], [role=\"switch\"], [role=\"checkbox\"], [role=\"radio\"], [role=\"combobox\"]'\n\n/** The one control inside a wrapper that took the Field's id; a control nested in another (a clear button in a\n * trigger) counts as part of it. */\nfunction soleRowControl(wrapper: HTMLElement): HTMLElement | null {\n const found = Array.from(wrapper.querySelectorAll<HTMLElement>(ROW_CONTROL))\n const outer = found.filter((element) => !found.some((other) => other !== element && other.contains(element)))\n return outer.length === 1 ? outer[0] : null\n}\n\nexport type FieldChildProps = {\n id: string\n /** The label's id. Spread onto a control that the label's `for` cannot name, such as a Select trigger. */\n \"aria-labelledby\"?: string\n \"aria-describedby\"?: string\n \"aria-invalid\"?: boolean\n opticallyAlign?: \"start\" | \"end\"\n}\n\nconst CONTROL_SIZES: ReadonlySet<unknown> = new Set([\"3xs\", \"2xs\", \"xs\", \"sm\", \"md\", \"lg\", \"xl\", \"2xl\", \"3xl\"])\n\nexport type FieldProps = {\n /**\n * Label text for the field\n */\n label: React.ReactNode\n /**\n * Helper/description text displayed below the label.\n * Automatically linked via aria-describedby.\n */\n description?: React.ReactNode\n /**\n * Hides the label from view; it still names the control for assistive technology.\n * On a `row` the value or placeholder then starts at the row's edge, as an iOS cell that\n * shows only its placeholder or value (Notes, a title, a server's address), so the row is\n * vertical unless `orientation` says otherwise. Words that explain the field go in the\n * FieldGroup's `footer`.\n * @default false\n */\n hideLabel?: boolean\n /**\n * Error message displayed below the control.\n * When provided, the child control receives aria-invalid=\"true\".\n * Uses the existing FieldError component internally.\n */\n errorMessage?: React.ReactNode\n /**\n * Content placed at the end of the label row, such as a link that acts on\n * the field (\"Forgot password?\", \"Replace\").\n */\n labelAction?: React.ReactNode\n /**\n * On a `row`, a control at the end of the row after the row's own control. On a `fill`\n * row, such as a button that adds to a list, it stays on the list's first line, and on a\n * phone it stands beside the label with the list on a line of its own. On a row whose\n * control is a radio, such as an info button after a network or a VPN, the radio's mark\n * leads in the icon column and the action alone stands at the end.\n */\n action?: React.ReactNode\n /**\n * On a `row`, a symbol or an app's picture before the label, as an iOS cell's image: the label, its\n * description and the line above the row start after it. An `img` fills the column with the corners of an\n * app icon; an icon takes the symbol size.\n */\n icon?: React.ReactNode\n /**\n * Controls the font size of the label to visually match the child control's size.\n * Matches the ControlSize scale used by Input, Select, etc.\n * @default the child control's `size`, else \"md\"\n */\n size?: ControlSize\n /**\n * Display a required indicator (asterisk) after the label.\n * This is purely visual — it does not add the `required` HTML attribute.\n * @default false\n */\n required?: boolean\n /**\n * Layout direction of label and control.\n * - \"vertical\": label stacked above control (default)\n * - \"horizontal\": label beside control\n * In the Plex Android look a vertical `row` whose control is an Input or a Textarea is a field\n * of an input card: the label stands in the empty field as its hint and floats over the value once the\n * field has the focus or a value, with a line under the field.\n * @default \"horizontal\" on a `row` with a visible label, else \"vertical\"\n */\n orientation?: \"vertical\" | \"horizontal\"\n /**\n * One line of a FieldGroup: label at the start, control at the end, an error\n * under both. Other div props reach the root only on a row, so it can carry\n * a click or data attributes.\n * Clicking a non-interactive part of the row focuses its text editor or activates its choice control or popup trigger.\n * A control at the end of the row is a pill unless its own `pill` says otherwise.\n * @default false\n */\n row?: boolean\n /**\n * On a `row`, the control takes the rest of the line after the label, for a\n * list of tags and the like.\n * @default false\n */\n fill?: boolean\n /**\n * Allows overriding the auto-generated `id`. When provided, this becomes\n * the id set on the child control and the `htmlFor` on the label. A child's\n * own `id` wins over both: it stays, and the label's `htmlFor` follows it.\n */\n id?: string\n /**\n * Applies a negative margin on the child control using its gutter to\n * optically align the control's text with surrounding content.\n * Passed through to the child control via cloneElement / render prop.\n */\n opticallyAlign?: \"start\" | \"end\"\n /**\n * CSS class applied to the root wrapper\n */\n className?: string\n /**\n * The form control(s) to render.\n * - If a single ReactElement, Field clones it with { id, aria-describedby, aria-invalid },\n * keeping an `id` the child already has.\n * A child without its own `aria-label`, `aria-labelledby` or `label` also gets\n * `aria-labelledby` pointing at the label, which names controls the label's\n * `for` cannot reach, such as the Select and DatePicker triggers.\n * - If a function (render prop), it is called with { id, \"aria-labelledby\", \"aria-describedby\", \"aria-invalid\" }.\n */\n children: React.ReactElement | ((fieldProps: FieldChildProps) => React.ReactNode)\n} & Omit<React.ComponentProps<\"div\">, \"children\" | \"id\" | \"className\">\n\nexport function Field({\n label,\n hideLabel = false,\n description,\n errorMessage,\n labelAction,\n action,\n icon,\n size: sizeProp,\n required = false,\n orientation: orientationProp,\n row = false,\n fill = false,\n opticallyAlign,\n id: idProp,\n className,\n children,\n ...rest\n}: FieldProps) {\n const orientation = orientationProp ?? (row && !hideLabel ? \"horizontal\" : \"vertical\")\n const generatedId = useId()\n const forwardingRowClick = useRef(false)\n const fieldId = idProp || `field-${generatedId}`\n const labelId = `${fieldId}-label`\n const childProps = isValidElement<{ size?: unknown; id?: string }>(children) ? children.props : undefined\n const childSize = childProps?.size\n const size = sizeProp ?? (CONTROL_SIZES.has(childSize) ? (childSize as ControlSize) : \"md\")\n // The control's id, which the label's `htmlFor` has to match\n const controlId = childProps?.id || fieldId\n const descriptionId = description ? `${fieldId}-description` : undefined\n const errorId = errorMessage ? `${fieldId}-error` : undefined\n\n // In the Plex Android look a text field under its shown label floats the label in its place while it is empty\n useBlankPlaceholder(controlId, row && orientation === \"vertical\" && !hideLabel)\n\n // Build aria-describedby from description + error IDs\n const ariaDescribedBy =\n [descriptionId, errorId].filter(Boolean).join(\" \") || undefined\n\n const invalid = !!errorMessage\n\n // Props to inject into the child control (`aria-labelledby` is added below:\n // to a render prop's props, and to a cloned child without a name of its own)\n const fieldChildProps: FieldChildProps = {\n id: controlId,\n \"aria-describedby\": ariaDescribedBy,\n \"aria-invalid\": invalid || undefined,\n ...(opticallyAlign && { opticallyAlign }),\n }\n\n // Resolve the children\n let resolvedChildren: React.ReactNode\n if (typeof children === \"function\") {\n resolvedChildren = children({ ...fieldChildProps, \"aria-labelledby\": labelId })\n } else if (isValidElement(children)) {\n const child = children as React.ReactElement<Record<string, unknown>>\n // Merge with the child's own associations instead of overwriting them\n const childDescribedBy = child.props[\"aria-describedby\"] as string | undefined\n const childNamed =\n child.props[\"aria-label\"] != null || child.props[\"aria-labelledby\"] != null || child.props.label != null\n resolvedChildren = cloneElement(child, {\n ...fieldChildProps,\n \"aria-describedby\":\n [childDescribedBy, ariaDescribedBy].filter(Boolean).join(\" \") || undefined,\n \"aria-invalid\": child.props[\"aria-invalid\"] ?? fieldChildProps[\"aria-invalid\"],\n ...(!childNamed && { \"aria-labelledby\": labelId }),\n })\n } else {\n resolvedChildren = children\n }\n\n const labelElement = (\n <label className={s.Label} id={labelId} htmlFor={controlId}>\n {label}\n {required && (\n <span className={s.RequiredIndicator} aria-hidden=\"true\">\n *\n </span>\n )}\n </label>\n )\n\n return (\n <FieldRowContext.Provider value={row && orientation === \"horizontal\"}>\n <div\n {...(row ? rest : undefined)}\n onClick={row ? (event) => {\n if (forwardingRowClick.current) return\n rest.onClick?.(event)\n if (event.defaultPrevented) return\n const target = event.target\n const root = event.currentTarget\n // The linked control remains the keyboard stop and owns its state.\n // Nested actions keep their own click, including a Select's clear button.\n if (!(target instanceof Element) || target.closest(\"[data-row]\") !== root ||\n target.closest('button, a, input, select, textarea, [role=\"button\"], [role=\"link\"], [contenteditable]:not([contenteditable=\"false\"])')) return\n const linkedControl = root.ownerDocument.getElementById(controlId)\n if (!linkedControl || linkedControl.closest(\"[data-row]\") !== root) return\n // Select's id belongs to its hidden form proxy inside the trigger.\n // Never search sibling popups, such as an InputGroup's unit action.\n const direct = linkedControl.matches('input[aria-hidden=\"true\"]')\n ? linkedControl.closest<HTMLElement>(':is(button, [role=\"button\"])[aria-haspopup]:not([aria-haspopup=\"false\"])') ?? linkedControl\n : linkedControl\n // A product's own wrapper may take the id (a row component around a Select): the row then reaches the one\n // control inside it, as an iOS cell does; with two controls, or none, the press stays on the row.\n const control = direct === linkedControl && !linkedControl.matches(ROW_CONTROL) ? soleRowControl(linkedControl) : direct\n // A control of a row nested in the wrapper belongs to that row\n if (!control || control.closest(\"[data-row]\") !== root) return\n if (control.matches(':disabled, [disabled], [data-disabled], [aria-disabled=\"true\"], [data-loading], [aria-busy=\"true\"]')) return\n const label = target.closest(\"label\")\n // Native labels already click their linked form control. A directly\n // linked span trigger, such as DatePicker's, needs forwarding instead.\n if (label && (label.htmlFor !== linkedControl.id || label.control === linkedControl)) return\n // The row is the hit area for its plain editor. Focus only: a synthetic\n // click would also run input actions or disturb native text selection.\n if (control.matches('textarea, input:not([type]), input[type=\"text\"], input[type=\"email\"], input[type=\"password\"], input[type=\"search\"], input[type=\"tel\"], input[type=\"url\"], input[type=\"number\"]') &&\n !control.matches('[hidden], [aria-hidden=\"true\"]')) {\n control.focus({ preventScroll: true })\n return\n }\n if (!control.matches('button[role=\"radio\"], button[role=\"checkbox\"], button[role=\"switch\"], input[type=\"radio\"], input[type=\"checkbox\"], :is(button, [role=\"button\"])[aria-haspopup]:not([aria-haspopup=\"false\"])')) return\n forwardingRowClick.current = true\n try {\n control.focus({ preventScroll: true })\n control.click()\n } finally {\n // Form controls can bubble their hidden input click after the render flush.\n queueMicrotask(() => { forwardingRowClick.current = false })\n }\n } : undefined}\n className={clsx(s.Field, className)}\n data-slot=\"field\"\n data-size={size}\n data-orientation={orientation}\n data-optically-align={opticallyAlign}\n data-row={row ? \"\" : undefined}\n data-fill={fill ? \"\" : undefined}\n data-label-hidden={hideLabel ? \"\" : undefined}\n >\n {row && icon ? <div className={s.Icon} aria-hidden=\"true\">{icon}</div> : null}\n <div className={s.LabelGroup}>\n {labelAction ? (\n <div className={s.LabelRow}>\n {labelElement}\n <div className={s.LabelAction}>{labelAction}</div>\n </div>\n ) : (\n labelElement\n )}\n {description && (\n <div className={s.Description} id={descriptionId}>\n {description}\n </div>\n )}\n </div>\n <div className={s.Content}>\n <div className={s.Control}>{resolvedChildren}</div>\n {errorMessage && (\n <FieldError id={errorId}>{errorMessage}</FieldError>\n )}\n </div>\n {row && action ? <div className={s.Action}>{action}</div> : null}\n </div>\n </FieldRowContext.Provider>\n )\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- const Array = (props) => (_jsx("svg", { width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", ...props, children: _jsx("path", { d: "M3 16.8V7.2C3 6.657 2.999 6.188 3.03 5.805C3.063 5.409 3.134 5.016 3.327 4.638C3.61453 4.07407 4.07307 3.61553 4.637 3.328C5.016 3.134 5.409 3.063 5.805 3.03C6.188 3 6.657 3 7.2 3H8C8.26522 3 8.51957 3.10536 8.70711 3.2929C8.89465 3.48043 9 3.73479 9 4C9 4.26522 8.89465 4.51957 8.70711 4.70711C8.51957 4.89465 8.26522 5 8 5H7.2C6.624 5 6.251 5.001 5.968 5.024C5.696 5.047 5.595 5.084 5.546 5.109C5.35785 5.20488 5.20488 5.35785 5.109 5.546C5.084 5.596 5.047 5.696 5.024 5.968C5.001 6.25 5 6.624 5 7.2V16.8C5 17.376 5.001 17.749 5.024 18.032C5.047 18.304 5.084 18.405 5.109 18.454C5.205 18.642 5.358 18.794 5.546 18.891C5.596 18.916 5.696 18.953 5.968 18.976C6.251 18.999 6.624 19 7.2 19H8C8.26522 19 8.51957 19.1054 8.70711 19.2929C8.89465 19.4804 9 19.7348 9 20C9 20.2652 8.89465 20.5196 8.70711 20.7071C8.51957 20.8946 8.26522 21 8 21H7.2C6.657 21 6.188 21.001 5.805 20.97C5.409 20.937 5.016 20.866 4.638 20.673C4.07407 20.3855 3.61553 19.9269 3.328 19.363C3.134 18.984 3.063 18.591 3.03 18.195C3 17.812 3 17.343 3 16.8ZM19 16.8V7.2C19 6.624 18.999 6.251 18.976 5.968C18.953 5.696 18.916 5.595 18.891 5.546C18.7952 5.35781 18.6422 5.20482 18.454 5.109C18.404 5.084 18.304 5.047 18.032 5.024C17.6218 5.00107 17.2108 4.99306 16.8 5H16C15.7348 5 15.4804 4.89465 15.2929 4.70711C15.1054 4.51957 15 4.26522 15 4C15 3.73479 15.1054 3.48043 15.2929 3.2929C15.4804 3.10536 15.7348 3 16 3H16.8C17.343 3 17.812 2.999 18.195 3.03C18.591 3.063 18.984 3.134 19.362 3.327C19.9259 3.61453 20.3845 4.07307 20.672 4.637C20.866 5.016 20.937 5.409 20.97 5.805C21.001 6.188 21 6.657 21 7.2V16.8C21 17.343 21.001 17.812 20.97 18.195C20.937 18.591 20.866 18.984 20.673 19.362C20.3855 19.9259 19.9269 20.3845 19.363 20.672C18.984 20.866 18.591 20.937 18.195 20.97C17.812 21.001 17.343 21 16.8 21H16C15.7348 21 15.4804 20.8946 15.2929 20.7071C15.1054 20.5196 15 20.2652 15 20C15 19.7348 15.1054 19.4804 15.2929 19.2929C15.4804 19.1054 15.7348 19 16 19H16.8C17.376 19 17.749 18.999 18.032 18.976C18.304 18.953 18.405 18.916 18.454 18.891C18.6422 18.7952 18.7952 18.6422 18.891 18.454C18.916 18.404 18.953 18.304 18.976 18.032C18.999 17.749 19 17.376 19 16.8Z", fill: "currentColor" }) }));
3
- Array.displayName = "Array";
4
- export default Array;
2
+ const ArrayIcon = (props) => (_jsx("svg", { width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", ...props, children: _jsx("path", { d: "M3 16.8V7.2C3 6.657 2.999 6.188 3.03 5.805C3.063 5.409 3.134 5.016 3.327 4.638C3.61453 4.07407 4.07307 3.61553 4.637 3.328C5.016 3.134 5.409 3.063 5.805 3.03C6.188 3 6.657 3 7.2 3H8C8.26522 3 8.51957 3.10536 8.70711 3.2929C8.89465 3.48043 9 3.73479 9 4C9 4.26522 8.89465 4.51957 8.70711 4.70711C8.51957 4.89465 8.26522 5 8 5H7.2C6.624 5 6.251 5.001 5.968 5.024C5.696 5.047 5.595 5.084 5.546 5.109C5.35785 5.20488 5.20488 5.35785 5.109 5.546C5.084 5.596 5.047 5.696 5.024 5.968C5.001 6.25 5 6.624 5 7.2V16.8C5 17.376 5.001 17.749 5.024 18.032C5.047 18.304 5.084 18.405 5.109 18.454C5.205 18.642 5.358 18.794 5.546 18.891C5.596 18.916 5.696 18.953 5.968 18.976C6.251 18.999 6.624 19 7.2 19H8C8.26522 19 8.51957 19.1054 8.70711 19.2929C8.89465 19.4804 9 19.7348 9 20C9 20.2652 8.89465 20.5196 8.70711 20.7071C8.51957 20.8946 8.26522 21 8 21H7.2C6.657 21 6.188 21.001 5.805 20.97C5.409 20.937 5.016 20.866 4.638 20.673C4.07407 20.3855 3.61553 19.9269 3.328 19.363C3.134 18.984 3.063 18.591 3.03 18.195C3 17.812 3 17.343 3 16.8ZM19 16.8V7.2C19 6.624 18.999 6.251 18.976 5.968C18.953 5.696 18.916 5.595 18.891 5.546C18.7952 5.35781 18.6422 5.20482 18.454 5.109C18.404 5.084 18.304 5.047 18.032 5.024C17.6218 5.00107 17.2108 4.99306 16.8 5H16C15.7348 5 15.4804 4.89465 15.2929 4.70711C15.1054 4.51957 15 4.26522 15 4C15 3.73479 15.1054 3.48043 15.2929 3.2929C15.4804 3.10536 15.7348 3 16 3H16.8C17.343 3 17.812 2.999 18.195 3.03C18.591 3.063 18.984 3.134 19.362 3.327C19.9259 3.61453 20.3845 4.07307 20.672 4.637C20.866 5.016 20.937 5.409 20.97 5.805C21.001 6.188 21 6.657 21 7.2V16.8C21 17.343 21.001 17.812 20.97 18.195C20.937 18.591 20.866 18.984 20.673 19.362C20.3855 19.9259 19.9269 20.3845 19.363 20.672C18.984 20.866 18.591 20.937 18.195 20.97C17.812 21.001 17.343 21 16.8 21H16C15.7348 21 15.4804 20.8946 15.2929 20.7071C15.1054 20.5196 15 20.2652 15 20C15 19.7348 15.1054 19.4804 15.2929 19.2929C15.4804 19.1054 15.7348 19 16 19H16.8C17.376 19 17.749 18.999 18.032 18.976C18.304 18.953 18.405 18.916 18.454 18.891C18.6422 18.7952 18.7952 18.6422 18.891 18.454C18.916 18.404 18.953 18.304 18.976 18.032C18.999 17.749 19 17.376 19 16.8Z", fill: "currentColor" }) }));
3
+ ArrayIcon.displayName = "Array";
4
+ export default ArrayIcon;
5
5
  //# sourceMappingURL=Array.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Array.js","sourceRoot":"","sources":["../../../../../src/components/Icon/svg/Array.tsx"],"names":[],"mappings":";AACA,MAAM,KAAK,GAAG,CAAC,KAA8B,EAAE,EAAE,CAAC,CAChD,cAAK,KAAK,EAAC,KAAK,EAAC,MAAM,EAAC,KAAK,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,cAAc,iBAAa,MAAM,KAAK,KAAK,YAChG,eACE,CAAC,EAAC,0lEAA0lE,EAC5lE,IAAI,EAAC,cAAc,GACnB,GACE,CACP,CAAA;AACD,KAAK,CAAC,WAAW,GAAG,OAAO,CAAA;AAC3B,eAAe,KAAK,CAAA","sourcesContent":["import type { SVGProps } from \"react\"\nconst Array = (props: SVGProps<SVGSVGElement>) => (\n <svg width=\"1em\" height=\"1em\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\" {...props}>\n <path\n d=\"M3 16.8V7.2C3 6.657 2.999 6.188 3.03 5.805C3.063 5.409 3.134 5.016 3.327 4.638C3.61453 4.07407 4.07307 3.61553 4.637 3.328C5.016 3.134 5.409 3.063 5.805 3.03C6.188 3 6.657 3 7.2 3H8C8.26522 3 8.51957 3.10536 8.70711 3.2929C8.89465 3.48043 9 3.73479 9 4C9 4.26522 8.89465 4.51957 8.70711 4.70711C8.51957 4.89465 8.26522 5 8 5H7.2C6.624 5 6.251 5.001 5.968 5.024C5.696 5.047 5.595 5.084 5.546 5.109C5.35785 5.20488 5.20488 5.35785 5.109 5.546C5.084 5.596 5.047 5.696 5.024 5.968C5.001 6.25 5 6.624 5 7.2V16.8C5 17.376 5.001 17.749 5.024 18.032C5.047 18.304 5.084 18.405 5.109 18.454C5.205 18.642 5.358 18.794 5.546 18.891C5.596 18.916 5.696 18.953 5.968 18.976C6.251 18.999 6.624 19 7.2 19H8C8.26522 19 8.51957 19.1054 8.70711 19.2929C8.89465 19.4804 9 19.7348 9 20C9 20.2652 8.89465 20.5196 8.70711 20.7071C8.51957 20.8946 8.26522 21 8 21H7.2C6.657 21 6.188 21.001 5.805 20.97C5.409 20.937 5.016 20.866 4.638 20.673C4.07407 20.3855 3.61553 19.9269 3.328 19.363C3.134 18.984 3.063 18.591 3.03 18.195C3 17.812 3 17.343 3 16.8ZM19 16.8V7.2C19 6.624 18.999 6.251 18.976 5.968C18.953 5.696 18.916 5.595 18.891 5.546C18.7952 5.35781 18.6422 5.20482 18.454 5.109C18.404 5.084 18.304 5.047 18.032 5.024C17.6218 5.00107 17.2108 4.99306 16.8 5H16C15.7348 5 15.4804 4.89465 15.2929 4.70711C15.1054 4.51957 15 4.26522 15 4C15 3.73479 15.1054 3.48043 15.2929 3.2929C15.4804 3.10536 15.7348 3 16 3H16.8C17.343 3 17.812 2.999 18.195 3.03C18.591 3.063 18.984 3.134 19.362 3.327C19.9259 3.61453 20.3845 4.07307 20.672 4.637C20.866 5.016 20.937 5.409 20.97 5.805C21.001 6.188 21 6.657 21 7.2V16.8C21 17.343 21.001 17.812 20.97 18.195C20.937 18.591 20.866 18.984 20.673 19.362C20.3855 19.9259 19.9269 20.3845 19.363 20.672C18.984 20.866 18.591 20.937 18.195 20.97C17.812 21.001 17.343 21 16.8 21H16C15.7348 21 15.4804 20.8946 15.2929 20.7071C15.1054 20.5196 15 20.2652 15 20C15 19.7348 15.1054 19.4804 15.2929 19.2929C15.4804 19.1054 15.7348 19 16 19H16.8C17.376 19 17.749 18.999 18.032 18.976C18.304 18.953 18.405 18.916 18.454 18.891C18.6422 18.7952 18.7952 18.6422 18.891 18.454C18.916 18.404 18.953 18.304 18.976 18.032C18.999 17.749 19 17.376 19 16.8Z\"\n fill=\"currentColor\"\n />\n </svg>\n)\nArray.displayName = \"Array\"\nexport default Array\n"]}
1
+ {"version":3,"file":"Array.js","sourceRoot":"","sources":["../../../../../src/components/Icon/svg/Array.tsx"],"names":[],"mappings":";AACA,MAAM,SAAS,GAAG,CAAC,KAA8B,EAAE,EAAE,CAAC,CACpD,cAAK,KAAK,EAAC,KAAK,EAAC,MAAM,EAAC,KAAK,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,cAAc,iBAAa,MAAM,KAAK,KAAK,YAChG,eACE,CAAC,EAAC,0lEAA0lE,EAC5lE,IAAI,EAAC,cAAc,GACnB,GACE,CACP,CAAA;AACD,SAAS,CAAC,WAAW,GAAG,OAAO,CAAA;AAC/B,eAAe,SAAS,CAAA","sourcesContent":["import type { SVGProps } from \"react\"\nconst ArrayIcon = (props: SVGProps<SVGSVGElement>) => (\n <svg width=\"1em\" height=\"1em\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\" {...props}>\n <path\n d=\"M3 16.8V7.2C3 6.657 2.999 6.188 3.03 5.805C3.063 5.409 3.134 5.016 3.327 4.638C3.61453 4.07407 4.07307 3.61553 4.637 3.328C5.016 3.134 5.409 3.063 5.805 3.03C6.188 3 6.657 3 7.2 3H8C8.26522 3 8.51957 3.10536 8.70711 3.2929C8.89465 3.48043 9 3.73479 9 4C9 4.26522 8.89465 4.51957 8.70711 4.70711C8.51957 4.89465 8.26522 5 8 5H7.2C6.624 5 6.251 5.001 5.968 5.024C5.696 5.047 5.595 5.084 5.546 5.109C5.35785 5.20488 5.20488 5.35785 5.109 5.546C5.084 5.596 5.047 5.696 5.024 5.968C5.001 6.25 5 6.624 5 7.2V16.8C5 17.376 5.001 17.749 5.024 18.032C5.047 18.304 5.084 18.405 5.109 18.454C5.205 18.642 5.358 18.794 5.546 18.891C5.596 18.916 5.696 18.953 5.968 18.976C6.251 18.999 6.624 19 7.2 19H8C8.26522 19 8.51957 19.1054 8.70711 19.2929C8.89465 19.4804 9 19.7348 9 20C9 20.2652 8.89465 20.5196 8.70711 20.7071C8.51957 20.8946 8.26522 21 8 21H7.2C6.657 21 6.188 21.001 5.805 20.97C5.409 20.937 5.016 20.866 4.638 20.673C4.07407 20.3855 3.61553 19.9269 3.328 19.363C3.134 18.984 3.063 18.591 3.03 18.195C3 17.812 3 17.343 3 16.8ZM19 16.8V7.2C19 6.624 18.999 6.251 18.976 5.968C18.953 5.696 18.916 5.595 18.891 5.546C18.7952 5.35781 18.6422 5.20482 18.454 5.109C18.404 5.084 18.304 5.047 18.032 5.024C17.6218 5.00107 17.2108 4.99306 16.8 5H16C15.7348 5 15.4804 4.89465 15.2929 4.70711C15.1054 4.51957 15 4.26522 15 4C15 3.73479 15.1054 3.48043 15.2929 3.2929C15.4804 3.10536 15.7348 3 16 3H16.8C17.343 3 17.812 2.999 18.195 3.03C18.591 3.063 18.984 3.134 19.362 3.327C19.9259 3.61453 20.3845 4.07307 20.672 4.637C20.866 5.016 20.937 5.409 20.97 5.805C21.001 6.188 21 6.657 21 7.2V16.8C21 17.343 21.001 17.812 20.97 18.195C20.937 18.591 20.866 18.984 20.673 19.362C20.3855 19.9259 19.9269 20.3845 19.363 20.672C18.984 20.866 18.591 20.937 18.195 20.97C17.812 21.001 17.343 21 16.8 21H16C15.7348 21 15.4804 20.8946 15.2929 20.7071C15.1054 20.5196 15 20.2652 15 20C15 19.7348 15.1054 19.4804 15.2929 19.2929C15.4804 19.1054 15.7348 19 16 19H16.8C17.376 19 17.749 18.999 18.032 18.976C18.304 18.953 18.405 18.916 18.454 18.891C18.6422 18.7952 18.7952 18.6422 18.891 18.454C18.916 18.404 18.953 18.304 18.976 18.032C18.999 17.749 19 17.376 19 16.8Z\"\n fill=\"currentColor\"\n />\n </svg>\n)\nArrayIcon.displayName = \"Array\"\nexport default ArrayIcon\n"]}
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- const Boolean = (props) => (_jsx("svg", { width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", ...props, children: _jsx("path", { d: "M15.2 3C16.024 3 16.702 2.999 17.252 3.044C17.814 3.09 18.332 3.188 18.816 3.436C19.5686 3.81955 20.1805 4.43143 20.564 5.184C20.812 5.669 20.91 6.186 20.956 6.748C21.001 7.298 21 7.976 21 8.8V15.2C21 16.024 21.001 16.702 20.956 17.252C20.91 17.814 20.812 18.332 20.564 18.816C20.1804 19.5685 19.5685 20.1804 18.816 20.564C18.331 20.812 17.814 20.91 17.252 20.956C16.702 21.001 16.024 21 15.2 21H8.8C7.976 21 7.298 21.001 6.748 20.956C6.186 20.91 5.668 20.812 5.184 20.564C4.43143 20.1805 3.81955 19.5686 3.436 18.816C3.188 18.331 3.09 17.814 3.044 17.252C2.999 16.702 3 16.024 3 15.2V8.8C3 7.976 2.999 7.298 3.044 6.748C3.09 6.186 3.188 5.668 3.436 5.184C3.81955 4.43143 4.43143 3.81955 5.184 3.436C5.669 3.188 6.186 3.09 6.748 3.044C7.298 2.999 7.976 3 8.8 3H15.2ZM8.8 5C7.943 5 7.361 5 6.911 5.037C6.473 5.073 6.248 5.138 6.091 5.217C5.71491 5.40918 5.40932 5.71548 5.218 6.092C5.138 6.248 5.073 6.472 5.038 6.912C5 7.361 5 7.942 5 8.8V15.2C5 16.057 5 16.639 5.037 17.089C5.073 17.527 5.138 17.752 5.217 17.909C5.31276 18.0956 5.43728 18.2661 5.586 18.414L18.414 5.586C18.2657 5.43755 18.0949 5.31336 17.908 5.218C17.752 5.138 17.528 5.073 17.088 5.038C16.639 5 16.058 5 15.2 5H8.8Z", fill: "currentColor" }) }));
3
- Boolean.displayName = "Boolean";
4
- export default Boolean;
2
+ const BooleanIcon = (props) => (_jsx("svg", { width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", ...props, children: _jsx("path", { d: "M15.2 3C16.024 3 16.702 2.999 17.252 3.044C17.814 3.09 18.332 3.188 18.816 3.436C19.5686 3.81955 20.1805 4.43143 20.564 5.184C20.812 5.669 20.91 6.186 20.956 6.748C21.001 7.298 21 7.976 21 8.8V15.2C21 16.024 21.001 16.702 20.956 17.252C20.91 17.814 20.812 18.332 20.564 18.816C20.1804 19.5685 19.5685 20.1804 18.816 20.564C18.331 20.812 17.814 20.91 17.252 20.956C16.702 21.001 16.024 21 15.2 21H8.8C7.976 21 7.298 21.001 6.748 20.956C6.186 20.91 5.668 20.812 5.184 20.564C4.43143 20.1805 3.81955 19.5686 3.436 18.816C3.188 18.331 3.09 17.814 3.044 17.252C2.999 16.702 3 16.024 3 15.2V8.8C3 7.976 2.999 7.298 3.044 6.748C3.09 6.186 3.188 5.668 3.436 5.184C3.81955 4.43143 4.43143 3.81955 5.184 3.436C5.669 3.188 6.186 3.09 6.748 3.044C7.298 2.999 7.976 3 8.8 3H15.2ZM8.8 5C7.943 5 7.361 5 6.911 5.037C6.473 5.073 6.248 5.138 6.091 5.217C5.71491 5.40918 5.40932 5.71548 5.218 6.092C5.138 6.248 5.073 6.472 5.038 6.912C5 7.361 5 7.942 5 8.8V15.2C5 16.057 5 16.639 5.037 17.089C5.073 17.527 5.138 17.752 5.217 17.909C5.31276 18.0956 5.43728 18.2661 5.586 18.414L18.414 5.586C18.2657 5.43755 18.0949 5.31336 17.908 5.218C17.752 5.138 17.528 5.073 17.088 5.038C16.639 5 16.058 5 15.2 5H8.8Z", fill: "currentColor" }) }));
3
+ BooleanIcon.displayName = "Boolean";
4
+ export default BooleanIcon;
5
5
  //# sourceMappingURL=Boolean.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Boolean.js","sourceRoot":"","sources":["../../../../../src/components/Icon/svg/Boolean.tsx"],"names":[],"mappings":";AACA,MAAM,OAAO,GAAG,CAAC,KAA8B,EAAE,EAAE,CAAC,CAClD,cAAK,KAAK,EAAC,KAAK,EAAC,MAAM,EAAC,KAAK,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,cAAc,iBAAa,MAAM,KAAK,KAAK,YAChG,eACE,CAAC,EAAC,mqCAAmqC,EACrqC,IAAI,EAAC,cAAc,GACnB,GACE,CACP,CAAA;AACD,OAAO,CAAC,WAAW,GAAG,SAAS,CAAA;AAC/B,eAAe,OAAO,CAAA","sourcesContent":["import type { SVGProps } from \"react\"\nconst Boolean = (props: SVGProps<SVGSVGElement>) => (\n <svg width=\"1em\" height=\"1em\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\" {...props}>\n <path\n d=\"M15.2 3C16.024 3 16.702 2.999 17.252 3.044C17.814 3.09 18.332 3.188 18.816 3.436C19.5686 3.81955 20.1805 4.43143 20.564 5.184C20.812 5.669 20.91 6.186 20.956 6.748C21.001 7.298 21 7.976 21 8.8V15.2C21 16.024 21.001 16.702 20.956 17.252C20.91 17.814 20.812 18.332 20.564 18.816C20.1804 19.5685 19.5685 20.1804 18.816 20.564C18.331 20.812 17.814 20.91 17.252 20.956C16.702 21.001 16.024 21 15.2 21H8.8C7.976 21 7.298 21.001 6.748 20.956C6.186 20.91 5.668 20.812 5.184 20.564C4.43143 20.1805 3.81955 19.5686 3.436 18.816C3.188 18.331 3.09 17.814 3.044 17.252C2.999 16.702 3 16.024 3 15.2V8.8C3 7.976 2.999 7.298 3.044 6.748C3.09 6.186 3.188 5.668 3.436 5.184C3.81955 4.43143 4.43143 3.81955 5.184 3.436C5.669 3.188 6.186 3.09 6.748 3.044C7.298 2.999 7.976 3 8.8 3H15.2ZM8.8 5C7.943 5 7.361 5 6.911 5.037C6.473 5.073 6.248 5.138 6.091 5.217C5.71491 5.40918 5.40932 5.71548 5.218 6.092C5.138 6.248 5.073 6.472 5.038 6.912C5 7.361 5 7.942 5 8.8V15.2C5 16.057 5 16.639 5.037 17.089C5.073 17.527 5.138 17.752 5.217 17.909C5.31276 18.0956 5.43728 18.2661 5.586 18.414L18.414 5.586C18.2657 5.43755 18.0949 5.31336 17.908 5.218C17.752 5.138 17.528 5.073 17.088 5.038C16.639 5 16.058 5 15.2 5H8.8Z\"\n fill=\"currentColor\"\n />\n </svg>\n)\nBoolean.displayName = \"Boolean\"\nexport default Boolean\n"]}
1
+ {"version":3,"file":"Boolean.js","sourceRoot":"","sources":["../../../../../src/components/Icon/svg/Boolean.tsx"],"names":[],"mappings":";AACA,MAAM,WAAW,GAAG,CAAC,KAA8B,EAAE,EAAE,CAAC,CACtD,cAAK,KAAK,EAAC,KAAK,EAAC,MAAM,EAAC,KAAK,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,cAAc,iBAAa,MAAM,KAAK,KAAK,YAChG,eACE,CAAC,EAAC,mqCAAmqC,EACrqC,IAAI,EAAC,cAAc,GACnB,GACE,CACP,CAAA;AACD,WAAW,CAAC,WAAW,GAAG,SAAS,CAAA;AACnC,eAAe,WAAW,CAAA","sourcesContent":["import type { SVGProps } from \"react\"\nconst BooleanIcon = (props: SVGProps<SVGSVGElement>) => (\n <svg width=\"1em\" height=\"1em\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\" {...props}>\n <path\n d=\"M15.2 3C16.024 3 16.702 2.999 17.252 3.044C17.814 3.09 18.332 3.188 18.816 3.436C19.5686 3.81955 20.1805 4.43143 20.564 5.184C20.812 5.669 20.91 6.186 20.956 6.748C21.001 7.298 21 7.976 21 8.8V15.2C21 16.024 21.001 16.702 20.956 17.252C20.91 17.814 20.812 18.332 20.564 18.816C20.1804 19.5685 19.5685 20.1804 18.816 20.564C18.331 20.812 17.814 20.91 17.252 20.956C16.702 21.001 16.024 21 15.2 21H8.8C7.976 21 7.298 21.001 6.748 20.956C6.186 20.91 5.668 20.812 5.184 20.564C4.43143 20.1805 3.81955 19.5686 3.436 18.816C3.188 18.331 3.09 17.814 3.044 17.252C2.999 16.702 3 16.024 3 15.2V8.8C3 7.976 2.999 7.298 3.044 6.748C3.09 6.186 3.188 5.668 3.436 5.184C3.81955 4.43143 4.43143 3.81955 5.184 3.436C5.669 3.188 6.186 3.09 6.748 3.044C7.298 2.999 7.976 3 8.8 3H15.2ZM8.8 5C7.943 5 7.361 5 6.911 5.037C6.473 5.073 6.248 5.138 6.091 5.217C5.71491 5.40918 5.40932 5.71548 5.218 6.092C5.138 6.248 5.073 6.472 5.038 6.912C5 7.361 5 7.942 5 8.8V15.2C5 16.057 5 16.639 5.037 17.089C5.073 17.527 5.138 17.752 5.217 17.909C5.31276 18.0956 5.43728 18.2661 5.586 18.414L18.414 5.586C18.2657 5.43755 18.0949 5.31336 17.908 5.218C17.752 5.138 17.528 5.073 17.088 5.038C16.639 5 16.058 5 15.2 5H8.8Z\"\n fill=\"currentColor\"\n />\n </svg>\n)\nBooleanIcon.displayName = \"Boolean\"\nexport default BooleanIcon\n"]}
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- const Clipboard = (props) => (_jsx("svg", { width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", ...props, children: _jsx("path", { d: "M12.0001 3.5C10.8955 3.5 10.0001 4.39543 10.0001 5.5H14.0001C14.0001 4.39543 13.1047 3.5 12.0001 3.5ZM8.53463 3.50105C9.2261 2.30487 10.5191 1.5 12.0001 1.5C13.4811 1.5 14.7741 2.30487 15.4656 3.50105C15.8379 3.50314 16.164 3.50933 16.4485 3.52772C16.8932 3.55647 17.3051 3.61797 17.7038 3.7735C18.7459 4.18001 19.5701 5.00425 19.9766 6.04631C20.1321 6.44501 20.1936 6.85693 20.2224 7.3016C20.2501 7.73064 20.2501 8.25411 20.2501 8.88827V15.7413C20.2501 16.5463 20.2501 17.2106 20.2059 17.7518C20.16 18.3139 20.0614 18.8306 19.8141 19.316C19.4306 20.0686 18.8187 20.6805 18.0661 21.064C17.5807 21.3113 17.064 21.4099 16.5019 21.4558C15.9608 21.5 15.2964 21.5 14.4914 21.5H9.50868C8.70372 21.5 8.03936 21.5 7.49817 21.4558C6.93608 21.4099 6.41937 21.3113 5.93404 21.064C5.18139 20.6805 4.56947 20.0686 4.18597 19.316C3.93868 18.8306 3.84012 18.3139 3.79419 17.7518C3.74998 17.2106 3.74999 16.5463 3.75 15.7413V8.88839C3.74999 8.25418 3.74999 7.73066 3.77773 7.30159C3.80648 6.85688 3.86799 6.44492 4.02355 6.0462C4.43005 5.00423 5.25423 4.18005 6.2962 3.77355C6.69492 3.61799 7.10688 3.55648 7.55159 3.52773C7.83615 3.50933 8.16225 3.50314 8.53463 3.50105ZM8.00013 5.5092C7.88438 5.51259 7.77867 5.51722 7.68064 5.52356C7.33211 5.5461 7.15025 5.58717 7.0231 5.63677C6.50212 5.84002 6.09003 6.25212 5.88677 6.7731C5.83717 6.90025 5.7961 7.08211 5.77356 7.43064C5.75049 7.78751 5.75 8.24611 5.75 8.92082V15.7C5.75 16.5566 5.75078 17.1389 5.78755 17.589C5.82337 18.0274 5.8883 18.2516 5.96799 18.408C6.15973 18.7843 6.4657 19.0903 6.84202 19.282C6.99842 19.3617 7.22262 19.4266 7.66104 19.4624C8.11113 19.4992 8.69342 19.5 9.55 19.5H14.4501C15.3067 19.5 15.889 19.4992 16.3391 19.4624C16.7775 19.4266 17.0017 19.3617 17.1581 19.282C17.5344 19.0903 17.8404 18.7843 18.0321 18.408C18.1118 18.2516 18.1767 18.0274 18.2126 17.589C18.2493 17.1389 18.2501 16.5566 18.2501 15.7V8.92071C18.2501 8.24605 18.2496 7.78748 18.2266 7.43064C18.204 7.08215 18.163 6.90029 18.1134 6.77315C17.9101 6.25213 17.498 5.84 16.977 5.63675C16.8498 5.58716 16.668 5.54609 16.3195 5.52356C16.2215 5.51722 16.1158 5.51259 16.0001 5.5092C15.9951 6.60954 15.1016 7.5 14.0001 7.5H10.0001C8.89861 7.5 8.00509 6.60954 8.00013 5.5092Z", fill: "currentColor" }) }));
3
- Clipboard.displayName = "Clipboard";
4
- export default Clipboard;
2
+ const ClipboardIcon = (props) => (_jsx("svg", { width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", ...props, children: _jsx("path", { d: "M12.0001 3.5C10.8955 3.5 10.0001 4.39543 10.0001 5.5H14.0001C14.0001 4.39543 13.1047 3.5 12.0001 3.5ZM8.53463 3.50105C9.2261 2.30487 10.5191 1.5 12.0001 1.5C13.4811 1.5 14.7741 2.30487 15.4656 3.50105C15.8379 3.50314 16.164 3.50933 16.4485 3.52772C16.8932 3.55647 17.3051 3.61797 17.7038 3.7735C18.7459 4.18001 19.5701 5.00425 19.9766 6.04631C20.1321 6.44501 20.1936 6.85693 20.2224 7.3016C20.2501 7.73064 20.2501 8.25411 20.2501 8.88827V15.7413C20.2501 16.5463 20.2501 17.2106 20.2059 17.7518C20.16 18.3139 20.0614 18.8306 19.8141 19.316C19.4306 20.0686 18.8187 20.6805 18.0661 21.064C17.5807 21.3113 17.064 21.4099 16.5019 21.4558C15.9608 21.5 15.2964 21.5 14.4914 21.5H9.50868C8.70372 21.5 8.03936 21.5 7.49817 21.4558C6.93608 21.4099 6.41937 21.3113 5.93404 21.064C5.18139 20.6805 4.56947 20.0686 4.18597 19.316C3.93868 18.8306 3.84012 18.3139 3.79419 17.7518C3.74998 17.2106 3.74999 16.5463 3.75 15.7413V8.88839C3.74999 8.25418 3.74999 7.73066 3.77773 7.30159C3.80648 6.85688 3.86799 6.44492 4.02355 6.0462C4.43005 5.00423 5.25423 4.18005 6.2962 3.77355C6.69492 3.61799 7.10688 3.55648 7.55159 3.52773C7.83615 3.50933 8.16225 3.50314 8.53463 3.50105ZM8.00013 5.5092C7.88438 5.51259 7.77867 5.51722 7.68064 5.52356C7.33211 5.5461 7.15025 5.58717 7.0231 5.63677C6.50212 5.84002 6.09003 6.25212 5.88677 6.7731C5.83717 6.90025 5.7961 7.08211 5.77356 7.43064C5.75049 7.78751 5.75 8.24611 5.75 8.92082V15.7C5.75 16.5566 5.75078 17.1389 5.78755 17.589C5.82337 18.0274 5.8883 18.2516 5.96799 18.408C6.15973 18.7843 6.4657 19.0903 6.84202 19.282C6.99842 19.3617 7.22262 19.4266 7.66104 19.4624C8.11113 19.4992 8.69342 19.5 9.55 19.5H14.4501C15.3067 19.5 15.889 19.4992 16.3391 19.4624C16.7775 19.4266 17.0017 19.3617 17.1581 19.282C17.5344 19.0903 17.8404 18.7843 18.0321 18.408C18.1118 18.2516 18.1767 18.0274 18.2126 17.589C18.2493 17.1389 18.2501 16.5566 18.2501 15.7V8.92071C18.2501 8.24605 18.2496 7.78748 18.2266 7.43064C18.204 7.08215 18.163 6.90029 18.1134 6.77315C17.9101 6.25213 17.498 5.84 16.977 5.63675C16.8498 5.58716 16.668 5.54609 16.3195 5.52356C16.2215 5.51722 16.1158 5.51259 16.0001 5.5092C15.9951 6.60954 15.1016 7.5 14.0001 7.5H10.0001C8.89861 7.5 8.00509 6.60954 8.00013 5.5092Z", fill: "currentColor" }) }));
3
+ ClipboardIcon.displayName = "Clipboard";
4
+ export default ClipboardIcon;
5
5
  //# sourceMappingURL=Clipboard.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Clipboard.js","sourceRoot":"","sources":["../../../../../src/components/Icon/svg/Clipboard.tsx"],"names":[],"mappings":";AACA,MAAM,SAAS,GAAG,CAAC,KAA8B,EAAE,EAAE,CAAC,CACpD,cAAK,KAAK,EAAC,KAAK,EAAC,MAAM,EAAC,KAAK,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,cAAc,iBAAa,MAAM,KAAK,KAAK,YAChG,eACE,CAAC,EAAC,upEAAupE,EACzpE,IAAI,EAAC,cAAc,GACnB,GACE,CACP,CAAA;AACD,SAAS,CAAC,WAAW,GAAG,WAAW,CAAA;AACnC,eAAe,SAAS,CAAA","sourcesContent":["import type { SVGProps } from \"react\"\nconst Clipboard = (props: SVGProps<SVGSVGElement>) => (\n <svg width=\"1em\" height=\"1em\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\" {...props}>\n <path\n d=\"M12.0001 3.5C10.8955 3.5 10.0001 4.39543 10.0001 5.5H14.0001C14.0001 4.39543 13.1047 3.5 12.0001 3.5ZM8.53463 3.50105C9.2261 2.30487 10.5191 1.5 12.0001 1.5C13.4811 1.5 14.7741 2.30487 15.4656 3.50105C15.8379 3.50314 16.164 3.50933 16.4485 3.52772C16.8932 3.55647 17.3051 3.61797 17.7038 3.7735C18.7459 4.18001 19.5701 5.00425 19.9766 6.04631C20.1321 6.44501 20.1936 6.85693 20.2224 7.3016C20.2501 7.73064 20.2501 8.25411 20.2501 8.88827V15.7413C20.2501 16.5463 20.2501 17.2106 20.2059 17.7518C20.16 18.3139 20.0614 18.8306 19.8141 19.316C19.4306 20.0686 18.8187 20.6805 18.0661 21.064C17.5807 21.3113 17.064 21.4099 16.5019 21.4558C15.9608 21.5 15.2964 21.5 14.4914 21.5H9.50868C8.70372 21.5 8.03936 21.5 7.49817 21.4558C6.93608 21.4099 6.41937 21.3113 5.93404 21.064C5.18139 20.6805 4.56947 20.0686 4.18597 19.316C3.93868 18.8306 3.84012 18.3139 3.79419 17.7518C3.74998 17.2106 3.74999 16.5463 3.75 15.7413V8.88839C3.74999 8.25418 3.74999 7.73066 3.77773 7.30159C3.80648 6.85688 3.86799 6.44492 4.02355 6.0462C4.43005 5.00423 5.25423 4.18005 6.2962 3.77355C6.69492 3.61799 7.10688 3.55648 7.55159 3.52773C7.83615 3.50933 8.16225 3.50314 8.53463 3.50105ZM8.00013 5.5092C7.88438 5.51259 7.77867 5.51722 7.68064 5.52356C7.33211 5.5461 7.15025 5.58717 7.0231 5.63677C6.50212 5.84002 6.09003 6.25212 5.88677 6.7731C5.83717 6.90025 5.7961 7.08211 5.77356 7.43064C5.75049 7.78751 5.75 8.24611 5.75 8.92082V15.7C5.75 16.5566 5.75078 17.1389 5.78755 17.589C5.82337 18.0274 5.8883 18.2516 5.96799 18.408C6.15973 18.7843 6.4657 19.0903 6.84202 19.282C6.99842 19.3617 7.22262 19.4266 7.66104 19.4624C8.11113 19.4992 8.69342 19.5 9.55 19.5H14.4501C15.3067 19.5 15.889 19.4992 16.3391 19.4624C16.7775 19.4266 17.0017 19.3617 17.1581 19.282C17.5344 19.0903 17.8404 18.7843 18.0321 18.408C18.1118 18.2516 18.1767 18.0274 18.2126 17.589C18.2493 17.1389 18.2501 16.5566 18.2501 15.7V8.92071C18.2501 8.24605 18.2496 7.78748 18.2266 7.43064C18.204 7.08215 18.163 6.90029 18.1134 6.77315C17.9101 6.25213 17.498 5.84 16.977 5.63675C16.8498 5.58716 16.668 5.54609 16.3195 5.52356C16.2215 5.51722 16.1158 5.51259 16.0001 5.5092C15.9951 6.60954 15.1016 7.5 14.0001 7.5H10.0001C8.89861 7.5 8.00509 6.60954 8.00013 5.5092Z\"\n fill=\"currentColor\"\n />\n </svg>\n)\nClipboard.displayName = \"Clipboard\"\nexport default Clipboard\n"]}
1
+ {"version":3,"file":"Clipboard.js","sourceRoot":"","sources":["../../../../../src/components/Icon/svg/Clipboard.tsx"],"names":[],"mappings":";AACA,MAAM,aAAa,GAAG,CAAC,KAA8B,EAAE,EAAE,CAAC,CACxD,cAAK,KAAK,EAAC,KAAK,EAAC,MAAM,EAAC,KAAK,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,cAAc,iBAAa,MAAM,KAAK,KAAK,YAChG,eACE,CAAC,EAAC,upEAAupE,EACzpE,IAAI,EAAC,cAAc,GACnB,GACE,CACP,CAAA;AACD,aAAa,CAAC,WAAW,GAAG,WAAW,CAAA;AACvC,eAAe,aAAa,CAAA","sourcesContent":["import type { SVGProps } from \"react\"\nconst ClipboardIcon = (props: SVGProps<SVGSVGElement>) => (\n <svg width=\"1em\" height=\"1em\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\" {...props}>\n <path\n d=\"M12.0001 3.5C10.8955 3.5 10.0001 4.39543 10.0001 5.5H14.0001C14.0001 4.39543 13.1047 3.5 12.0001 3.5ZM8.53463 3.50105C9.2261 2.30487 10.5191 1.5 12.0001 1.5C13.4811 1.5 14.7741 2.30487 15.4656 3.50105C15.8379 3.50314 16.164 3.50933 16.4485 3.52772C16.8932 3.55647 17.3051 3.61797 17.7038 3.7735C18.7459 4.18001 19.5701 5.00425 19.9766 6.04631C20.1321 6.44501 20.1936 6.85693 20.2224 7.3016C20.2501 7.73064 20.2501 8.25411 20.2501 8.88827V15.7413C20.2501 16.5463 20.2501 17.2106 20.2059 17.7518C20.16 18.3139 20.0614 18.8306 19.8141 19.316C19.4306 20.0686 18.8187 20.6805 18.0661 21.064C17.5807 21.3113 17.064 21.4099 16.5019 21.4558C15.9608 21.5 15.2964 21.5 14.4914 21.5H9.50868C8.70372 21.5 8.03936 21.5 7.49817 21.4558C6.93608 21.4099 6.41937 21.3113 5.93404 21.064C5.18139 20.6805 4.56947 20.0686 4.18597 19.316C3.93868 18.8306 3.84012 18.3139 3.79419 17.7518C3.74998 17.2106 3.74999 16.5463 3.75 15.7413V8.88839C3.74999 8.25418 3.74999 7.73066 3.77773 7.30159C3.80648 6.85688 3.86799 6.44492 4.02355 6.0462C4.43005 5.00423 5.25423 4.18005 6.2962 3.77355C6.69492 3.61799 7.10688 3.55648 7.55159 3.52773C7.83615 3.50933 8.16225 3.50314 8.53463 3.50105ZM8.00013 5.5092C7.88438 5.51259 7.77867 5.51722 7.68064 5.52356C7.33211 5.5461 7.15025 5.58717 7.0231 5.63677C6.50212 5.84002 6.09003 6.25212 5.88677 6.7731C5.83717 6.90025 5.7961 7.08211 5.77356 7.43064C5.75049 7.78751 5.75 8.24611 5.75 8.92082V15.7C5.75 16.5566 5.75078 17.1389 5.78755 17.589C5.82337 18.0274 5.8883 18.2516 5.96799 18.408C6.15973 18.7843 6.4657 19.0903 6.84202 19.282C6.99842 19.3617 7.22262 19.4266 7.66104 19.4624C8.11113 19.4992 8.69342 19.5 9.55 19.5H14.4501C15.3067 19.5 15.889 19.4992 16.3391 19.4624C16.7775 19.4266 17.0017 19.3617 17.1581 19.282C17.5344 19.0903 17.8404 18.7843 18.0321 18.408C18.1118 18.2516 18.1767 18.0274 18.2126 17.589C18.2493 17.1389 18.2501 16.5566 18.2501 15.7V8.92071C18.2501 8.24605 18.2496 7.78748 18.2266 7.43064C18.204 7.08215 18.163 6.90029 18.1134 6.77315C17.9101 6.25213 17.498 5.84 16.977 5.63675C16.8498 5.58716 16.668 5.54609 16.3195 5.52356C16.2215 5.51722 16.1158 5.51259 16.0001 5.5092C15.9951 6.60954 15.1016 7.5 14.0001 7.5H10.0001C8.89861 7.5 8.00509 6.60954 8.00013 5.5092Z\"\n fill=\"currentColor\"\n />\n </svg>\n)\nClipboardIcon.displayName = \"Clipboard\"\nexport default ClipboardIcon\n"]}
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- const Comment = (props) => (_jsx("svg", { width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", ...props, children: _jsx("path", { d: "M8.25681 3H15.7394C16.5444 2.99999 17.2087 2.99998 17.7499 3.04419C18.312 3.09012 18.8287 3.18868 19.3141 3.43597C20.0667 3.81947 20.6786 4.43139 21.0621 5.18404C21.3094 5.66937 21.408 6.18608 21.4539 6.74817C21.4981 7.28936 21.4981 7.95372 21.4981 8.75868V14.7135C21.4981 14.7501 21.4981 14.7861 21.4981 14.8216C21.4984 15.4471 21.4986 15.9109 21.4136 16.3179C21.0885 17.8743 19.8724 19.0904 18.316 19.4155C17.909 19.5005 17.4452 19.5003 16.8198 19.5C16.7842 19.5 16.7482 19.5 16.7116 19.5C16.4464 19.5 16.3688 19.5008 16.2971 19.5066C15.9916 19.5315 15.696 19.6262 15.433 19.7835C15.3713 19.8204 15.3077 19.8649 15.0919 20.019L13.5093 21.1495C13.4863 21.1659 13.4627 21.1829 13.4385 21.2004C13.1832 21.3843 12.8629 21.6152 12.4892 21.7099C12.1669 21.7915 11.8293 21.7915 11.507 21.7099C11.1333 21.6152 10.813 21.3843 10.5577 21.2004C10.5335 21.1829 10.5099 21.1659 10.4869 21.1495L8.9043 20.019C8.68849 19.8649 8.62494 19.8204 8.56317 19.7835C8.30018 19.6262 8.00456 19.5315 7.69915 19.5066C7.6274 19.5008 7.54986 19.5 7.28465 19.5C7.24805 19.5 7.212 19.5 7.17646 19.5C6.55106 19.5003 6.08718 19.5005 5.68025 19.4155C4.12381 19.0904 2.90772 17.8743 2.58261 16.3179C2.49761 15.9109 2.49781 15.4471 2.49808 14.8216C2.49809 14.7861 2.49811 14.7501 2.49811 14.7135V8.7587C2.49809 7.95373 2.49808 7.28937 2.5423 6.74817C2.58823 6.18608 2.68679 5.66937 2.93408 5.18404C3.31757 4.43139 3.9295 3.81947 4.68214 3.43597C5.16748 3.18868 5.68418 3.09012 6.24628 3.04419C6.78748 2.99998 7.45184 2.99999 8.25681 3ZM6.40914 5.03755C5.97073 5.07337 5.74653 5.1383 5.59013 5.21799C5.2138 5.40973 4.90784 5.7157 4.71609 6.09202C4.6364 6.24842 4.57148 6.47262 4.53566 6.91104C4.49888 7.36113 4.49811 7.94342 4.49811 8.8V14.7135C4.49811 15.4948 4.50343 15.7321 4.54036 15.9089C4.70291 16.6871 5.31096 17.2952 6.08918 17.4577C6.26596 17.4947 6.50333 17.5 7.28465 17.5H7.31905C7.53532 17.5 7.69861 17.4999 7.86159 17.5132C8.47242 17.563 9.06364 17.7525 9.58962 18.067C9.72996 18.1509 9.86282 18.2458 10.0388 18.3716L11.6494 19.522C11.8276 19.6493 11.921 19.7154 11.9916 19.7588C11.9938 19.7602 11.996 19.7615 11.9981 19.7628C12.0002 19.7615 12.0024 19.7602 12.0046 19.7588C12.0752 19.7154 12.1686 19.6493 12.3469 19.522L13.9574 18.3716C14.1334 18.2458 14.2663 18.1509 14.4066 18.067C14.9326 17.7525 15.5238 17.563 16.1346 17.5132C16.2976 17.4999 16.4609 17.5 16.6772 17.5H16.7116C17.4929 17.5 17.7302 17.4947 17.907 17.4577C18.6853 17.2952 19.2933 16.6871 19.4559 15.9089C19.4928 15.7321 19.4981 15.4948 19.4981 14.7135V8.8C19.4981 7.94342 19.4973 7.36113 19.4606 6.91104C19.4247 6.47262 19.3598 6.24842 19.2801 6.09202C19.0884 5.7157 18.7824 5.40973 18.4061 5.21799C18.2497 5.1383 18.0255 5.07337 17.5871 5.03755C17.137 5.00078 16.5547 5 15.6981 5H8.29811C7.44153 5 6.85923 5.00078 6.40914 5.03755ZM8.00006 9C8.00006 8.44772 8.44777 8 9.00006 8H15.0001C15.5523 8 16.0001 8.44772 16.0001 9C16.0001 9.55229 15.5523 10 15.0001 10H9.00006C8.44777 10 8.00006 9.55229 8.00006 9ZM7.99811 13C7.99811 12.4477 8.44582 12 8.99811 12H11.9981C12.5504 12 12.9981 12.4477 12.9981 13C12.9981 13.5523 12.5504 14 11.9981 14H8.99811C8.44582 14 7.99811 13.5523 7.99811 13Z", fill: "currentColor" }) }));
3
- Comment.displayName = "Comment";
4
- export default Comment;
2
+ const CommentIcon = (props) => (_jsx("svg", { width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", ...props, children: _jsx("path", { d: "M8.25681 3H15.7394C16.5444 2.99999 17.2087 2.99998 17.7499 3.04419C18.312 3.09012 18.8287 3.18868 19.3141 3.43597C20.0667 3.81947 20.6786 4.43139 21.0621 5.18404C21.3094 5.66937 21.408 6.18608 21.4539 6.74817C21.4981 7.28936 21.4981 7.95372 21.4981 8.75868V14.7135C21.4981 14.7501 21.4981 14.7861 21.4981 14.8216C21.4984 15.4471 21.4986 15.9109 21.4136 16.3179C21.0885 17.8743 19.8724 19.0904 18.316 19.4155C17.909 19.5005 17.4452 19.5003 16.8198 19.5C16.7842 19.5 16.7482 19.5 16.7116 19.5C16.4464 19.5 16.3688 19.5008 16.2971 19.5066C15.9916 19.5315 15.696 19.6262 15.433 19.7835C15.3713 19.8204 15.3077 19.8649 15.0919 20.019L13.5093 21.1495C13.4863 21.1659 13.4627 21.1829 13.4385 21.2004C13.1832 21.3843 12.8629 21.6152 12.4892 21.7099C12.1669 21.7915 11.8293 21.7915 11.507 21.7099C11.1333 21.6152 10.813 21.3843 10.5577 21.2004C10.5335 21.1829 10.5099 21.1659 10.4869 21.1495L8.9043 20.019C8.68849 19.8649 8.62494 19.8204 8.56317 19.7835C8.30018 19.6262 8.00456 19.5315 7.69915 19.5066C7.6274 19.5008 7.54986 19.5 7.28465 19.5C7.24805 19.5 7.212 19.5 7.17646 19.5C6.55106 19.5003 6.08718 19.5005 5.68025 19.4155C4.12381 19.0904 2.90772 17.8743 2.58261 16.3179C2.49761 15.9109 2.49781 15.4471 2.49808 14.8216C2.49809 14.7861 2.49811 14.7501 2.49811 14.7135V8.7587C2.49809 7.95373 2.49808 7.28937 2.5423 6.74817C2.58823 6.18608 2.68679 5.66937 2.93408 5.18404C3.31757 4.43139 3.9295 3.81947 4.68214 3.43597C5.16748 3.18868 5.68418 3.09012 6.24628 3.04419C6.78748 2.99998 7.45184 2.99999 8.25681 3ZM6.40914 5.03755C5.97073 5.07337 5.74653 5.1383 5.59013 5.21799C5.2138 5.40973 4.90784 5.7157 4.71609 6.09202C4.6364 6.24842 4.57148 6.47262 4.53566 6.91104C4.49888 7.36113 4.49811 7.94342 4.49811 8.8V14.7135C4.49811 15.4948 4.50343 15.7321 4.54036 15.9089C4.70291 16.6871 5.31096 17.2952 6.08918 17.4577C6.26596 17.4947 6.50333 17.5 7.28465 17.5H7.31905C7.53532 17.5 7.69861 17.4999 7.86159 17.5132C8.47242 17.563 9.06364 17.7525 9.58962 18.067C9.72996 18.1509 9.86282 18.2458 10.0388 18.3716L11.6494 19.522C11.8276 19.6493 11.921 19.7154 11.9916 19.7588C11.9938 19.7602 11.996 19.7615 11.9981 19.7628C12.0002 19.7615 12.0024 19.7602 12.0046 19.7588C12.0752 19.7154 12.1686 19.6493 12.3469 19.522L13.9574 18.3716C14.1334 18.2458 14.2663 18.1509 14.4066 18.067C14.9326 17.7525 15.5238 17.563 16.1346 17.5132C16.2976 17.4999 16.4609 17.5 16.6772 17.5H16.7116C17.4929 17.5 17.7302 17.4947 17.907 17.4577C18.6853 17.2952 19.2933 16.6871 19.4559 15.9089C19.4928 15.7321 19.4981 15.4948 19.4981 14.7135V8.8C19.4981 7.94342 19.4973 7.36113 19.4606 6.91104C19.4247 6.47262 19.3598 6.24842 19.2801 6.09202C19.0884 5.7157 18.7824 5.40973 18.4061 5.21799C18.2497 5.1383 18.0255 5.07337 17.5871 5.03755C17.137 5.00078 16.5547 5 15.6981 5H8.29811C7.44153 5 6.85923 5.00078 6.40914 5.03755ZM8.00006 9C8.00006 8.44772 8.44777 8 9.00006 8H15.0001C15.5523 8 16.0001 8.44772 16.0001 9C16.0001 9.55229 15.5523 10 15.0001 10H9.00006C8.44777 10 8.00006 9.55229 8.00006 9ZM7.99811 13C7.99811 12.4477 8.44582 12 8.99811 12H11.9981C12.5504 12 12.9981 12.4477 12.9981 13C12.9981 13.5523 12.5504 14 11.9981 14H8.99811C8.44582 14 7.99811 13.5523 7.99811 13Z", fill: "currentColor" }) }));
3
+ CommentIcon.displayName = "Comment";
4
+ export default CommentIcon;
5
5
  //# sourceMappingURL=Comment.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Comment.js","sourceRoot":"","sources":["../../../../../src/components/Icon/svg/Comment.tsx"],"names":[],"mappings":";AACA,MAAM,OAAO,GAAG,CAAC,KAA8B,EAAE,EAAE,CAAC,CAClD,cAAK,KAAK,EAAC,KAAK,EAAC,MAAM,EAAC,KAAK,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,cAAc,iBAAa,MAAM,KAAK,KAAK,YAChG,eACE,CAAC,EAAC,+jGAA+jG,EACjkG,IAAI,EAAC,cAAc,GACnB,GACE,CACP,CAAA;AACD,OAAO,CAAC,WAAW,GAAG,SAAS,CAAA;AAC/B,eAAe,OAAO,CAAA","sourcesContent":["import type { SVGProps } from \"react\"\nconst Comment = (props: SVGProps<SVGSVGElement>) => (\n <svg width=\"1em\" height=\"1em\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\" {...props}>\n <path\n d=\"M8.25681 3H15.7394C16.5444 2.99999 17.2087 2.99998 17.7499 3.04419C18.312 3.09012 18.8287 3.18868 19.3141 3.43597C20.0667 3.81947 20.6786 4.43139 21.0621 5.18404C21.3094 5.66937 21.408 6.18608 21.4539 6.74817C21.4981 7.28936 21.4981 7.95372 21.4981 8.75868V14.7135C21.4981 14.7501 21.4981 14.7861 21.4981 14.8216C21.4984 15.4471 21.4986 15.9109 21.4136 16.3179C21.0885 17.8743 19.8724 19.0904 18.316 19.4155C17.909 19.5005 17.4452 19.5003 16.8198 19.5C16.7842 19.5 16.7482 19.5 16.7116 19.5C16.4464 19.5 16.3688 19.5008 16.2971 19.5066C15.9916 19.5315 15.696 19.6262 15.433 19.7835C15.3713 19.8204 15.3077 19.8649 15.0919 20.019L13.5093 21.1495C13.4863 21.1659 13.4627 21.1829 13.4385 21.2004C13.1832 21.3843 12.8629 21.6152 12.4892 21.7099C12.1669 21.7915 11.8293 21.7915 11.507 21.7099C11.1333 21.6152 10.813 21.3843 10.5577 21.2004C10.5335 21.1829 10.5099 21.1659 10.4869 21.1495L8.9043 20.019C8.68849 19.8649 8.62494 19.8204 8.56317 19.7835C8.30018 19.6262 8.00456 19.5315 7.69915 19.5066C7.6274 19.5008 7.54986 19.5 7.28465 19.5C7.24805 19.5 7.212 19.5 7.17646 19.5C6.55106 19.5003 6.08718 19.5005 5.68025 19.4155C4.12381 19.0904 2.90772 17.8743 2.58261 16.3179C2.49761 15.9109 2.49781 15.4471 2.49808 14.8216C2.49809 14.7861 2.49811 14.7501 2.49811 14.7135V8.7587C2.49809 7.95373 2.49808 7.28937 2.5423 6.74817C2.58823 6.18608 2.68679 5.66937 2.93408 5.18404C3.31757 4.43139 3.9295 3.81947 4.68214 3.43597C5.16748 3.18868 5.68418 3.09012 6.24628 3.04419C6.78748 2.99998 7.45184 2.99999 8.25681 3ZM6.40914 5.03755C5.97073 5.07337 5.74653 5.1383 5.59013 5.21799C5.2138 5.40973 4.90784 5.7157 4.71609 6.09202C4.6364 6.24842 4.57148 6.47262 4.53566 6.91104C4.49888 7.36113 4.49811 7.94342 4.49811 8.8V14.7135C4.49811 15.4948 4.50343 15.7321 4.54036 15.9089C4.70291 16.6871 5.31096 17.2952 6.08918 17.4577C6.26596 17.4947 6.50333 17.5 7.28465 17.5H7.31905C7.53532 17.5 7.69861 17.4999 7.86159 17.5132C8.47242 17.563 9.06364 17.7525 9.58962 18.067C9.72996 18.1509 9.86282 18.2458 10.0388 18.3716L11.6494 19.522C11.8276 19.6493 11.921 19.7154 11.9916 19.7588C11.9938 19.7602 11.996 19.7615 11.9981 19.7628C12.0002 19.7615 12.0024 19.7602 12.0046 19.7588C12.0752 19.7154 12.1686 19.6493 12.3469 19.522L13.9574 18.3716C14.1334 18.2458 14.2663 18.1509 14.4066 18.067C14.9326 17.7525 15.5238 17.563 16.1346 17.5132C16.2976 17.4999 16.4609 17.5 16.6772 17.5H16.7116C17.4929 17.5 17.7302 17.4947 17.907 17.4577C18.6853 17.2952 19.2933 16.6871 19.4559 15.9089C19.4928 15.7321 19.4981 15.4948 19.4981 14.7135V8.8C19.4981 7.94342 19.4973 7.36113 19.4606 6.91104C19.4247 6.47262 19.3598 6.24842 19.2801 6.09202C19.0884 5.7157 18.7824 5.40973 18.4061 5.21799C18.2497 5.1383 18.0255 5.07337 17.5871 5.03755C17.137 5.00078 16.5547 5 15.6981 5H8.29811C7.44153 5 6.85923 5.00078 6.40914 5.03755ZM8.00006 9C8.00006 8.44772 8.44777 8 9.00006 8H15.0001C15.5523 8 16.0001 8.44772 16.0001 9C16.0001 9.55229 15.5523 10 15.0001 10H9.00006C8.44777 10 8.00006 9.55229 8.00006 9ZM7.99811 13C7.99811 12.4477 8.44582 12 8.99811 12H11.9981C12.5504 12 12.9981 12.4477 12.9981 13C12.9981 13.5523 12.5504 14 11.9981 14H8.99811C8.44582 14 7.99811 13.5523 7.99811 13Z\"\n fill=\"currentColor\"\n />\n </svg>\n)\nComment.displayName = \"Comment\"\nexport default Comment\n"]}
1
+ {"version":3,"file":"Comment.js","sourceRoot":"","sources":["../../../../../src/components/Icon/svg/Comment.tsx"],"names":[],"mappings":";AACA,MAAM,WAAW,GAAG,CAAC,KAA8B,EAAE,EAAE,CAAC,CACtD,cAAK,KAAK,EAAC,KAAK,EAAC,MAAM,EAAC,KAAK,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,cAAc,iBAAa,MAAM,KAAK,KAAK,YAChG,eACE,CAAC,EAAC,+jGAA+jG,EACjkG,IAAI,EAAC,cAAc,GACnB,GACE,CACP,CAAA;AACD,WAAW,CAAC,WAAW,GAAG,SAAS,CAAA;AACnC,eAAe,WAAW,CAAA","sourcesContent":["import type { SVGProps } from \"react\"\nconst CommentIcon = (props: SVGProps<SVGSVGElement>) => (\n <svg width=\"1em\" height=\"1em\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\" {...props}>\n <path\n d=\"M8.25681 3H15.7394C16.5444 2.99999 17.2087 2.99998 17.7499 3.04419C18.312 3.09012 18.8287 3.18868 19.3141 3.43597C20.0667 3.81947 20.6786 4.43139 21.0621 5.18404C21.3094 5.66937 21.408 6.18608 21.4539 6.74817C21.4981 7.28936 21.4981 7.95372 21.4981 8.75868V14.7135C21.4981 14.7501 21.4981 14.7861 21.4981 14.8216C21.4984 15.4471 21.4986 15.9109 21.4136 16.3179C21.0885 17.8743 19.8724 19.0904 18.316 19.4155C17.909 19.5005 17.4452 19.5003 16.8198 19.5C16.7842 19.5 16.7482 19.5 16.7116 19.5C16.4464 19.5 16.3688 19.5008 16.2971 19.5066C15.9916 19.5315 15.696 19.6262 15.433 19.7835C15.3713 19.8204 15.3077 19.8649 15.0919 20.019L13.5093 21.1495C13.4863 21.1659 13.4627 21.1829 13.4385 21.2004C13.1832 21.3843 12.8629 21.6152 12.4892 21.7099C12.1669 21.7915 11.8293 21.7915 11.507 21.7099C11.1333 21.6152 10.813 21.3843 10.5577 21.2004C10.5335 21.1829 10.5099 21.1659 10.4869 21.1495L8.9043 20.019C8.68849 19.8649 8.62494 19.8204 8.56317 19.7835C8.30018 19.6262 8.00456 19.5315 7.69915 19.5066C7.6274 19.5008 7.54986 19.5 7.28465 19.5C7.24805 19.5 7.212 19.5 7.17646 19.5C6.55106 19.5003 6.08718 19.5005 5.68025 19.4155C4.12381 19.0904 2.90772 17.8743 2.58261 16.3179C2.49761 15.9109 2.49781 15.4471 2.49808 14.8216C2.49809 14.7861 2.49811 14.7501 2.49811 14.7135V8.7587C2.49809 7.95373 2.49808 7.28937 2.5423 6.74817C2.58823 6.18608 2.68679 5.66937 2.93408 5.18404C3.31757 4.43139 3.9295 3.81947 4.68214 3.43597C5.16748 3.18868 5.68418 3.09012 6.24628 3.04419C6.78748 2.99998 7.45184 2.99999 8.25681 3ZM6.40914 5.03755C5.97073 5.07337 5.74653 5.1383 5.59013 5.21799C5.2138 5.40973 4.90784 5.7157 4.71609 6.09202C4.6364 6.24842 4.57148 6.47262 4.53566 6.91104C4.49888 7.36113 4.49811 7.94342 4.49811 8.8V14.7135C4.49811 15.4948 4.50343 15.7321 4.54036 15.9089C4.70291 16.6871 5.31096 17.2952 6.08918 17.4577C6.26596 17.4947 6.50333 17.5 7.28465 17.5H7.31905C7.53532 17.5 7.69861 17.4999 7.86159 17.5132C8.47242 17.563 9.06364 17.7525 9.58962 18.067C9.72996 18.1509 9.86282 18.2458 10.0388 18.3716L11.6494 19.522C11.8276 19.6493 11.921 19.7154 11.9916 19.7588C11.9938 19.7602 11.996 19.7615 11.9981 19.7628C12.0002 19.7615 12.0024 19.7602 12.0046 19.7588C12.0752 19.7154 12.1686 19.6493 12.3469 19.522L13.9574 18.3716C14.1334 18.2458 14.2663 18.1509 14.4066 18.067C14.9326 17.7525 15.5238 17.563 16.1346 17.5132C16.2976 17.4999 16.4609 17.5 16.6772 17.5H16.7116C17.4929 17.5 17.7302 17.4947 17.907 17.4577C18.6853 17.2952 19.2933 16.6871 19.4559 15.9089C19.4928 15.7321 19.4981 15.4948 19.4981 14.7135V8.8C19.4981 7.94342 19.4973 7.36113 19.4606 6.91104C19.4247 6.47262 19.3598 6.24842 19.2801 6.09202C19.0884 5.7157 18.7824 5.40973 18.4061 5.21799C18.2497 5.1383 18.0255 5.07337 17.5871 5.03755C17.137 5.00078 16.5547 5 15.6981 5H8.29811C7.44153 5 6.85923 5.00078 6.40914 5.03755ZM8.00006 9C8.00006 8.44772 8.44777 8 9.00006 8H15.0001C15.5523 8 16.0001 8.44772 16.0001 9C16.0001 9.55229 15.5523 10 15.0001 10H9.00006C8.44777 10 8.00006 9.55229 8.00006 9ZM7.99811 13C7.99811 12.4477 8.44582 12 8.99811 12H11.9981C12.5504 12 12.9981 12.4477 12.9981 13C12.9981 13.5523 12.5504 14 11.9981 14H8.99811C8.44582 14 7.99811 13.5523 7.99811 13Z\"\n fill=\"currentColor\"\n />\n </svg>\n)\nCommentIcon.displayName = \"Comment\"\nexport default CommentIcon\n"]}
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- const Error = (props) => (_jsxs("svg", { width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", ...props, children: [_jsx("path", { d: "M14 19C14 20.1046 13.1046 21 12 21C10.8954 21 10 20.1046 10 19C10 17.8954 10.8954 17 12 17C13.1046 17 14 17.8954 14 19Z", fill: "currentColor" }), _jsx("path", { d: "M13.1644 14.0136L14.5068 5.95918C14.765 4.41013 13.5704 3 12 3C10.4296 3 9.23504 4.41013 9.49321 5.95918L10.8356 14.0136C10.9305 14.5828 11.423 15 12 15C12.5771 15 13.0695 14.5828 13.1644 14.0136Z", fill: "currentColor" })] }));
3
- Error.displayName = "Error";
4
- export default Error;
2
+ const ErrorIcon = (props) => (_jsxs("svg", { width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", ...props, children: [_jsx("path", { d: "M14 19C14 20.1046 13.1046 21 12 21C10.8954 21 10 20.1046 10 19C10 17.8954 10.8954 17 12 17C13.1046 17 14 17.8954 14 19Z", fill: "currentColor" }), _jsx("path", { d: "M13.1644 14.0136L14.5068 5.95918C14.765 4.41013 13.5704 3 12 3C10.4296 3 9.23504 4.41013 9.49321 5.95918L10.8356 14.0136C10.9305 14.5828 11.423 15 12 15C12.5771 15 13.0695 14.5828 13.1644 14.0136Z", fill: "currentColor" })] }));
3
+ ErrorIcon.displayName = "Error";
4
+ export default ErrorIcon;
5
5
  //# sourceMappingURL=Error.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Error.js","sourceRoot":"","sources":["../../../../../src/components/Icon/svg/Error.tsx"],"names":[],"mappings":";AACA,MAAM,KAAK,GAAG,CAAC,KAA8B,EAAE,EAAE,CAAC,CAChD,eAAK,KAAK,EAAC,KAAK,EAAC,MAAM,EAAC,KAAK,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,cAAc,iBAAa,MAAM,KAAK,KAAK,aAChG,eACE,CAAC,EAAC,yHAAyH,EAC3H,IAAI,EAAC,cAAc,GACnB,EACF,eACE,CAAC,EAAC,sMAAsM,EACxM,IAAI,EAAC,cAAc,GACnB,IACE,CACP,CAAA;AACD,KAAK,CAAC,WAAW,GAAG,OAAO,CAAA;AAC3B,eAAe,KAAK,CAAA","sourcesContent":["import type { SVGProps } from \"react\"\nconst Error = (props: SVGProps<SVGSVGElement>) => (\n <svg width=\"1em\" height=\"1em\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\" {...props}>\n <path\n d=\"M14 19C14 20.1046 13.1046 21 12 21C10.8954 21 10 20.1046 10 19C10 17.8954 10.8954 17 12 17C13.1046 17 14 17.8954 14 19Z\"\n fill=\"currentColor\"\n />\n <path\n d=\"M13.1644 14.0136L14.5068 5.95918C14.765 4.41013 13.5704 3 12 3C10.4296 3 9.23504 4.41013 9.49321 5.95918L10.8356 14.0136C10.9305 14.5828 11.423 15 12 15C12.5771 15 13.0695 14.5828 13.1644 14.0136Z\"\n fill=\"currentColor\"\n />\n </svg>\n)\nError.displayName = \"Error\"\nexport default Error\n"]}
1
+ {"version":3,"file":"Error.js","sourceRoot":"","sources":["../../../../../src/components/Icon/svg/Error.tsx"],"names":[],"mappings":";AACA,MAAM,SAAS,GAAG,CAAC,KAA8B,EAAE,EAAE,CAAC,CACpD,eAAK,KAAK,EAAC,KAAK,EAAC,MAAM,EAAC,KAAK,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,cAAc,iBAAa,MAAM,KAAK,KAAK,aAChG,eACE,CAAC,EAAC,yHAAyH,EAC3H,IAAI,EAAC,cAAc,GACnB,EACF,eACE,CAAC,EAAC,sMAAsM,EACxM,IAAI,EAAC,cAAc,GACnB,IACE,CACP,CAAA;AACD,SAAS,CAAC,WAAW,GAAG,OAAO,CAAA;AAC/B,eAAe,SAAS,CAAA","sourcesContent":["import type { SVGProps } from \"react\"\nconst ErrorIcon = (props: SVGProps<SVGSVGElement>) => (\n <svg width=\"1em\" height=\"1em\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\" {...props}>\n <path\n d=\"M14 19C14 20.1046 13.1046 21 12 21C10.8954 21 10 20.1046 10 19C10 17.8954 10.8954 17 12 17C13.1046 17 14 17.8954 14 19Z\"\n fill=\"currentColor\"\n />\n <path\n d=\"M13.1644 14.0136L14.5068 5.95918C14.765 4.41013 13.5704 3 12 3C10.4296 3 9.23504 4.41013 9.49321 5.95918L10.8356 14.0136C10.9305 14.5828 11.423 15 12 15C12.5771 15 13.0695 14.5828 13.1644 14.0136Z\"\n fill=\"currentColor\"\n />\n </svg>\n)\nErrorIcon.displayName = \"Error\"\nexport default ErrorIcon\n"]}
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- const Function = (props) => (_jsx("svg", { width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", ...props, children: _jsx("path", { d: "M4 17C4 16.372 4.01814 15.9014 4.00977 15.3828C4.00184 14.8931 3.96868 14.4983 3.88867 14.1719C3.81137 13.8566 3.69676 13.63 3.53809 13.4541C3.3797 13.2786 3.12576 13.0956 2.68359 12.9482C2.27541 12.812 2 12.4303 2 12C2 11.5697 2.27541 11.188 2.68359 11.0518C3.14464 10.8981 3.4052 10.7092 3.56543 10.5312C3.72538 10.3536 3.83841 10.1275 3.91211 9.81348C3.98862 9.48741 4.01667 9.09459 4.01953 8.60645C4.02094 8.36534 4.01604 8.11432 4.01074 7.84375C4.00551 7.57679 4 7.29083 4 7C4 4.79086 5.79086 3 8 3C8.55228 3 9 3.44772 9 4C9 4.55228 8.55228 5 8 5C6.89543 5 6 5.89543 6 7C6 7.26733 6.00542 7.53204 6.01074 7.80371C6.01599 8.07149 6.02111 8.3477 6.01953 8.61816C6.0164 9.15365 5.98755 9.72428 5.85938 10.2705C5.72829 10.8289 5.48819 11.3854 5.05176 11.8701C5.00925 11.9173 4.96418 11.9621 4.91895 12.0068C4.95375 12.0421 4.98929 12.0765 5.02246 12.1133C5.4536 12.5909 5.69507 13.1408 5.83105 13.6953C5.96426 14.2386 6.00099 14.8083 6.00977 15.3496C6.01806 15.8622 6 16.4903 6 17C6 18.1046 6.89543 19 8 19C8.55228 19 9 19.4477 9 20C9 20.5523 8.55228 21 8 21C5.79086 21 4 19.2091 4 17ZM18 17C18 16.7279 17.9942 16.4593 17.9883 16.1855C17.9825 15.9157 17.9769 15.6379 17.9775 15.3672C17.9788 14.8316 18.0048 14.2616 18.1318 13.7168C18.262 13.1584 18.5024 12.6044 18.9424 12.1221C18.9807 12.0801 19.021 12.04 19.0615 12C19.021 11.96 18.9807 11.9199 18.9424 11.8779C18.5024 11.3956 18.262 10.8416 18.1318 10.2832C18.0048 9.7384 17.9788 9.16843 17.9775 8.63281C17.9769 8.36209 17.9825 8.08428 17.9883 7.81445C17.9942 7.54071 18 7.27215 18 7C18 5.89543 17.1046 5 16 5C15.4477 5 15 4.55228 15 4C15 3.44772 15.4477 3 16 3C18.2091 3 20 4.79086 20 7C20 7.29708 19.9941 7.58683 19.9883 7.85742C19.9824 8.13201 19.977 8.38527 19.9775 8.62793C19.9786 9.11898 20.0043 9.50808 20.0791 9.8291C20.1507 10.1363 20.2615 10.3556 20.4199 10.5293C20.5801 10.7049 20.8445 10.8945 21.3164 11.0518C21.7246 11.188 22 11.5697 22 12C22 12.4303 21.7246 12.812 21.3164 12.9482C20.8445 13.1055 20.5801 13.2951 20.4199 13.4707C20.2615 13.6444 20.1507 13.8637 20.0791 14.1709C20.0043 14.4919 19.9786 14.881 19.9775 15.3721C19.977 15.6147 19.9824 15.868 19.9883 16.1426C19.9941 16.4132 20 16.7029 20 17C20 19.2091 18.2091 21 16 21C15.4477 21 15 20.5523 15 20C15 19.4477 15.4477 19 16 19C17.1046 19 18 18.1046 18 17Z", fill: "currentColor" }) }));
3
- Function.displayName = "Function";
4
- export default Function;
2
+ const FunctionIcon = (props) => (_jsx("svg", { width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", ...props, children: _jsx("path", { d: "M4 17C4 16.372 4.01814 15.9014 4.00977 15.3828C4.00184 14.8931 3.96868 14.4983 3.88867 14.1719C3.81137 13.8566 3.69676 13.63 3.53809 13.4541C3.3797 13.2786 3.12576 13.0956 2.68359 12.9482C2.27541 12.812 2 12.4303 2 12C2 11.5697 2.27541 11.188 2.68359 11.0518C3.14464 10.8981 3.4052 10.7092 3.56543 10.5312C3.72538 10.3536 3.83841 10.1275 3.91211 9.81348C3.98862 9.48741 4.01667 9.09459 4.01953 8.60645C4.02094 8.36534 4.01604 8.11432 4.01074 7.84375C4.00551 7.57679 4 7.29083 4 7C4 4.79086 5.79086 3 8 3C8.55228 3 9 3.44772 9 4C9 4.55228 8.55228 5 8 5C6.89543 5 6 5.89543 6 7C6 7.26733 6.00542 7.53204 6.01074 7.80371C6.01599 8.07149 6.02111 8.3477 6.01953 8.61816C6.0164 9.15365 5.98755 9.72428 5.85938 10.2705C5.72829 10.8289 5.48819 11.3854 5.05176 11.8701C5.00925 11.9173 4.96418 11.9621 4.91895 12.0068C4.95375 12.0421 4.98929 12.0765 5.02246 12.1133C5.4536 12.5909 5.69507 13.1408 5.83105 13.6953C5.96426 14.2386 6.00099 14.8083 6.00977 15.3496C6.01806 15.8622 6 16.4903 6 17C6 18.1046 6.89543 19 8 19C8.55228 19 9 19.4477 9 20C9 20.5523 8.55228 21 8 21C5.79086 21 4 19.2091 4 17ZM18 17C18 16.7279 17.9942 16.4593 17.9883 16.1855C17.9825 15.9157 17.9769 15.6379 17.9775 15.3672C17.9788 14.8316 18.0048 14.2616 18.1318 13.7168C18.262 13.1584 18.5024 12.6044 18.9424 12.1221C18.9807 12.0801 19.021 12.04 19.0615 12C19.021 11.96 18.9807 11.9199 18.9424 11.8779C18.5024 11.3956 18.262 10.8416 18.1318 10.2832C18.0048 9.7384 17.9788 9.16843 17.9775 8.63281C17.9769 8.36209 17.9825 8.08428 17.9883 7.81445C17.9942 7.54071 18 7.27215 18 7C18 5.89543 17.1046 5 16 5C15.4477 5 15 4.55228 15 4C15 3.44772 15.4477 3 16 3C18.2091 3 20 4.79086 20 7C20 7.29708 19.9941 7.58683 19.9883 7.85742C19.9824 8.13201 19.977 8.38527 19.9775 8.62793C19.9786 9.11898 20.0043 9.50808 20.0791 9.8291C20.1507 10.1363 20.2615 10.3556 20.4199 10.5293C20.5801 10.7049 20.8445 10.8945 21.3164 11.0518C21.7246 11.188 22 11.5697 22 12C22 12.4303 21.7246 12.812 21.3164 12.9482C20.8445 13.1055 20.5801 13.2951 20.4199 13.4707C20.2615 13.6444 20.1507 13.8637 20.0791 14.1709C20.0043 14.4919 19.9786 14.881 19.9775 15.3721C19.977 15.6147 19.9824 15.868 19.9883 16.1426C19.9941 16.4132 20 16.7029 20 17C20 19.2091 18.2091 21 16 21C15.4477 21 15 20.5523 15 20C15 19.4477 15.4477 19 16 19C17.1046 19 18 18.1046 18 17Z", fill: "currentColor" }) }));
3
+ FunctionIcon.displayName = "Function";
4
+ export default FunctionIcon;
5
5
  //# sourceMappingURL=Function.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Function.js","sourceRoot":"","sources":["../../../../../src/components/Icon/svg/Function.tsx"],"names":[],"mappings":";AACA,MAAM,QAAQ,GAAG,CAAC,KAA8B,EAAE,EAAE,CAAC,CACnD,cAAK,KAAK,EAAC,KAAK,EAAC,MAAM,EAAC,KAAK,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,cAAc,iBAAa,MAAM,KAAK,KAAK,YAChG,eACE,CAAC,EAAC,6uEAA6uE,EAC/uE,IAAI,EAAC,cAAc,GACnB,GACE,CACP,CAAA;AACD,QAAQ,CAAC,WAAW,GAAG,UAAU,CAAA;AACjC,eAAe,QAAQ,CAAA","sourcesContent":["import type { SVGProps } from \"react\"\nconst Function = (props: SVGProps<SVGSVGElement>) => (\n <svg width=\"1em\" height=\"1em\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\" {...props}>\n <path\n d=\"M4 17C4 16.372 4.01814 15.9014 4.00977 15.3828C4.00184 14.8931 3.96868 14.4983 3.88867 14.1719C3.81137 13.8566 3.69676 13.63 3.53809 13.4541C3.3797 13.2786 3.12576 13.0956 2.68359 12.9482C2.27541 12.812 2 12.4303 2 12C2 11.5697 2.27541 11.188 2.68359 11.0518C3.14464 10.8981 3.4052 10.7092 3.56543 10.5312C3.72538 10.3536 3.83841 10.1275 3.91211 9.81348C3.98862 9.48741 4.01667 9.09459 4.01953 8.60645C4.02094 8.36534 4.01604 8.11432 4.01074 7.84375C4.00551 7.57679 4 7.29083 4 7C4 4.79086 5.79086 3 8 3C8.55228 3 9 3.44772 9 4C9 4.55228 8.55228 5 8 5C6.89543 5 6 5.89543 6 7C6 7.26733 6.00542 7.53204 6.01074 7.80371C6.01599 8.07149 6.02111 8.3477 6.01953 8.61816C6.0164 9.15365 5.98755 9.72428 5.85938 10.2705C5.72829 10.8289 5.48819 11.3854 5.05176 11.8701C5.00925 11.9173 4.96418 11.9621 4.91895 12.0068C4.95375 12.0421 4.98929 12.0765 5.02246 12.1133C5.4536 12.5909 5.69507 13.1408 5.83105 13.6953C5.96426 14.2386 6.00099 14.8083 6.00977 15.3496C6.01806 15.8622 6 16.4903 6 17C6 18.1046 6.89543 19 8 19C8.55228 19 9 19.4477 9 20C9 20.5523 8.55228 21 8 21C5.79086 21 4 19.2091 4 17ZM18 17C18 16.7279 17.9942 16.4593 17.9883 16.1855C17.9825 15.9157 17.9769 15.6379 17.9775 15.3672C17.9788 14.8316 18.0048 14.2616 18.1318 13.7168C18.262 13.1584 18.5024 12.6044 18.9424 12.1221C18.9807 12.0801 19.021 12.04 19.0615 12C19.021 11.96 18.9807 11.9199 18.9424 11.8779C18.5024 11.3956 18.262 10.8416 18.1318 10.2832C18.0048 9.7384 17.9788 9.16843 17.9775 8.63281C17.9769 8.36209 17.9825 8.08428 17.9883 7.81445C17.9942 7.54071 18 7.27215 18 7C18 5.89543 17.1046 5 16 5C15.4477 5 15 4.55228 15 4C15 3.44772 15.4477 3 16 3C18.2091 3 20 4.79086 20 7C20 7.29708 19.9941 7.58683 19.9883 7.85742C19.9824 8.13201 19.977 8.38527 19.9775 8.62793C19.9786 9.11898 20.0043 9.50808 20.0791 9.8291C20.1507 10.1363 20.2615 10.3556 20.4199 10.5293C20.5801 10.7049 20.8445 10.8945 21.3164 11.0518C21.7246 11.188 22 11.5697 22 12C22 12.4303 21.7246 12.812 21.3164 12.9482C20.8445 13.1055 20.5801 13.2951 20.4199 13.4707C20.2615 13.6444 20.1507 13.8637 20.0791 14.1709C20.0043 14.4919 19.9786 14.881 19.9775 15.3721C19.977 15.6147 19.9824 15.868 19.9883 16.1426C19.9941 16.4132 20 16.7029 20 17C20 19.2091 18.2091 21 16 21C15.4477 21 15 20.5523 15 20C15 19.4477 15.4477 19 16 19C17.1046 19 18 18.1046 18 17Z\"\n fill=\"currentColor\"\n />\n </svg>\n)\nFunction.displayName = \"Function\"\nexport default Function\n"]}
1
+ {"version":3,"file":"Function.js","sourceRoot":"","sources":["../../../../../src/components/Icon/svg/Function.tsx"],"names":[],"mappings":";AACA,MAAM,YAAY,GAAG,CAAC,KAA8B,EAAE,EAAE,CAAC,CACvD,cAAK,KAAK,EAAC,KAAK,EAAC,MAAM,EAAC,KAAK,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,cAAc,iBAAa,MAAM,KAAK,KAAK,YAChG,eACE,CAAC,EAAC,6uEAA6uE,EAC/uE,IAAI,EAAC,cAAc,GACnB,GACE,CACP,CAAA;AACD,YAAY,CAAC,WAAW,GAAG,UAAU,CAAA;AACrC,eAAe,YAAY,CAAA","sourcesContent":["import type { SVGProps } from \"react\"\nconst FunctionIcon = (props: SVGProps<SVGSVGElement>) => (\n <svg width=\"1em\" height=\"1em\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\" {...props}>\n <path\n d=\"M4 17C4 16.372 4.01814 15.9014 4.00977 15.3828C4.00184 14.8931 3.96868 14.4983 3.88867 14.1719C3.81137 13.8566 3.69676 13.63 3.53809 13.4541C3.3797 13.2786 3.12576 13.0956 2.68359 12.9482C2.27541 12.812 2 12.4303 2 12C2 11.5697 2.27541 11.188 2.68359 11.0518C3.14464 10.8981 3.4052 10.7092 3.56543 10.5312C3.72538 10.3536 3.83841 10.1275 3.91211 9.81348C3.98862 9.48741 4.01667 9.09459 4.01953 8.60645C4.02094 8.36534 4.01604 8.11432 4.01074 7.84375C4.00551 7.57679 4 7.29083 4 7C4 4.79086 5.79086 3 8 3C8.55228 3 9 3.44772 9 4C9 4.55228 8.55228 5 8 5C6.89543 5 6 5.89543 6 7C6 7.26733 6.00542 7.53204 6.01074 7.80371C6.01599 8.07149 6.02111 8.3477 6.01953 8.61816C6.0164 9.15365 5.98755 9.72428 5.85938 10.2705C5.72829 10.8289 5.48819 11.3854 5.05176 11.8701C5.00925 11.9173 4.96418 11.9621 4.91895 12.0068C4.95375 12.0421 4.98929 12.0765 5.02246 12.1133C5.4536 12.5909 5.69507 13.1408 5.83105 13.6953C5.96426 14.2386 6.00099 14.8083 6.00977 15.3496C6.01806 15.8622 6 16.4903 6 17C6 18.1046 6.89543 19 8 19C8.55228 19 9 19.4477 9 20C9 20.5523 8.55228 21 8 21C5.79086 21 4 19.2091 4 17ZM18 17C18 16.7279 17.9942 16.4593 17.9883 16.1855C17.9825 15.9157 17.9769 15.6379 17.9775 15.3672C17.9788 14.8316 18.0048 14.2616 18.1318 13.7168C18.262 13.1584 18.5024 12.6044 18.9424 12.1221C18.9807 12.0801 19.021 12.04 19.0615 12C19.021 11.96 18.9807 11.9199 18.9424 11.8779C18.5024 11.3956 18.262 10.8416 18.1318 10.2832C18.0048 9.7384 17.9788 9.16843 17.9775 8.63281C17.9769 8.36209 17.9825 8.08428 17.9883 7.81445C17.9942 7.54071 18 7.27215 18 7C18 5.89543 17.1046 5 16 5C15.4477 5 15 4.55228 15 4C15 3.44772 15.4477 3 16 3C18.2091 3 20 4.79086 20 7C20 7.29708 19.9941 7.58683 19.9883 7.85742C19.9824 8.13201 19.977 8.38527 19.9775 8.62793C19.9786 9.11898 20.0043 9.50808 20.0791 9.8291C20.1507 10.1363 20.2615 10.3556 20.4199 10.5293C20.5801 10.7049 20.8445 10.8945 21.3164 11.0518C21.7246 11.188 22 11.5697 22 12C22 12.4303 21.7246 12.812 21.3164 12.9482C20.8445 13.1055 20.5801 13.2951 20.4199 13.4707C20.2615 13.6444 20.1507 13.8637 20.0791 14.1709C20.0043 14.4919 19.9786 14.881 19.9775 15.3721C19.977 15.6147 19.9824 15.868 19.9883 16.1426C19.9941 16.4132 20 16.7029 20 17C20 19.2091 18.2091 21 16 21C15.4477 21 15 20.5523 15 20C15 19.4477 15.4477 19 16 19C17.1046 19 18 18.1046 18 17Z\"\n fill=\"currentColor\"\n />\n </svg>\n)\nFunctionIcon.displayName = \"Function\"\nexport default FunctionIcon\n"]}
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- const Number = (props) => (_jsxs("svg", { width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", ...props, children: [_jsx("path", { d: "M19 10C19 8.933 19 8.193 18.952 7.618C18.906 7.055 18.821 6.738 18.7 6.502C18.4362 5.98453 18.0155 5.56378 17.498 5.3C17.262 5.18 16.945 5.094 16.382 5.048C15.807 5 15.067 5 14 5H10C8.933 5 8.193 5 7.618 5.048C7.055 5.094 6.738 5.179 6.502 5.3C5.98453 5.56378 5.56378 5.98453 5.3 6.502C5.18 6.739 5.094 7.055 5.048 7.618C5 8.193 5 8.933 5 10V14C5 15.067 5 15.807 5.048 16.382C5.094 16.945 5.179 17.262 5.3 17.498C5.563 18.015 5.985 18.436 6.502 18.7C6.739 18.82 7.055 18.906 7.618 18.952C8.193 19 8.933 19 10 19H14C15.067 19 15.807 19 16.382 18.952C16.945 18.906 17.262 18.821 17.498 18.7C18.0155 18.4362 18.4362 18.0155 18.7 17.498C18.82 17.262 18.906 16.945 18.952 16.382C19 15.807 19 15.067 19 14V10ZM21 14C21 15.033 21 15.868 20.945 16.544C20.889 17.231 20.77 17.841 20.482 18.406C20.0265 19.2998 19.2998 20.0265 18.406 20.482C17.841 20.77 17.231 20.889 16.544 20.945C15.868 21 15.034 21 14 21H10C8.967 21 8.131 21 7.456 20.945C6.769 20.889 6.159 20.77 5.594 20.482C4.70018 20.0265 3.97347 19.2998 3.518 18.406C3.23 17.841 3.111 17.231 3.055 16.544C3 15.868 3 15.034 3 14V10C3 8.967 3 8.131 3.055 7.456C3.111 6.769 3.229 6.159 3.518 5.594C3.97353 4.70022 4.70022 3.97353 5.594 3.518C6.159 3.23 6.769 3.111 7.456 3.055C8.131 3 8.966 3 10 3H14C15.033 3 15.868 3 16.544 3.055C17.231 3.111 17.841 3.229 18.406 3.518C19.2998 3.97347 20.0265 4.70018 20.482 5.594C20.77 6.159 20.889 6.769 20.945 7.456C21 8.131 21 8.966 21 10V14Z", fill: "currentColor" }), _jsx("path", { d: "M8.5 15V9.00003L8.512 8.84504C8.54153 8.65485 8.62532 8.47722 8.75331 8.33348C8.8813 8.18973 9.04806 8.08598 9.23356 8.03467C9.41906 7.98335 9.61543 7.98667 9.7991 8.0442C9.98277 8.10174 10.1459 8.21106 10.269 8.35903L13.5 12.236V9.00003C13.5 8.73482 13.6054 8.48046 13.7929 8.29293C13.9804 8.10539 14.2348 8.00003 14.5 8.00003C14.7652 8.00003 15.0196 8.10539 15.2071 8.29293C15.3946 8.48046 15.5 8.73482 15.5 9.00003V15C15.5002 15.2057 15.4369 15.4064 15.3188 15.5748C15.2007 15.7432 15.0336 15.8711 14.8402 15.9411C14.6468 16.0111 14.4365 16.0197 14.238 15.9658C14.0395 15.9119 13.8625 15.7982 13.731 15.64L10.5 11.764V15C10.5 15.2652 10.3946 15.5196 10.2071 15.7071C10.0196 15.8946 9.76522 16 9.5 16C9.23478 16 8.98043 15.8946 8.79289 15.7071C8.60536 15.5196 8.5 15.2652 8.5 15Z", fill: "currentColor" })] }));
3
- Number.displayName = "Number";
4
- export default Number;
2
+ const NumberIcon = (props) => (_jsxs("svg", { width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", ...props, children: [_jsx("path", { d: "M19 10C19 8.933 19 8.193 18.952 7.618C18.906 7.055 18.821 6.738 18.7 6.502C18.4362 5.98453 18.0155 5.56378 17.498 5.3C17.262 5.18 16.945 5.094 16.382 5.048C15.807 5 15.067 5 14 5H10C8.933 5 8.193 5 7.618 5.048C7.055 5.094 6.738 5.179 6.502 5.3C5.98453 5.56378 5.56378 5.98453 5.3 6.502C5.18 6.739 5.094 7.055 5.048 7.618C5 8.193 5 8.933 5 10V14C5 15.067 5 15.807 5.048 16.382C5.094 16.945 5.179 17.262 5.3 17.498C5.563 18.015 5.985 18.436 6.502 18.7C6.739 18.82 7.055 18.906 7.618 18.952C8.193 19 8.933 19 10 19H14C15.067 19 15.807 19 16.382 18.952C16.945 18.906 17.262 18.821 17.498 18.7C18.0155 18.4362 18.4362 18.0155 18.7 17.498C18.82 17.262 18.906 16.945 18.952 16.382C19 15.807 19 15.067 19 14V10ZM21 14C21 15.033 21 15.868 20.945 16.544C20.889 17.231 20.77 17.841 20.482 18.406C20.0265 19.2998 19.2998 20.0265 18.406 20.482C17.841 20.77 17.231 20.889 16.544 20.945C15.868 21 15.034 21 14 21H10C8.967 21 8.131 21 7.456 20.945C6.769 20.889 6.159 20.77 5.594 20.482C4.70018 20.0265 3.97347 19.2998 3.518 18.406C3.23 17.841 3.111 17.231 3.055 16.544C3 15.868 3 15.034 3 14V10C3 8.967 3 8.131 3.055 7.456C3.111 6.769 3.229 6.159 3.518 5.594C3.97353 4.70022 4.70022 3.97353 5.594 3.518C6.159 3.23 6.769 3.111 7.456 3.055C8.131 3 8.966 3 10 3H14C15.033 3 15.868 3 16.544 3.055C17.231 3.111 17.841 3.229 18.406 3.518C19.2998 3.97347 20.0265 4.70018 20.482 5.594C20.77 6.159 20.889 6.769 20.945 7.456C21 8.131 21 8.966 21 10V14Z", fill: "currentColor" }), _jsx("path", { d: "M8.5 15V9.00003L8.512 8.84504C8.54153 8.65485 8.62532 8.47722 8.75331 8.33348C8.8813 8.18973 9.04806 8.08598 9.23356 8.03467C9.41906 7.98335 9.61543 7.98667 9.7991 8.0442C9.98277 8.10174 10.1459 8.21106 10.269 8.35903L13.5 12.236V9.00003C13.5 8.73482 13.6054 8.48046 13.7929 8.29293C13.9804 8.10539 14.2348 8.00003 14.5 8.00003C14.7652 8.00003 15.0196 8.10539 15.2071 8.29293C15.3946 8.48046 15.5 8.73482 15.5 9.00003V15C15.5002 15.2057 15.4369 15.4064 15.3188 15.5748C15.2007 15.7432 15.0336 15.8711 14.8402 15.9411C14.6468 16.0111 14.4365 16.0197 14.238 15.9658C14.0395 15.9119 13.8625 15.7982 13.731 15.64L10.5 11.764V15C10.5 15.2652 10.3946 15.5196 10.2071 15.7071C10.0196 15.8946 9.76522 16 9.5 16C9.23478 16 8.98043 15.8946 8.79289 15.7071C8.60536 15.5196 8.5 15.2652 8.5 15Z", fill: "currentColor" })] }));
3
+ NumberIcon.displayName = "Number";
4
+ export default NumberIcon;
5
5
  //# sourceMappingURL=Number.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Number.js","sourceRoot":"","sources":["../../../../../src/components/Icon/svg/Number.tsx"],"names":[],"mappings":";AACA,MAAM,MAAM,GAAG,CAAC,KAA8B,EAAE,EAAE,CAAC,CACjD,eAAK,KAAK,EAAC,KAAK,EAAC,MAAM,EAAC,KAAK,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,cAAc,iBAAa,MAAM,KAAK,KAAK,aAChG,eACE,CAAC,EAAC,o5CAAo5C,EACt5C,IAAI,EAAC,cAAc,GACnB,EACF,eACE,CAAC,EAAC,+wBAA+wB,EACjxB,IAAI,EAAC,cAAc,GACnB,IACE,CACP,CAAA;AACD,MAAM,CAAC,WAAW,GAAG,QAAQ,CAAA;AAC7B,eAAe,MAAM,CAAA","sourcesContent":["import type { SVGProps } from \"react\"\nconst Number = (props: SVGProps<SVGSVGElement>) => (\n <svg width=\"1em\" height=\"1em\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\" {...props}>\n <path\n d=\"M19 10C19 8.933 19 8.193 18.952 7.618C18.906 7.055 18.821 6.738 18.7 6.502C18.4362 5.98453 18.0155 5.56378 17.498 5.3C17.262 5.18 16.945 5.094 16.382 5.048C15.807 5 15.067 5 14 5H10C8.933 5 8.193 5 7.618 5.048C7.055 5.094 6.738 5.179 6.502 5.3C5.98453 5.56378 5.56378 5.98453 5.3 6.502C5.18 6.739 5.094 7.055 5.048 7.618C5 8.193 5 8.933 5 10V14C5 15.067 5 15.807 5.048 16.382C5.094 16.945 5.179 17.262 5.3 17.498C5.563 18.015 5.985 18.436 6.502 18.7C6.739 18.82 7.055 18.906 7.618 18.952C8.193 19 8.933 19 10 19H14C15.067 19 15.807 19 16.382 18.952C16.945 18.906 17.262 18.821 17.498 18.7C18.0155 18.4362 18.4362 18.0155 18.7 17.498C18.82 17.262 18.906 16.945 18.952 16.382C19 15.807 19 15.067 19 14V10ZM21 14C21 15.033 21 15.868 20.945 16.544C20.889 17.231 20.77 17.841 20.482 18.406C20.0265 19.2998 19.2998 20.0265 18.406 20.482C17.841 20.77 17.231 20.889 16.544 20.945C15.868 21 15.034 21 14 21H10C8.967 21 8.131 21 7.456 20.945C6.769 20.889 6.159 20.77 5.594 20.482C4.70018 20.0265 3.97347 19.2998 3.518 18.406C3.23 17.841 3.111 17.231 3.055 16.544C3 15.868 3 15.034 3 14V10C3 8.967 3 8.131 3.055 7.456C3.111 6.769 3.229 6.159 3.518 5.594C3.97353 4.70022 4.70022 3.97353 5.594 3.518C6.159 3.23 6.769 3.111 7.456 3.055C8.131 3 8.966 3 10 3H14C15.033 3 15.868 3 16.544 3.055C17.231 3.111 17.841 3.229 18.406 3.518C19.2998 3.97347 20.0265 4.70018 20.482 5.594C20.77 6.159 20.889 6.769 20.945 7.456C21 8.131 21 8.966 21 10V14Z\"\n fill=\"currentColor\"\n />\n <path\n d=\"M8.5 15V9.00003L8.512 8.84504C8.54153 8.65485 8.62532 8.47722 8.75331 8.33348C8.8813 8.18973 9.04806 8.08598 9.23356 8.03467C9.41906 7.98335 9.61543 7.98667 9.7991 8.0442C9.98277 8.10174 10.1459 8.21106 10.269 8.35903L13.5 12.236V9.00003C13.5 8.73482 13.6054 8.48046 13.7929 8.29293C13.9804 8.10539 14.2348 8.00003 14.5 8.00003C14.7652 8.00003 15.0196 8.10539 15.2071 8.29293C15.3946 8.48046 15.5 8.73482 15.5 9.00003V15C15.5002 15.2057 15.4369 15.4064 15.3188 15.5748C15.2007 15.7432 15.0336 15.8711 14.8402 15.9411C14.6468 16.0111 14.4365 16.0197 14.238 15.9658C14.0395 15.9119 13.8625 15.7982 13.731 15.64L10.5 11.764V15C10.5 15.2652 10.3946 15.5196 10.2071 15.7071C10.0196 15.8946 9.76522 16 9.5 16C9.23478 16 8.98043 15.8946 8.79289 15.7071C8.60536 15.5196 8.5 15.2652 8.5 15Z\"\n fill=\"currentColor\"\n />\n </svg>\n)\nNumber.displayName = \"Number\"\nexport default Number\n"]}
1
+ {"version":3,"file":"Number.js","sourceRoot":"","sources":["../../../../../src/components/Icon/svg/Number.tsx"],"names":[],"mappings":";AACA,MAAM,UAAU,GAAG,CAAC,KAA8B,EAAE,EAAE,CAAC,CACrD,eAAK,KAAK,EAAC,KAAK,EAAC,MAAM,EAAC,KAAK,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,cAAc,iBAAa,MAAM,KAAK,KAAK,aAChG,eACE,CAAC,EAAC,o5CAAo5C,EACt5C,IAAI,EAAC,cAAc,GACnB,EACF,eACE,CAAC,EAAC,+wBAA+wB,EACjxB,IAAI,EAAC,cAAc,GACnB,IACE,CACP,CAAA;AACD,UAAU,CAAC,WAAW,GAAG,QAAQ,CAAA;AACjC,eAAe,UAAU,CAAA","sourcesContent":["import type { SVGProps } from \"react\"\nconst NumberIcon = (props: SVGProps<SVGSVGElement>) => (\n <svg width=\"1em\" height=\"1em\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\" {...props}>\n <path\n d=\"M19 10C19 8.933 19 8.193 18.952 7.618C18.906 7.055 18.821 6.738 18.7 6.502C18.4362 5.98453 18.0155 5.56378 17.498 5.3C17.262 5.18 16.945 5.094 16.382 5.048C15.807 5 15.067 5 14 5H10C8.933 5 8.193 5 7.618 5.048C7.055 5.094 6.738 5.179 6.502 5.3C5.98453 5.56378 5.56378 5.98453 5.3 6.502C5.18 6.739 5.094 7.055 5.048 7.618C5 8.193 5 8.933 5 10V14C5 15.067 5 15.807 5.048 16.382C5.094 16.945 5.179 17.262 5.3 17.498C5.563 18.015 5.985 18.436 6.502 18.7C6.739 18.82 7.055 18.906 7.618 18.952C8.193 19 8.933 19 10 19H14C15.067 19 15.807 19 16.382 18.952C16.945 18.906 17.262 18.821 17.498 18.7C18.0155 18.4362 18.4362 18.0155 18.7 17.498C18.82 17.262 18.906 16.945 18.952 16.382C19 15.807 19 15.067 19 14V10ZM21 14C21 15.033 21 15.868 20.945 16.544C20.889 17.231 20.77 17.841 20.482 18.406C20.0265 19.2998 19.2998 20.0265 18.406 20.482C17.841 20.77 17.231 20.889 16.544 20.945C15.868 21 15.034 21 14 21H10C8.967 21 8.131 21 7.456 20.945C6.769 20.889 6.159 20.77 5.594 20.482C4.70018 20.0265 3.97347 19.2998 3.518 18.406C3.23 17.841 3.111 17.231 3.055 16.544C3 15.868 3 15.034 3 14V10C3 8.967 3 8.131 3.055 7.456C3.111 6.769 3.229 6.159 3.518 5.594C3.97353 4.70022 4.70022 3.97353 5.594 3.518C6.159 3.23 6.769 3.111 7.456 3.055C8.131 3 8.966 3 10 3H14C15.033 3 15.868 3 16.544 3.055C17.231 3.111 17.841 3.229 18.406 3.518C19.2998 3.97347 20.0265 4.70018 20.482 5.594C20.77 6.159 20.889 6.769 20.945 7.456C21 8.131 21 8.966 21 10V14Z\"\n fill=\"currentColor\"\n />\n <path\n d=\"M8.5 15V9.00003L8.512 8.84504C8.54153 8.65485 8.62532 8.47722 8.75331 8.33348C8.8813 8.18973 9.04806 8.08598 9.23356 8.03467C9.41906 7.98335 9.61543 7.98667 9.7991 8.0442C9.98277 8.10174 10.1459 8.21106 10.269 8.35903L13.5 12.236V9.00003C13.5 8.73482 13.6054 8.48046 13.7929 8.29293C13.9804 8.10539 14.2348 8.00003 14.5 8.00003C14.7652 8.00003 15.0196 8.10539 15.2071 8.29293C15.3946 8.48046 15.5 8.73482 15.5 9.00003V15C15.5002 15.2057 15.4369 15.4064 15.3188 15.5748C15.2007 15.7432 15.0336 15.8711 14.8402 15.9411C14.6468 16.0111 14.4365 16.0197 14.238 15.9658C14.0395 15.9119 13.8625 15.7982 13.731 15.64L10.5 11.764V15C10.5 15.2652 10.3946 15.5196 10.2071 15.7071C10.0196 15.8946 9.76522 16 9.5 16C9.23478 16 8.98043 15.8946 8.79289 15.7071C8.60536 15.5196 8.5 15.2652 8.5 15Z\"\n fill=\"currentColor\"\n />\n </svg>\n)\nNumberIcon.displayName = \"Number\"\nexport default NumberIcon\n"]}