@eightshift/ui-components 7.0.0 → 7.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/dist/assets/fonts/geist-latin-400-normal.woff2 +0 -0
  2. package/dist/assets/fonts/geist-latin-500-normal.woff2 +0 -0
  3. package/dist/assets/fonts/geist-latin-700-normal.woff2 +0 -0
  4. package/dist/assets/fonts/geist-latin-ext-400-normal.woff2 +0 -0
  5. package/dist/assets/fonts/geist-latin-ext-500-normal.woff2 +0 -0
  6. package/dist/assets/fonts/geist-latin-ext-700-normal.woff2 +0 -0
  7. package/dist/assets/fonts/geist-mono-latin-400-normal.woff2 +0 -0
  8. package/dist/assets/fonts/geist-mono-latin-500-normal.woff2 +0 -0
  9. package/dist/assets/fonts/geist-mono-latin-700-normal.woff2 +0 -0
  10. package/dist/assets/fonts/geist-mono-latin-ext-400-normal.woff2 +0 -0
  11. package/dist/assets/fonts/geist-mono-latin-ext-500-normal.woff2 +0 -0
  12. package/dist/assets/fonts/geist-mono-latin-ext-700-normal.woff2 +0 -0
  13. package/dist/assets/fonts/google-sans-flex-latin-ext-full-normal.woff2 +0 -0
  14. package/dist/assets/fonts/google-sans-flex-latin-full-normal.woff2 +0 -0
  15. package/dist/assets/fonts/google-sans-flex-symbols-full-normal.woff2 +0 -0
  16. package/dist/assets/style-admin.css +3 -12528
  17. package/dist/assets/style-editor.css +3 -12492
  18. package/dist/assets/style.css +3 -12498
  19. package/dist/assets/wp-overrides/allow-full-width-blocks.css +2 -6
  20. package/dist/assets/wp-overrides/fix-label-text-case.css +2 -29
  21. package/dist/assets/wp-overrides/increase-sidebar-width.css +2 -4
  22. package/dist/assets/wp-overrides/make-block-messages-nicer.css +2 -155
  23. package/dist/assets/wp-overrides/replace-fonts.css +2 -8
  24. package/dist/assets/wp-overrides/restyle-tooltips.css +2 -194
  25. package/dist/assets/wp-overrides/round-corners.css +2 -200
  26. package/dist/assets/wp-overrides/unify-button-sizes.css +2 -5
  27. package/dist/{button-COTeluL8.js → button-D9cbyHeZ.js} +2 -2
  28. package/dist/{checkbox-D0AWkLhp.js → checkbox-BO5RZmO8.js} +1 -1
  29. package/dist/{color-swatch-CBYsO_Zs.js → color-swatch-D2ZBkuTt.js} +1 -1
  30. package/dist/components/base-control/container.js +1 -1
  31. package/dist/components/button/button.js +1 -2
  32. package/dist/components/checkbox/checkbox.js +1 -1
  33. package/dist/components/color-pickers/color-picker.js +2 -2
  34. package/dist/components/color-pickers/color-swatch.js +1 -2
  35. package/dist/components/color-pickers/gradient-editor.js +1 -3
  36. package/dist/components/color-pickers/solid-color-picker.js +1 -2
  37. package/dist/components/component-toggle/component-toggle.js +4 -4
  38. package/dist/components/container-panel/container-panel.js +2 -3
  39. package/dist/components/draggable/draggable-handle.js +1 -1
  40. package/dist/components/draggable/draggable.js +1 -2
  41. package/dist/components/draggable-list/draggable-list-item.js +1 -1
  42. package/dist/components/draggable-list/draggable-list.js +2 -2
  43. package/dist/components/expandable/expandable.js +2 -2
  44. package/dist/components/index.js +14 -16
  45. package/dist/components/input-field/input-field.js +1 -1
  46. package/dist/components/item-collection/item-collection.js +1 -1
  47. package/dist/components/link-input/link-input.js +1 -2
  48. package/dist/components/matrix-align/matrix-align.js +1 -1
  49. package/dist/components/menu/menu.js +2 -2
  50. package/dist/components/modal/modal.js +1 -2
  51. package/dist/components/number-picker/number-picker.js +1 -2
  52. package/dist/components/option-select/option-select.js +4 -4
  53. package/dist/components/placeholders/file-picker-shell.js +1 -2
  54. package/dist/components/placeholders/file-placeholder.js +1 -1
  55. package/dist/components/popover/popover.js +2 -2
  56. package/dist/components/radio/radio.js +1 -1
  57. package/dist/components/repeater/repeater-item.js +2 -2
  58. package/dist/components/repeater/repeater.js +3 -3
  59. package/dist/components/responsive/mini-responsive.js +2 -2
  60. package/dist/components/responsive/responsive-legacy.js +3 -3
  61. package/dist/components/responsive/responsive.js +3 -3
  62. package/dist/components/responsive-preview/responsive-preview.js +1 -1
  63. package/dist/components/select/async-multi-select.js +9 -12
  64. package/dist/components/select/async-select.js +8 -10
  65. package/dist/components/select/multi-select.js +6 -8
  66. package/dist/components/select/shared.js +1 -2
  67. package/dist/components/select/single-select.js +6 -8
  68. package/dist/components/select/styles.js +1 -1
  69. package/dist/components/slider/column-config-slider.js +2 -2
  70. package/dist/components/slider/slider.js +2 -3
  71. package/dist/components/slider/utils.js +1 -1
  72. package/dist/components/smart-image/smart-image.js +1 -2
  73. package/dist/components/tabs/tabs.js +1 -2
  74. package/dist/components/toggle/switch.js +1 -1
  75. package/dist/components/toggle/toggle.js +1 -1
  76. package/dist/components/toggle-button/toggle-button.js +1 -1
  77. package/dist/{draggable-CYQyD9gG.js → draggable-CTDVJ4zd.js} +1 -1
  78. package/dist/gradient-editor-xfxA_s9a.js +1583 -0
  79. package/dist/icons/index.js +1 -1
  80. package/dist/icons/jsx-svg.js +1 -1
  81. package/dist/index.js +14 -16
  82. package/dist/{input-field-UCZL5bqv.js → input-field-_OCWbftf.js} +1 -1
  83. package/dist/{link-input-D7iDRpOM.js → link-input-Bh8G7Urm.js} +2 -2
  84. package/dist/{modal-DbVLYMkH.js → modal-snrElwty.js} +2 -2
  85. package/dist/{number-picker-CkA1iJNZ.js → number-picker-Dhtx4409.js} +3 -2
  86. package/dist/{proxy-BG7-_Ou3.js → proxy-DjkEpeDL.js} +43 -21
  87. package/dist/{shared-DFDimxvX.js → shared-BiWZjrGF.js} +3 -3
  88. package/dist/{smart-image-CbSsEASF.js → smart-image-CBNbxJ57.js} +1 -1
  89. package/dist/{solid-color-picker-DbT-aoVx.js → solid-color-picker-DukArNH-.js} +2 -2
  90. package/dist/{switch-L8dFSQWQ.js → switch-DmsvyQPa.js} +1 -1
  91. package/dist/{tabs-BrdyBER5.js → tabs-DaIUEc0g.js} +2 -2
  92. package/dist/{toggle-button-DJ8jNQ-9.js → toggle-button-BlzUGfGy.js} +1 -1
  93. package/dist/utilities/general.js +25 -2
  94. package/dist/utilities/index.js +3 -3
  95. package/package.json +10 -13
  96. package/dist/general-D-7dwhuF.js +0 -4277
  97. package/dist/gradient-editor-DbH8NU2p.js +0 -604
  98. package/dist/workers/image-analysis.worker.js +0 -60
  99. /package/dist/{List-CMK5qsNF.js → List-DWlgW2Ex.js} +0 -0
  100. /package/dist/{build-module-sxK3nxOK.js → build-module-Bsx62nlm.js} +0 -0
  101. /package/dist/{dist-DIK9pFxO.js → dist-2gkv7_1U.js} +0 -0
  102. /package/dist/{jsx-svg-OBADs_Qs.js → jsx-svg-BRJ4n3pD.js} +0 -0
  103. /package/dist/{utilities-CPFDXC3B.js → utilities-lwX686oD.js} +0 -0
