@eightshift/ui-components 7.1.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.
- package/dist/assets/fonts/geist-latin-400-normal.woff2 +0 -0
- package/dist/assets/fonts/geist-latin-500-normal.woff2 +0 -0
- package/dist/assets/fonts/geist-latin-700-normal.woff2 +0 -0
- package/dist/assets/fonts/geist-latin-ext-400-normal.woff2 +0 -0
- package/dist/assets/fonts/geist-latin-ext-500-normal.woff2 +0 -0
- package/dist/assets/fonts/geist-latin-ext-700-normal.woff2 +0 -0
- package/dist/assets/fonts/geist-mono-latin-400-normal.woff2 +0 -0
- package/dist/assets/fonts/geist-mono-latin-500-normal.woff2 +0 -0
- package/dist/assets/fonts/geist-mono-latin-700-normal.woff2 +0 -0
- package/dist/assets/fonts/geist-mono-latin-ext-400-normal.woff2 +0 -0
- package/dist/assets/fonts/geist-mono-latin-ext-500-normal.woff2 +0 -0
- package/dist/assets/fonts/geist-mono-latin-ext-700-normal.woff2 +0 -0
- package/dist/assets/fonts/google-sans-flex-latin-ext-full-normal.woff2 +0 -0
- package/dist/assets/fonts/google-sans-flex-latin-full-normal.woff2 +0 -0
- package/dist/assets/fonts/google-sans-flex-symbols-full-normal.woff2 +0 -0
- package/dist/assets/style-admin.css +3 -12528
- package/dist/assets/style-editor.css +3 -12492
- package/dist/assets/style.css +3 -12498
- package/dist/assets/wp-overrides/allow-full-width-blocks.css +1 -5
- package/dist/assets/wp-overrides/fix-label-text-case.css +1 -28
- package/dist/assets/wp-overrides/increase-sidebar-width.css +1 -3
- package/dist/assets/wp-overrides/make-block-messages-nicer.css +1 -154
- package/dist/assets/wp-overrides/replace-fonts.css +1 -7
- package/dist/assets/wp-overrides/restyle-tooltips.css +1 -193
- package/dist/assets/wp-overrides/round-corners.css +1 -199
- package/dist/assets/wp-overrides/unify-button-sizes.css +1 -4
- package/dist/{button-COTeluL8.js → button-D9cbyHeZ.js} +2 -2
- package/dist/{checkbox-D0AWkLhp.js → checkbox-BO5RZmO8.js} +1 -1
- package/dist/{color-swatch-CBYsO_Zs.js → color-swatch-D2ZBkuTt.js} +1 -1
- package/dist/components/base-control/container.js +1 -1
- package/dist/components/button/button.js +1 -2
- package/dist/components/checkbox/checkbox.js +1 -1
- package/dist/components/color-pickers/color-picker.js +2 -2
- package/dist/components/color-pickers/color-swatch.js +1 -2
- package/dist/components/color-pickers/gradient-editor.js +1 -3
- package/dist/components/color-pickers/solid-color-picker.js +1 -2
- package/dist/components/component-toggle/component-toggle.js +4 -4
- package/dist/components/container-panel/container-panel.js +2 -3
- package/dist/components/draggable/draggable-handle.js +1 -1
- package/dist/components/draggable/draggable.js +1 -2
- package/dist/components/draggable-list/draggable-list-item.js +1 -1
- package/dist/components/draggable-list/draggable-list.js +2 -2
- package/dist/components/expandable/expandable.js +2 -2
- package/dist/components/index.js +14 -16
- package/dist/components/input-field/input-field.js +1 -1
- package/dist/components/item-collection/item-collection.js +1 -1
- package/dist/components/link-input/link-input.js +1 -2
- package/dist/components/matrix-align/matrix-align.js +1 -1
- package/dist/components/menu/menu.js +2 -2
- package/dist/components/modal/modal.js +1 -2
- package/dist/components/number-picker/number-picker.js +1 -2
- package/dist/components/option-select/option-select.js +3 -3
- package/dist/components/placeholders/file-picker-shell.js +1 -2
- package/dist/components/placeholders/file-placeholder.js +1 -1
- package/dist/components/popover/popover.js +2 -2
- package/dist/components/radio/radio.js +1 -1
- package/dist/components/repeater/repeater-item.js +2 -2
- package/dist/components/repeater/repeater.js +3 -3
- package/dist/components/responsive/mini-responsive.js +2 -2
- package/dist/components/responsive/responsive-legacy.js +3 -3
- package/dist/components/responsive/responsive.js +3 -3
- package/dist/components/responsive-preview/responsive-preview.js +1 -1
- package/dist/components/select/async-multi-select.js +2 -2
- package/dist/components/select/async-select.js +2 -2
- package/dist/components/select/multi-select.js +2 -2
- package/dist/components/select/shared.js +1 -2
- package/dist/components/select/single-select.js +2 -2
- package/dist/components/select/styles.js +1 -1
- package/dist/components/slider/column-config-slider.js +1 -1
- package/dist/components/slider/slider.js +1 -2
- package/dist/components/slider/utils.js +1 -1
- package/dist/components/smart-image/smart-image.js +1 -2
- package/dist/components/tabs/tabs.js +1 -2
- package/dist/components/toggle/switch.js +1 -1
- package/dist/components/toggle/toggle.js +1 -1
- package/dist/components/toggle-button/toggle-button.js +1 -1
- package/dist/{draggable-CYQyD9gG.js → draggable-CTDVJ4zd.js} +1 -1
- package/dist/gradient-editor-xfxA_s9a.js +1583 -0
- package/dist/icons/index.js +1 -1
- package/dist/icons/jsx-svg.js +1 -1
- package/dist/index.js +14 -16
- package/dist/{input-field-UCZL5bqv.js → input-field-_OCWbftf.js} +1 -1
- package/dist/{link-input-D7iDRpOM.js → link-input-Bh8G7Urm.js} +2 -2
- package/dist/{modal-DbVLYMkH.js → modal-snrElwty.js} +2 -2
- package/dist/{number-picker-CkA1iJNZ.js → number-picker-Dhtx4409.js} +3 -2
- package/dist/{shared-D_OXizRt.js → shared-BiWZjrGF.js} +1 -1
- package/dist/{smart-image-CbSsEASF.js → smart-image-CBNbxJ57.js} +1 -1
- package/dist/{solid-color-picker-DbT-aoVx.js → solid-color-picker-DukArNH-.js} +2 -2
- package/dist/{switch-L8dFSQWQ.js → switch-DmsvyQPa.js} +1 -1
- package/dist/{tabs-BrdyBER5.js → tabs-DaIUEc0g.js} +2 -2
- package/dist/{toggle-button-DJ8jNQ-9.js → toggle-button-BlzUGfGy.js} +1 -1
- package/dist/utilities/general.js +25 -2
- package/dist/utilities/index.js +3 -3
- package/package.json +4 -7
- package/dist/general-BKOvs-AO.js +0 -4276
- package/dist/gradient-editor-BAd_Gzx4.js +0 -604
- package/dist/workers/image-analysis.worker.js +0 -60
- /package/dist/{List-CMK5qsNF.js → List-DWlgW2Ex.js} +0 -0
- /package/dist/{build-module-sxK3nxOK.js → build-module-Bsx62nlm.js} +0 -0
- /package/dist/{dist-DIK9pFxO.js → dist-2gkv7_1U.js} +0 -0
- /package/dist/{jsx-svg-OBADs_Qs.js → jsx-svg-BRJ4n3pD.js} +0 -0
- /package/dist/{utilities-CPFDXC3B.js → utilities-lwX686oD.js} +0 -0
package/dist/icons/index.js
CHANGED
|
@@ -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-
|
|
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 };
|
package/dist/icons/jsx-svg.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as JsxSvg } from "../jsx-svg-
|
|
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-DjkEpeDL.js";
|
|
2
1
|
import { AnimatedVisibility } from "./components/animated-visibility/animated-visibility.js";
|
|
3
|
-
import { t as LinkInput } from "./link-input-
|
|
4
|
-
import { t as Modal } from "./modal-
|
|
5
|
-
import { i as Tabs, n as TabList, r as TabPanel, t as Tab } from "./tabs-
|
|
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-
|
|
8
|
-
import { n as ButtonGroup, t as Button } from "./button-
|
|
9
|
-
import { t as Checkbox } from "./checkbox-
|
|
10
|
-
import { t as ColorSwatch } from "./color-swatch-
|
|
11
|
-
import { t as SolidColorPicker } from "./solid-color-picker-
|
|
12
|
-
import { t as Switch } from "./switch-
|
|
13
|
-
import { t as NumberPicker } from "./number-picker-
|
|
14
|
-
import { t as InputField } from "./input-field-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
28
|
-
import { t as __ } from "./build-module-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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";
|
|
@@ -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-
|
|
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";
|
|
@@ -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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
16
|
-
import { r as sprintf, t as __ } from "./build-module-
|
|
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-
|
|
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
|
-
|
|
2
|
-
|
|
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 };
|
package/dist/utilities/index.js
CHANGED
|
@@ -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 {
|
|
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
|
-
|
|
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.
|
|
3
|
+
"version": "7.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -69,9 +69,6 @@
|
|
|
69
69
|
"@stylistic/eslint-plugin": "^5.10.0",
|
|
70
70
|
"@tailwindcss/vite": "^4.2.2",
|
|
71
71
|
"@thi.ng/color": "^5.8.18",
|
|
72
|
-
"@thi.ng/pixel": "^7.5.26",
|
|
73
|
-
"@thi.ng/pixel-analysis": "^2.0.33",
|
|
74
|
-
"@thi.ng/pixel-dominant-colors": "^2.0.36",
|
|
75
72
|
"@types/react": "^18.3.28",
|
|
76
73
|
"@types/react-dom": "^18.3.7",
|
|
77
74
|
"@vitejs/plugin-react": "^6.0.1",
|
|
@@ -107,13 +104,13 @@
|
|
|
107
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.
|
|
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"
|