@@ -755,5 +755,5 @@ import { verticalAlignBetweenAlt } from "./ui-icons/vertical-align-between-alt.j
755
755
  import { horizontalAlignAround } from "./ui-icons/horizontal-align-around.js";
756
756
  import { horizontalAlignEvenly } from "./ui-icons/horizontal-align-evenly.js";
757
757
  import { horizontalAlignBetweenAlt } from "./ui-icons/horizontal-align-between-alt.js";
758
- import { t as JsxSvg } from "../jsx-svg-OBADs_Qs.js";
758
+ import { t as JsxSvg } from "../jsx-svg-BRJ4n3pD.js";
759
759
  export { BlockIcon, GenericColorSwatch, Icon, JsxSvg, Spinner, a11y, a11yWarning, accelerometer, activityLog, add, alert, alignHorizontalVertical, alignHorizontalVerticalAlt, alignHorizontalVerticalAlt2, altText, altTextGeneric, altTextGenericAlt, anchor, anchorPage, angle, animation, animationFile, animationGeneric, animationListGeneric, animationSettingsGeneric, archive, archiveFile, ariaLabel, arrowDown, arrowDownCircle, arrowDownCircleAlt, arrowDownSquare, arrowDownSquareAlt, arrowLeft, arrowLeftCircle, arrowLeftCircleAlt, arrowLeftSquare, arrowLeftSquareAlt, arrowRight, arrowRightCircle, arrowRightCircleAlt, arrowRightSquare, arrowRightSquareAlt, arrowUp, arrowUpCircle, arrowUpCircleAlt, arrowUpSquare, arrowUpSquareAlt, arrowsDown, arrowsHorizontal, arrowsLeft, arrowsLeftDiagonal, arrowsRight, arrowsRightDiagonal, arrowsUp, arrowsVertical, aspectRatio, aspectRatioAuto, aspectRatioNineSixteen, aspectRatioSixteenNine, aspectRatioSquare, aspectRatioThreeTwo, aspectRatioTwentyOneNine, attachment, autoClose, autoPause, autoPauseScroll, automatic, automaticAlt, autoplay, autoplayAlt, autoplayAlt2, award, backgroundBlur, backgroundColorSwatch, backgroundImage, backgroundRepeat, backgroundType, backgroundTypeAlt, backgroundTypeAlt2, blockIcons, blockParts, bold, book, bookmark, booleanExclude, booleanIntersect, booleanSubtract, booleanUnion, border, borderColor, bot, botDeny, box, brain, branch, branchFork, briefcase, browser, buttonDisabled, buttonFilled, buttonGhost, buttonOutline, calculator, calendar, calendarAdd, calendarDownload, calendarRemove, captionGeneric, cardFeatured, caretDown, caretDownFill, caretLeft, caretLeftFill, caretRight, caretRightFill, caretUp, caretUpFill, centerPoint, chat, chatBubble, chatBubbleAlt, check, checkCircle, checkCircleFill, checkCircleFillTransparent, checkSquare, checks, checksCircle, chevronDown, chevronLeft, chevronRight, chevronUp, clear, clearAlt, clipboard, clipboardPlain, clock, closedCaptions, code, codeVariable, color, colorAlt, colorFillSwatch, colorPickerFill, colorPickerListMarker, colorPickerText, colorPickerTextHighlight, colorSelect, columnGuttersLR, columns, columns3366, columns6633, componentGeneric, componentOptions, conditionH, conditionV, conditionalVisibility, containerHeight, containerSpacing, containerSpacingH, containerWidth, contentBottomLeft, contentBottomRight, contentCenter, contentTopLeft, contentTopRight, contrast, contrastAlt, cookie, cookieAlt, copy, currency, currentPage, cursorDisabled, cursorMove, darkMode, data, dateTime, defer, descriptionLink, design, dice, divider, dividerBottom, dividerSide, dividerStatus, dividerTop, door, doorIn, doorOut, download, dropdown, dropdownCaret, dropdownCaretAlt, dropdownClose, dropdownOpen, dummySpacer, edit, editOptions, email, emailRemove, embed, emptyCircle, emptyRect, equalColumns, equalRows, equals, errorCircle, errorCircleFill, errorCircleFillTransparent, exclude, excludeItem, excludeItemAlt, expand, expandXl, experiment, externalLink, extract, extractAlt, eyedropper, fastForward, fastReverse, fieldAfterText, fieldBeforeText, fieldDisabled, fieldHelp, fieldLabel, fieldName, fieldPlaceholder, fieldReadonly, fieldRequired, fieldType, fieldValue, fieldWidth, file, fileDownload, fileError, fileMetadata, filePdf, fileSize, fileSizeMax, fileSizeMin, fileType, fileUpload, files, fillColor, filter, filterAlt, flag, flagAlt, flipH, flipV, focus, folder, folderAdd, folderOpen, folderOpenSolid, folderSolid, folderTopLevel, fontFamily, footer, form, formAlt, fourColumns, frame, fullMaxShield, fullMaxText, fullWidthImage, gears, gearsFill, genericColorSwatch, genericShapes, genericShapesAlt, globe, globeAnchor, globeHash, googleTagManager, gradient, gradientRepeat, gradientStop, gridAlt, gridAutoCols, gridAutoRows, gridCol, gridHeight, gridListToggle, gridManual, gridRow, gridWidth, group, gutter, gyroscope, h1, h2, h3, h4, h5, h6, hamburgerMenu, hardDrive, header, heading, headingLevel, headingLevelAlt, heart, heartFill, heartFillTransparent, height, help, helpFill, hide, highlightedCheckmark, highlightedExclamationMark, history, horizontalAlign, horizontalAlignAlt, horizontalAlignAround, horizontalAlignBetween, horizontalAlignBetweenAlt, horizontalAlignCenter, horizontalAlignEvenly, horizontalAlignLeft, horizontalAlignRight, horizontalAlignStretch, hoverBackgroundGlow, hoverBackgroundType, hoverInvertObject, hoverInvertText, hoverRotate, hoverZoom, hyphenate, hyphenateAlt, hyphenateAlt2, iconGeneric, id, idCard, image, imageBlur, imageCaption, imageError, imageFile, imageLazyLoad, imageOpacity, imageOverlay, imageOverlayAlt, imageOverlayAlt2, imageRemove, info, infoCircle, infoCircleFill, infoCircleFillTransparent, inherit, inlineGradientFormat, inputField, italic, itemLimit, itemSelect, itemWrap, itemsPerPage, itemsPerRow, key, keyboard, large, latestPosts, layer, layerOff, layers, layout, layoutAlt, layoutAlt2, layoutAlt3, layoutAlt4, layoutBentoBox, layoutMasonry, leftPanel, leftPanelAlt, lightBulb, lightBulbAlt, lightMode, limitWidth, lineBreak, lineBreakAlt, lineBreakAltOff, lineBreakOff, lineBreakOffAlt, lineBreaksHyphenation, link, linkAdd, linkNav, linkRemove, listIndent, listOrdered, listOutdent, listUnordered, loader, loaderAlt, location, locationAdd, locationAllow, locationDeny, locationSettings, lock, loopMode, magic, magicAlt, magicAltFill, magicAltFillTransparent, magicFill, magicFillTransparent, mapLayer, mapLayerJson, mapLayerRaster, mapLayerVector, mapPin, matrixAlignControlDotActive, matrixAlignControlDotInactive, media, medium, menuItemCheck, menuItemCircle, microphone, migration, migrationAlt, migrationAltV, module, moneyPaper, moreH, moreHCircle, moreV, moreVCircle, mouseCursor, mouseWheel, multiItemLeftInset, multiItemLeftInsetMobile, multiItemRightInset, multiItemRightInsetMobile, multiple, musicNote, mute, muteCentered, narrowBottom, narrowLeft, narrowRight, narrowTop, navigationButtons, newTab, newspaper, none, notebook, num0Circle, num0CircleAlt, num0Square, num0SquareAlt, num1Circle, num1CircleAlt, num1Square, num1SquareAlt, num2Circle, num2CircleAlt, num2Square, num2SquareAlt, num3Circle, num3CircleAlt, num3Square, num3SquareAlt, num4Circle, num4CircleAlt, num4Square, num4SquareAlt, num5Circle, num5CircleAlt, num5Square, num5SquareAlt, num6Circle, num6CircleAlt, num6Square, num6SquareAlt, num7Circle, num7CircleAlt, num7Square, num7SquareAlt, num8Circle, num8CircleAlt, num8Square, num8SquareAlt, num9Circle, num9CircleAlt, num9Square, num9SquareAlt, officeBuilding, officeBuildings, offset, offsetAuto, optionList, optionListAlt, options, order, padding, paddingBottom, paddingTop, pagination, paletteColor, panelCollapse, panelExpand, paragraph, paste, pause, people, peopleGroup, person, photoCamera, pictureInPicture, play, playReverse, playbackOptions, plusCircle, plusCircleFill, plusCircleFillAlt, plusMinusButtonsH, plusMinusButtonsV, plusSquare, plusSquareFill, plusSquareFillTransparent, pointerHand, pointerHandDisabled, position2x2BottomLeft, position2x2BottomRight, position2x2Empty, position2x2TopLeft, position2x2TopRight, position3x3BottomCenter, position3x3BottomLeft, position3x3BottomRight, position3x3CenterCenter, position3x3CenterLeft, position3x3CenterRight, position3x3Empty, position3x3TopCenter, position3x3TopLeft, position3x3TopRight, positionArrows, positionArrowsH, positionArrowsInverted, positionArrowsInvertedH, positionArrowsInvertedV, positionArrowsV, positionHCenter, positionHEnd, positionHStart, positionLeft, positionRight, positionVCenter, positionVEnd, positionVStart, positioningGuide, positioningGuideAlt, positioningWidthGuide, preload, preview, previewResponsive, progressbar, progressbarIntermittent, range, rangeMax, rangeMid, rangeMin, readOnly, reduceHeightBottom, reduceHeightTop, regex, remove, rename, reorder, reorderGrabberH, reorderGrabberV, required, requiredAlt, reset, resetToZero, responsive, responsiveOverrides, responsiveOverridesAlt, responsiveOverridesAlt2, responsiveOverridesAlt2Fill, responsiveOverridesAlt3Fill, responsiveOverridesAltFill, rightPanel, rightPanelAlt, rotateLeft, rotateRight, roundedCorners, route, row, rowAdd, rowEmpty, rows, ruler, save, screenDesktop, screenLarge, screenMobile, screenTablet, screenTabletLarge, scrollbarH, scrollbarV, scrollbars, search, searchEmpty, separatorH, separatorV, shadow, share, shield, shieldPlus, shieldPlusAlt, shrink, shrinkDiagonalLeft, shrinkDiagonalLeftXl, shrinkDiagonalRight, shrinkDiagonalRightXl, shrinkXl, shuffle, sidebar, sidebarFlip, singleItemLeftInset, singleItemLeftInsetMobile, singleItemRightInset, singleItemRightInsetMobile, size, sizeAlt, slider, sliders, small, solidCircle, solidCircleFillTransparent, solidCircleFilled, solidCircleGradient, solidColor, solidRect, solidRectFillTransparent, solidRectFilled, solidRectGradient, sortAsc, sortDesc, sortGeneric, spacingBottom, spacingBottomIn, spacingLeft, spacingLeftIn, spacingRight, spacingRightIn, spacingTop, spacingTopIn, speed, stagger, star, step, stop, swap, tag, tagAlt, textAbc, textAbove, textAlignCenter, textAlignGeneric, textAlignJustify, textAlignLeft, textAlignRight, textBelow, textBoxEdit, textColorSwatch, textHighlightColorSwatch, textHighlightColorSwatchAlt, textLarger, textLength, textSize, textSizeAlt, textSmaller, textStrikethrough, textUppercase, textWrite, thumbsDown, thumbsUp, titleGeneric, toggleOff, toggleOn, toggleOnAlt, tools, totalItems, trash, trashAlt, tree, treeAlt, treeAlt2, troubleshootAlt, twoCardsLeft, twoCardsRight, twoColumns, typography, typographyOptions, underline, ungroup, upload, vennDiagram, vennDiagramAlt, vennDiagramAlt2, vennDiagramAlt3, vennDiagramAlt4, vennDiagramAlt5, vennDiagramAlt6, vennDiagramAlt7, verticalAlign, verticalAlignAlt, verticalAlignAround, verticalAlignBetween, verticalAlignBetweenAlt, verticalAlignBottom, verticalAlignCenter, verticalAlignEvenly, verticalAlignStretch, verticalAlignTop, verticalSpacing, video, videoChapters, videoControls, videoFile, videoPosterImage, videoSubtitle, videoSubtitleAlt, visibility, visibilityAlt, visibilityAlt2, visible, volume, warning, warningCircle, warningCircleFill, warningCircleFillTransparent, warningFill, warningFillTransparent, webVideo, wideBottom, wideLeft, wideRight, wideTop, width, wordpress, wrapper, wrapperAlt, wrapperConfig, wrapperOffAlt, wrapperOverflow, wrapperSimple, wrapperSimpleAlt, wrench, zap, zapFill };
@@ -1,2 +1,2 @@
1
- import { t as JsxSvg } from "../jsx-svg-OBADs_Qs.js";
1
+ import { t as JsxSvg } from "../jsx-svg-BRJ4n3pD.js";
2
2
  export { JsxSvg };
package/dist/index.js CHANGED
@@ -1,21 +1,19 @@
1
- import "./proxy-BG7-_Ou3.js";
2
1
  import { AnimatedVisibility } from "./components/animated-visibility/animated-visibility.js";
3
- import { t as LinkInput } from "./link-input-D7iDRpOM.js";
4
- import { t as Modal } from "./modal-DbVLYMkH.js";
5
- import { i as Tabs, n as TabList, r as TabPanel, t as Tab } from "./tabs-BrdyBER5.js";
2
+ import { t as LinkInput } from "./link-input-Bh8G7Urm.js";
3
+ import { t as Modal } from "./modal-snrElwty.js";
4
+ import { i as Tabs, n as TabList, r as TabPanel, t as Tab } from "./tabs-DaIUEc0g.js";
6
5
  import { n as Tooltip, t as DecorativeTooltip } from "./tooltip-BzJzYlcc.js";
7
- import { t as ToggleButton } from "./toggle-button-DJ8jNQ-9.js";
8
- import { n as ButtonGroup, t as Button } from "./button-COTeluL8.js";
9
- import { t as Checkbox } from "./checkbox-D0AWkLhp.js";
10
- import { t as ColorSwatch } from "./color-swatch-CBYsO_Zs.js";
11
- import { t as SolidColorPicker } from "./solid-color-picker-DbT-aoVx.js";
12
- import { t as Switch } from "./switch-L8dFSQWQ.js";
13
- import { t as NumberPicker } from "./number-picker-CkA1iJNZ.js";
14
- import { t as InputField } from "./input-field-UCZL5bqv.js";
6
+ import { t as ToggleButton } from "./toggle-button-BlzUGfGy.js";
7
+ import { n as ButtonGroup, t as Button } from "./button-D9cbyHeZ.js";
8
+ import { t as Checkbox } from "./checkbox-BO5RZmO8.js";
9
+ import { t as ColorSwatch } from "./color-swatch-D2ZBkuTt.js";
10
+ import { t as SolidColorPicker } from "./solid-color-picker-DukArNH-.js";
11
+ import { t as Switch } from "./switch-DmsvyQPa.js";
12
+ import { t as NumberPicker } from "./number-picker-Dhtx4409.js";
13
+ import { t as InputField } from "./input-field-_OCWbftf.js";
15
14
  import { RichLabel } from "./components/rich-label/rich-label.js";
16
15
  import { BaseControl } from "./components/base-control/base-control.js";
17
16
  import { BreakpointPreview } from "./components/breakpoint-preview/breakpoint-preview.js";
18
- import "./build-module-sxK3nxOK.js";
19
17
  import { Expandable } from "./components/expandable/expandable.js";
20
18
  import { Popover, TriggeredPopover } from "./components/popover/popover.js";
21
19
  import { Spacer } from "./components/spacer/spacer.js";
@@ -30,12 +28,12 @@ import { Container, ContainerGroup } from "./components/base-control/container.j
30
28
  import { DraggableList } from "./components/draggable-list/draggable-list.js";
31
29
  import { DraggableListItem, DraggableListItemHandle } from "./components/draggable-list/draggable-list-item.js";
32
30
  import { DraggableContext } from "./components/draggable/draggable-context.js";
33
- import { t as Draggable } from "./draggable-CYQyD9gG.js";
31
+ import { t as Draggable } from "./draggable-CTDVJ4zd.js";
34
32
  import { DraggableHandle } from "./components/draggable/draggable-handle.js";
35
- import { t as SmartImage } from "./smart-image-CbSsEASF.js";
33
+ import { t as SmartImage } from "./smart-image-CBNbxJ57.js";
36
34
  import { FilePickerShell } from "./components/placeholders/file-picker-shell.js";
37
35
  import { FilePlaceholder } from "./components/placeholders/file-placeholder.js";
38
- import { t as GradientEditor } from "./gradient-editor-DbH8NU2p.js";
36
+ import { t as GradientEditor } from "./gradient-editor-xfxA_s9a.js";
39
37
  import { Slider } from "./components/slider/slider.js";
40
38
  import { MatrixAlign } from "./components/matrix-align/matrix-align.js";
41
39
  import { Toggle } from "./components/toggle/toggle.js";
@@ -11,7 +11,7 @@ import { n as $01b77f81d0f07f68$export$b04be29aa201d4f5, t as $01b77f81d0f07f68$
11
11
  import { n as $514c0188e459b4c0$export$9afb8bc826b033ea } from "./Text-O6VBBDlP.js";
12
12
  import { t as $d3e0e05bdfcf66bd$export$c24727297075ec6a } from "./Form-DTMkbrQY.js";
13
13
  import { BaseControl } from "./components/base-control/base-control.js";
14
- import { t as cva } from "./dist-DIK9pFxO.js";
14
+ import { t as cva } from "./dist-2gkv7_1U.js";
15
15
  import React, { createContext, forwardRef, useCallback, useRef, useState } from "react";
16
16
  import { jsx, jsxs } from "react/jsx-runtime";
17
17
  //#region node_modules/react-aria-components/dist/TextArea.mjs
@@ -24,8 +24,8 @@ import { t as $d3e0e05bdfcf66bd$export$c24727297075ec6a } from "./Form-DTMkbrQY.
24
24
  import { RichLabel } from "./components/rich-label/rich-label.js";
25
25
  import { BaseControl } from "./components/base-control/base-control.js";
26
26
  import { randomId } from "./utilities/hash.js";
27
- import { t as cva } from "./dist-DIK9pFxO.js";
28
- import { t as __ } from "./build-module-sxK3nxOK.js";
27
+ import { t as cva } from "./dist-2gkv7_1U.js";
28
+ import { t as __ } from "./build-module-Bsx62nlm.js";
29
29
  import { Spinner } from "./icons/spinner.js";
30
30
  import { anchor } from "./icons/ui-icons/anchor.js";
31
31
  import { clearAlt } from "./icons/ui-icons/clear-alt.js";
@@ -6,9 +6,9 @@ import { A as $21f1aa98acb08317$export$c57958e35f31ed73, j as $cc38e7bd3fc7b213$
6
6
  import { r as $fc909762b330b746$export$61c6a8c84e605fb6 } from "./OverlayArrow-BoloUPQM.js";
7
7
  import { C as $49c51c25361d4cd2$export$ee0f7cc6afcd1c18, S as $86ea4cb521eb2e37$export$2317d149ed6f78c4, b as $337b884510726a0d$export$c6fdb837b070b4ff, n as $de32f1b87079253c$export$3ddf2d174ce01153, r as $de32f1b87079253c$export$d2f961adcb0afbe, t as $de32f1b87079253c$export$2e1e1122cf0cba88, w as $a11501f3d1d39e6c$export$ea8f71083e90600f, x as $5e3802645cc19319$export$1c3ebcada18427bf, y as $337b884510726a0d$export$14c98a7594375490 } from "./Dialog-i5VLQw1o.js";
8
8
  import { n as $d3f049242431219c$export$6d3443f2c48bfc20, t as $d3f049242431219c$export$45fda7c47f93fd48 } from "./animation-Bd2peown.js";
9
- import { t as Button } from "./button-COTeluL8.js";
9
+ import { t as Button } from "./button-D9cbyHeZ.js";
10
10
  import { t as $5cb03073d3f54797$export$a8a3e93435678ff9 } from "./Heading-Hol-wS_B.js";
11
- import { t as __ } from "./build-module-sxK3nxOK.js";
11
+ import { t as __ } from "./build-module-Bsx62nlm.js";
12
12
  import { clear } from "./icons/ui-icons/clear.js";
13
13
  import { HStack } from "./components/layout/hstack.js";
14
14
  import React, { createContext, forwardRef, useContext, useEffect, useMemo, useRef, useState } from "react";
@@ -6,12 +6,13 @@ import { t as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-C-XNeJ
6
6
  import { r as $de67e98908f0c6ee$export$7f629e9dc1ecf37c, t as $81397a9303501bda$export$23f548e970bdf099 } from "./useNumberField-2xbi3jRV.js";
7
7
  import { t as $ee014567cb39d3f0$export$ff05c3ac10437e03 } from "./FieldError-BWDbP5Db.js";
8
8
  import { i as $a049562f99e7db0e$export$f9c6924e160136d1, n as $3985021b0ad6602f$export$f5b8910cec6cf069, r as $a049562f99e7db0e$export$eb2fcfdbd7ba97d4, t as $3985021b0ad6602f$export$37fb8590cf2c088c } from "./Input-BURqyJXW.js";
9
- import { n as ButtonGroup, t as Button } from "./button-COTeluL8.js";
9
+ import { n as ButtonGroup, t as Button } from "./button-D9cbyHeZ.js";
10
10
  import { n as $01b77f81d0f07f68$export$b04be29aa201d4f5, t as $01b77f81d0f07f68$export$75b6ee27786ba447 } from "./Label-DFXXxMKY.js";
11
11
  import { n as $514c0188e459b4c0$export$9afb8bc826b033ea } from "./Text-O6VBBDlP.js";
12
12
  import { t as $d3e0e05bdfcf66bd$export$c24727297075ec6a } from "./Form-DTMkbrQY.js";
13
13
  import { BaseControl } from "./components/base-control/base-control.js";
14
- import { t as cva } from "./dist-DIK9pFxO.js";
14
+ import { t as cva } from "./dist-2gkv7_1U.js";
15
+ import "./build-module-Bsx62nlm.js";
15
16
  import { chevronDown } from "./icons/ui-icons/chevron-down.js";
16
17
  import { chevronUp } from "./icons/ui-icons/chevron-up.js";
17
18
  import React, { createContext, forwardRef, useRef } from "react";
@@ -3193,9 +3193,14 @@ function animateTarget(visualElement, targetAndTransition, { delay = 0, transiti
3193
3193
  };
3194
3194
  /**
3195
3195
  * If the value is already at the defined target, skip the animation.
3196
+ * We still re-assert the value via frame.update to take precedence
3197
+ * over any stale transitionEnd callbacks from previous animations.
3196
3198
  */
3197
3199
  const currentValue = value.get();
3198
- if (currentValue !== void 0 && !value.isAnimating && !Array.isArray(valueTarget) && valueTarget === currentValue && !valueTransition.velocity) continue;
3200
+ if (currentValue !== void 0 && !value.isAnimating() && !Array.isArray(valueTarget) && valueTarget === currentValue && !valueTransition.velocity) {
3201
+ frame.update(() => value.set(valueTarget));
3202
+ continue;
3203
+ }
3199
3204
  /**
3200
3205
  * If this is the first time a value is being animated, check
3201
3206
  * to see if we're handling off from an existing animation.
@@ -5583,21 +5588,22 @@ function calcBoxDelta(delta, source, target, origin) {
5583
5588
  calcAxisDelta(delta.x, source.x, target.x, origin ? origin.originX : void 0);
5584
5589
  calcAxisDelta(delta.y, source.y, target.y, origin ? origin.originY : void 0);
5585
5590
  }
5586
- function calcRelativeAxis(target, relative, parent) {
5587
- target.min = parent.min + relative.min;
5591
+ function calcRelativeAxis(target, relative, parent, anchor = 0) {
5592
+ target.min = (anchor ? mixNumber$1(parent.min, parent.max, anchor) : parent.min) + relative.min;
5588
5593
  target.max = target.min + calcLength(relative);
5589
5594
  }
5590
- function calcRelativeBox(target, relative, parent) {
5591
- calcRelativeAxis(target.x, relative.x, parent.x);
5592
- calcRelativeAxis(target.y, relative.y, parent.y);
5595
+ function calcRelativeBox(target, relative, parent, anchor) {
5596
+ calcRelativeAxis(target.x, relative.x, parent.x, anchor?.x);
5597
+ calcRelativeAxis(target.y, relative.y, parent.y, anchor?.y);
5593
5598
  }
5594
- function calcRelativeAxisPosition(target, layout, parent) {
5595
- target.min = layout.min - parent.min;
5599
+ function calcRelativeAxisPosition(target, layout, parent, anchor = 0) {
5600
+ const anchorPoint = anchor ? mixNumber$1(parent.min, parent.max, anchor) : parent.min;
5601
+ target.min = layout.min - anchorPoint;
5596
5602
  target.max = target.min + calcLength(layout);
5597
5603
  }
5598
- function calcRelativePosition(target, layout, parent) {
5599
- calcRelativeAxisPosition(target.x, layout.x, parent.x);
5600
- calcRelativeAxisPosition(target.y, layout.y, parent.y);
5604
+ function calcRelativePosition(target, layout, parent, anchor) {
5605
+ calcRelativeAxisPosition(target.x, layout.x, parent.x, anchor?.x);
5606
+ calcRelativeAxisPosition(target.y, layout.y, parent.y, anchor?.y);
5601
5607
  }
5602
5608
  //#endregion
5603
5609
  //#region node_modules/motion-dom/dist/es/projection/geometry/delta-remove.mjs
@@ -6272,8 +6278,16 @@ function createProjectionNode$1({ attachResizeListener, defaultParent, measureSc
6272
6278
  update() {
6273
6279
  this.updateScheduled = false;
6274
6280
  if (this.isUpdateBlocked()) {
6281
+ const wasBlockedByResize = this.updateBlockedByResize;
6275
6282
  this.unblockUpdate();
6283
+ this.updateBlockedByResize = false;
6276
6284
  this.clearAllSnapshots();
6285
+ /**
6286
+ * When blocked by resize, still measure layouts so
6287
+ * callbacks like onLayoutMeasure fire (e.g. Reorder).
6288
+ * Skip notifyLayoutUpdate to prevent animations.
6289
+ */
6290
+ if (wasBlockedByResize) this.nodes.forEach(forceLayoutMeasure);
6277
6291
  this.nodes.forEach(clearMeasurements);
6278
6292
  return;
6279
6293
  }
@@ -6547,7 +6561,7 @@ function createProjectionNode$1({ attachResizeListener, defaultParent, measureSc
6547
6561
  * a relativeParent. This will allow a component to perform scale correction
6548
6562
  * even if no animation has started.
6549
6563
  */
6550
- if (!this.targetDelta && !this.relativeTarget) if (relativeParent && relativeParent.layout) this.createRelativeTarget(relativeParent, this.layout.layoutBox, relativeParent.layout.layoutBox);
6564
+ if (!this.targetDelta && !this.relativeTarget) if (this.options.layoutAnchor !== false && relativeParent && relativeParent.layout) this.createRelativeTarget(relativeParent, this.layout.layoutBox, relativeParent.layout.layoutBox);
6551
6565
  else this.removeRelativeTarget();
6552
6566
  /**
6553
6567
  * If we have no relative target or no target delta our target isn't valid
@@ -6566,7 +6580,7 @@ function createProjectionNode$1({ attachResizeListener, defaultParent, measureSc
6566
6580
  */
6567
6581
  if (this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target) {
6568
6582
  this.forceRelativeParentToResolveTarget();
6569
- calcRelativeBox(this.target, this.relativeTarget, this.relativeParent.target);
6583
+ calcRelativeBox(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0);
6570
6584
  } else if (this.targetDelta) {
6571
6585
  if (Boolean(this.resumingFrom)) this.applyTransform(this.layout.layoutBox, false, this.target);
6572
6586
  else copyBoxInto(this.target, this.layout.layoutBox);
@@ -6581,7 +6595,7 @@ function createProjectionNode$1({ attachResizeListener, defaultParent, measureSc
6581
6595
  */
6582
6596
  if (this.attemptToResolveRelativeTarget) {
6583
6597
  this.attemptToResolveRelativeTarget = false;
6584
- if (relativeParent && Boolean(relativeParent.resumingFrom) === Boolean(this.resumingFrom) && !relativeParent.options.layoutScroll && relativeParent.target && this.animationProgress !== 1) this.createRelativeTarget(relativeParent, this.target, relativeParent.target);
6598
+ if (this.options.layoutAnchor !== false && relativeParent && Boolean(relativeParent.resumingFrom) === Boolean(this.resumingFrom) && !relativeParent.options.layoutScroll && relativeParent.target && this.animationProgress !== 1) this.createRelativeTarget(relativeParent, this.target, relativeParent.target);
6585
6599
  else this.relativeParent = this.relativeTarget = void 0;
6586
6600
  }
6587
6601
  /**
@@ -6603,7 +6617,7 @@ function createProjectionNode$1({ attachResizeListener, defaultParent, measureSc
6603
6617
  this.forceRelativeParentToResolveTarget();
6604
6618
  this.relativeTarget = createBox();
6605
6619
  this.relativeTargetOrigin = createBox();
6606
- calcRelativePosition(this.relativeTargetOrigin, layout, parentLayout);
6620
+ calcRelativePosition(this.relativeTargetOrigin, layout, parentLayout, this.options.layoutAnchor || void 0);
6607
6621
  copyBoxInto(this.relativeTarget, this.relativeTargetOrigin);
6608
6622
  }
6609
6623
  removeRelativeTarget() {
@@ -6737,7 +6751,7 @@ function createProjectionNode$1({ attachResizeListener, defaultParent, measureSc
6737
6751
  mixAxisDelta(targetDelta.y, delta.y, progress);
6738
6752
  this.setTargetDelta(targetDelta);
6739
6753
  if (this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout) {
6740
- calcRelativePosition(relativeLayout, this.layout.layoutBox, this.relativeParent.layout.layoutBox);
6754
+ calcRelativePosition(relativeLayout, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0);
6741
6755
  mixBox(this.relativeTarget, this.relativeTargetOrigin, relativeLayout, progress);
6742
6756
  /**
6743
6757
  * If this is an unchanged relative target we can consider the
@@ -7038,10 +7052,11 @@ function notifyLayoutUpdate(node) {
7038
7052
  if (relativeParent && !relativeParent.resumeFrom) {
7039
7053
  const { snapshot: parentSnapshot, layout: parentLayout } = relativeParent;
7040
7054
  if (parentSnapshot && parentLayout) {
7055
+ const anchor = node.options.layoutAnchor || void 0;
7041
7056
  const relativeSnapshot = createBox();
7042
- calcRelativePosition(relativeSnapshot, snapshot.layoutBox, parentSnapshot.layoutBox);
7057
+ calcRelativePosition(relativeSnapshot, snapshot.layoutBox, parentSnapshot.layoutBox, anchor);
7043
7058
  const relativeLayout = createBox();
7044
- calcRelativePosition(relativeLayout, layout, parentLayout.layoutBox);
7059
+ calcRelativePosition(relativeLayout, layout, parentLayout.layoutBox, anchor);
7045
7060
  if (!boxEqualsRounded(relativeSnapshot, relativeLayout)) hasRelativeLayoutChanged = true;
7046
7061
  if (relativeParent.options.layoutRoot) {
7047
7062
  node.relativeTarget = relativeLayout;
@@ -7100,6 +7115,10 @@ function clearSnapshot(node) {
7100
7115
  function clearMeasurements(node) {
7101
7116
  node.clearMeasurements();
7102
7117
  }
7118
+ function forceLayoutMeasure(node) {
7119
+ node.isLayoutDirty = true;
7120
+ node.updateLayout();
7121
+ }
7103
7122
  function clearIsLayoutDirty(node) {
7104
7123
  node.isLayoutDirty = false;
7105
7124
  }
@@ -8163,7 +8182,7 @@ function useVisualElement(Component, visualState, props, createVisualElement, Pr
8163
8182
  return visualElement;
8164
8183
  }
8165
8184
  function createProjectionNode(visualElement, props, ProjectionNodeConstructor, initialPromotionConfig) {
8166
- const { layoutId, layout, drag, dragConstraints, layoutScroll, layoutRoot, layoutCrossfade } = props;
8185
+ const { layoutId, layout, drag, dragConstraints, layoutScroll, layoutRoot, layoutAnchor, layoutCrossfade } = props;
8167
8186
  visualElement.projection = new ProjectionNodeConstructor(visualElement.latestValues, props["data-framer-portal-id"] ? void 0 : getClosestProjectingNode(visualElement.parent));
8168
8187
  visualElement.projection.setOptions({
8169
8188
  layoutId,
@@ -8174,7 +8193,8 @@ function createProjectionNode(visualElement, props, ProjectionNodeConstructor, i
8174
8193
  initialPromotionConfig,
8175
8194
  crossfade: layoutCrossfade,
8176
8195
  layoutScroll,
8177
- layoutRoot
8196
+ layoutRoot,
8197
+ layoutAnchor
8178
8198
  });
8179
8199
  }
8180
8200
  function getClosestProjectingNode(visualElement) {
@@ -9371,8 +9391,10 @@ var MeasureLayoutWithContext = class extends Component {
9371
9391
  return null;
9372
9392
  }
9373
9393
  componentDidUpdate() {
9374
- const { projection } = this.props.visualElement;
9394
+ const { visualElement, layoutAnchor } = this.props;
9395
+ const { projection } = visualElement;
9375
9396
  if (projection) {
9397
+ projection.options.layoutAnchor = layoutAnchor;
9376
9398
  projection.root.didUpdate();
9377
9399
  microtask.postRender(() => {
9378
9400
  if (!projection.currentAnimation && projection.isLead()) this.safeToRemove();
@@ -20,7 +20,7 @@ import { t as $f39a9eba43920ace$export$86427a43e3e48ebb } from "./Hidden-8TB37dp
20
20
  import { t as $01b77f81d0f07f68$export$75b6ee27786ba447 } from "./Label-DFXXxMKY.js";
21
21
  import { n as $514c0188e459b4c0$export$9afb8bc826b033ea } from "./Text-O6VBBDlP.js";
22
22
  import { t as $d3e0e05bdfcf66bd$export$c24727297075ec6a } from "./Form-DTMkbrQY.js";
23
- import { t as __ } from "./build-module-sxK3nxOK.js";
23
+ import { t as __ } from "./build-module-Bsx62nlm.js";
24
24
  import { Icon } from "./icons/icon.js";
25
25
  import { check } from "./icons/ui-icons/check.js";
26
26
  import { clear } from "./icons/ui-icons/clear.js";
@@ -1027,9 +1027,9 @@ var getGroupedOptions = (filteredOptions, groupKey, groupValueMapping) => {
1027
1027
  return {
1028
1028
  key,
1029
1029
  label: mapping?.label ?? (key === "_other" ? __("Other", "eightshift-ui-components") : key),
1030
- icon: jsx(Icon, { icon: mapping?.icon }),
1030
+ icon: mapping?.icon && jsx(Icon, { icon: mapping?.icon }),
1031
1031
  subtitle: mapping?.subtitle || null,
1032
- endIcon: jsx(Icon, { icon: mapping?.endIcon }),
1032
+ endIcon: mapping?.endIcon && jsx(Icon, { icon: mapping?.endIcon }),
1033
1033
  options
1034
1034
  };
1035
1035
  });
@@ -1,7 +1,7 @@
1
1
  import { t as clsx } from "./clsx-BUU5J41u.js";
2
2
  import { t as DecorativeTooltip } from "./tooltip-BzJzYlcc.js";
3
3
  import { cyrb64Hash } from "./utilities/hash.js";
4
- import { t as __ } from "./build-module-sxK3nxOK.js";
4
+ import { t as __ } from "./build-module-Bsx62nlm.js";
5
5
  import { imageError } from "./icons/ui-icons/image-error.js";
6
6
  import { cloneElement, useEffect, useRef, useState } from "react";
7
7
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -14,11 +14,11 @@ import { a as $6f909507e6374d18$export$6189c2744041d8f8, c as $47b897dc8cdb026b$
14
14
  import { n as $5c3e21d68f1c4674$export$a966af930f325cab } from "./VisuallyHidden-CfsnJHZb.js";
15
15
  import { a as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, r as $e5be200c675c3b3a$export$a763b9476acd3eb, t as $ee014567cb39d3f0$export$ff05c3ac10437e03 } from "./FieldError-BWDbP5Db.js";
16
16
  import { i as $a049562f99e7db0e$export$f9c6924e160136d1, n as $3985021b0ad6602f$export$f5b8910cec6cf069, t as $3985021b0ad6602f$export$37fb8590cf2c088c } from "./Input-BURqyJXW.js";
17
- import { a as $3493a52097159720$exports, i as $799cddbef784668f$export$6e865ea70d7724f, r as $799cddbef784668f$export$4cde5df63f53f473, t as ColorSwatch } from "./color-swatch-CBYsO_Zs.js";
17
+ import { a as $3493a52097159720$exports, i as $799cddbef784668f$export$6e865ea70d7724f, r as $799cddbef784668f$export$4cde5df63f53f473, t as ColorSwatch } from "./color-swatch-D2ZBkuTt.js";
18
18
  import { t as $01b77f81d0f07f68$export$75b6ee27786ba447 } from "./Label-DFXXxMKY.js";
19
19
  import { n as $514c0188e459b4c0$export$9afb8bc826b033ea } from "./Text-O6VBBDlP.js";
20
20
  import { BaseControl } from "./components/base-control/base-control.js";
21
- import { t as __ } from "./build-module-sxK3nxOK.js";
21
+ import { t as __ } from "./build-module-Bsx62nlm.js";
22
22
  import { dropdownCaretAlt } from "./icons/ui-icons/dropdown-caret-alt.js";
23
23
  import { TriggeredPopover } from "./components/popover/popover.js";
24
24
  import React, { createContext, forwardRef, useCallback, useContext, useMemo, useRef, useState } from "react";
@@ -6,7 +6,7 @@ import { t as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-D
6
6
  import { t as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "./VisuallyHidden-CfsnJHZb.js";
7
7
  import { t as $d2c8e2b0480f3f34$export$cbe85ee05b554577 } from "./useToggle-ecIirvIM.js";
8
8
  import { t as $3017fa7ffdddec74$export$8042c6c013fd5226 } from "./useToggleState-IIDbiKPl.js";
9
- import { t as cva } from "./dist-DIK9pFxO.js";
9
+ import { t as cva } from "./dist-2gkv7_1U.js";
10
10
  import React, { createContext, forwardRef } from "react";
11
11
  import { jsx, jsxs } from "react/jsx-runtime";
12
12
  //#region node_modules/@react-aria/switch/dist/useSwitch.mjs
@@ -12,8 +12,8 @@ import { t as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-D
12
12
  import { t as $f39a9eba43920ace$export$86427a43e3e48ebb } from "./Hidden-8TB37dpK.js";
13
13
  import { n as $c8a5a149f625efcf$export$758399f318e6385a, t as $1d5b8b8664671ef2$export$c9549807523555e0 } from "./SelectionIndicator-31L6EI9F.js";
14
14
  import { RichLabel } from "./components/rich-label/rich-label.js";
15
- import { t as cva } from "./dist-DIK9pFxO.js";
16
- import { r as sprintf, t as __ } from "./build-module-sxK3nxOK.js";
15
+ import { t as cva } from "./dist-2gkv7_1U.js";
16
+ import { r as sprintf, t as __ } from "./build-module-Bsx62nlm.js";
17
17
  import { Notice } from "./components/notice/notice.js";
18
18
  import React, { cloneElement, createContext, forwardRef, isValidElement, useContext, useEffect, useId, useMemo, useRef, useState } from "react";
19
19
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -7,7 +7,7 @@ import { n as Tooltip } from "./tooltip-BzJzYlcc.js";
7
7
  import { t as $701a24aa0da5b062$export$ea18c227d4417cc3 } from "./useButton-ra1ZSZ4z.js";
8
8
  import { t as $3017fa7ffdddec74$export$8042c6c013fd5226 } from "./useToggleState-IIDbiKPl.js";
9
9
  import { t as $1d5b8b8664671ef2$export$c9549807523555e0 } from "./SelectionIndicator-31L6EI9F.js";
10
- import { t as cva } from "./dist-DIK9pFxO.js";
10
+ import { t as cva } from "./dist-2gkv7_1U.js";
11
11
  import React, { createContext, forwardRef, useContext } from "react";
12
12
  import { jsx, jsxs } from "react/jsx-runtime";
13
13
  //#region node_modules/@react-aria/button/dist/useToggleButton.mjs
@@ -1,2 +1,25 @@
1
- import { a as getFileExtension, i as checkTransparency, n as analyzeImageAsync, o as isColorDark, r as analyzeImageData, t as analyzeImage } from "../general-D-7dwhuF.js";
2
- export { analyzeImage, analyzeImageAsync, analyzeImageData, checkTransparency, getFileExtension, isColorDark };
1
+ //#region lib/utilities/general.js
2
+ /**
3
+ * Get file extension from a URL string.
4
+ * getFileExtension('https://example.com/image.png'); // 'png'
5
+ * getFileExtension('https://example.com/archive.tar.gz'); // 'gz'
6
+ * getFileExtension('https://example.com/no-extension'); // null
7
+ */
8
+ var getFileExtension = (input) => {
9
+ const match = new URL(input).pathname.match(/\.([a-zA-Z0-9]+)(?:\?|#|$)/);
10
+ return match ? match[1].toLowerCase() : null;
11
+ };
12
+ /**
13
+ * Determine if a color is considered "dark" based on its RGB values and a lightness threshold.
14
+ * @param {number} g - Green component (0-255).
15
+ * @param {number} b - Blue component (0-255).
16
+ * @param {number} [threshold=0.5] - Lightness threshold (0.0 - 1.0) below which the color is considered dark.
17
+ * isColorDark(0, 0, 0); // true (black)
18
+ * isColorDark(255, 255, 255); // false (white)
19
+ * isColorDark(100, 100, 100, 0.4); // false (gray with higher threshold)
20
+ */
21
+ var isColorDark = (r, g, b, threshold = .5) => {
22
+ return (.299 * r + .587 * g + .114 * b) / 255 < threshold;
23
+ };
24
+ //#endregion
25
+ export { getFileExtension, isColorDark };
@@ -3,7 +3,7 @@ import { arrayMoveMultiple, fixIds } from "./array-helpers.js";
3
3
  import { a as isObject, c as kebabCase, d as snakeCase, f as upperFirst, i as isEqual, l as lowerFirst, n as has, o as isPlainObject, r as isEmpty, s as isString, t as camelCase, u as pascalCase } from "../es-dash-HqXWZZ3_.js";
4
4
  import { truncate, truncateEnd, truncateMiddle, unescapeHTML } from "./text-helpers.js";
5
5
  import { n as throttle, t as debounce } from "../debounce-throttle-DXxSAKpq.js";
6
- import { a as getFileExtension, i as checkTransparency, n as analyzeImageAsync, o as isColorDark, r as analyzeImageData, t as analyzeImage } from "../general-D-7dwhuF.js";
6
+ import { getFileExtension, isColorDark } from "./general.js";
7
+ import { t as clsx } from "../utilities-lwX686oD.js";
7
8
  import { cyrb64Hash, randomId, simpleHash } from "./hash.js";
8
- import { t as clsx } from "../utilities-CPFDXC3B.js";
9
- export { analyzeImage, analyzeImageAsync, analyzeImageData, arrayMoveMultiple, camelCase, checkTransparency, clsx, clsx$1 as clsxFull, cyrb64Hash, debounce, fixIds, getFileExtension, has, isColorDark, isEmpty, isEqual, isObject, isPlainObject, isString, kebabCase, lowerFirst, pascalCase, randomId, simpleHash, snakeCase, throttle, truncate, truncateEnd, truncateMiddle, unescapeHTML, upperFirst };
9
+ export { arrayMoveMultiple, camelCase, clsx, clsx$1 as clsxFull, cyrb64Hash, debounce, fixIds, getFileExtension, has, isColorDark, isEmpty, isEqual, isObject, isPlainObject, isString, kebabCase, lowerFirst, pascalCase, randomId, simpleHash, snakeCase, throttle, truncate, truncateEnd, truncateMiddle, unescapeHTML, upperFirst };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eightshift/ui-components",
3
- "version": "7.0.0",
3
+ "version": "7.2.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -67,20 +67,17 @@
67
67
  "@eslint/compat": "^2.0.3",
68
68
  "@react-stately/collections": "^3.12.10",
69
69
  "@stylistic/eslint-plugin": "^5.10.0",
70
- "@tailwindcss/vite": "^4.2.1",
71
- "@thi.ng/color": "^5.8.16",
72
- "@thi.ng/pixel": "^7.5.25",
73
- "@thi.ng/pixel-analysis": "^2.0.31",
74
- "@thi.ng/pixel-dominant-colors": "^2.0.34",
70
+ "@tailwindcss/vite": "^4.2.2",
71
+ "@thi.ng/color": "^5.8.18",
75
72
  "@types/react": "^18.3.28",
76
73
  "@types/react-dom": "^18.3.7",
77
- "@vitejs/plugin-react": "^5.2.0",
78
- "@wordpress/i18n": "^6.14.0",
74
+ "@vitejs/plugin-react": "^6.0.1",
75
+ "@wordpress/i18n": "^6.15.0",
79
76
  "autoprefixer": "^10.4.27",
80
77
  "class-variance-authority": "^0.7.1",
81
78
  "clsx": "^2.1.1",
82
79
  "css-gradient-parser": "^0.0.18",
83
- "eslint": "^10.0.3",
80
+ "eslint": "^10.1.0",
84
81
  "eslint-config-prettier": "^10.1.8",
85
82
  "eslint-plugin-jsdoc": "^62.8.0",
86
83
  "eslint-plugin-prettier": "^5.5.5",
@@ -104,16 +101,16 @@
104
101
  "react-movable": "^3.4.1",
105
102
  "react-stately": "^3.45.0",
106
103
  "svg-to-jsx-string": "^0.1.1",
107
- "tailwindcss": "^4.2.1",
104
+ "tailwindcss": "^4.2.2",
108
105
  "tailwindcss-motion": "^1.1.1",
109
106
  "tailwindcss-react-aria-components": "^2.0.1",
110
- "vite": "^8.0.0",
107
+ "vite": "^8.0.2",
111
108
  "vite-plugin-lib-inject-css": "^2.2.2"
112
109
  },
113
110
  "dependencies": {
114
- "@fontsource-variable/geist": "^5.2.8",
115
- "@fontsource-variable/geist-mono": "^5.2.7",
116
111
  "@fontsource-variable/google-sans-flex": "^5.2.1",
112
+ "@fontsource/geist": "^5.2.8",
113
+ "@fontsource/geist-mono": "^5.2.7",
117
114
  "eslint-plugin-react": "^7.37.5",
118
115
  "eslint-plugin-react-hooks": "^7.0.1",
119
116
  "motion": "^12.38.0"