@eightshift/ui-components 3.0.1 → 5.0.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/package.json +101 -101
- package/dist/Button-BPLceDeW.js +0 -185
- package/dist/Collection-CZxddMZS.js +0 -2332
- package/dist/Color-MV5kBVXr.js +0 -2452
- package/dist/ColorSwatch-BqQfVu4L.js +0 -64
- package/dist/ComboBox-_RfyhwZw.js +0 -1906
- package/dist/Dialog-8tYeQ9n4.js +0 -2300
- package/dist/FieldError-52GVSGgC.js +0 -42
- package/dist/FocusScope-Cri5BFRz.js +0 -831
- package/dist/Form-Cq3fu75_.js +0 -5
- package/dist/Group-_emcIVxI.js +0 -48
- package/dist/Heading-B2153VXe.js +0 -16
- package/dist/Hidden-rE6uR-lr.js +0 -41
- package/dist/Input-BxpFEIXV.js +0 -133
- package/dist/Label-icmbmNdI.js +0 -17
- package/dist/List-CZMUbkFU.js +0 -593
- package/dist/ListBox-Ca6hiCqz.js +0 -581
- package/dist/NumberFormatter-DA8u1Ot7.js +0 -140
- package/dist/OverlayArrow-CYXQSlEU.js +0 -629
- package/dist/RSPContexts-2lR5GG9p.js +0 -14
- package/dist/Select-aab027f3.esm-PDJCDE95.js +0 -2469
- package/dist/Separator-4IIDRlV_.js +0 -322
- package/dist/Slider-rz2XRMGm.js +0 -853
- package/dist/Text-DVSAPY-K.js +0 -16
- package/dist/VisuallyHidden-f9zX67a_.js +0 -48
- package/dist/_commonjsHelpers-CUmg6egw.js +0 -6
- package/dist/assets/index.css +0 -37
- package/dist/assets/style-admin.css +0 -5255
- package/dist/assets/style-editor.css +0 -5255
- package/dist/assets/style.css +0 -5261
- package/dist/assets/wp-font-enhancements.css +0 -8
- package/dist/assets/wp-ui-enhancements.css +0 -299
- package/dist/components/animated-visibility/animated-visibility.js +0 -105
- package/dist/components/base-control/base-control.js +0 -86
- package/dist/components/breakpoint-preview/breakpoint-preview.js +0 -161
- package/dist/components/button/button.js +0 -387
- package/dist/components/checkbox/checkbox.js +0 -320
- package/dist/components/color-pickers/color-picker.js +0 -272
- package/dist/components/color-pickers/color-swatch.js +0 -58
- package/dist/components/color-pickers/gradient-editor.js +0 -534
- package/dist/components/color-pickers/solid-color-picker.js +0 -1567
- package/dist/components/component-toggle/component-toggle.js +0 -158
- package/dist/components/container-panel/container-panel.js +0 -131
- package/dist/components/draggable/draggable-context.js +0 -5
- package/dist/components/draggable/draggable-handle.js +0 -46
- package/dist/components/draggable/draggable.js +0 -6207
- package/dist/components/draggable-list/draggable-list-context.js +0 -5
- package/dist/components/draggable-list/draggable-list-item.js +0 -77
- package/dist/components/draggable-list/draggable-list.js +0 -151
- package/dist/components/expandable/expandable.js +0 -342
- package/dist/components/index.js +0 -137
- package/dist/components/input-field/input-field.js +0 -231
- package/dist/components/item-collection/item-collection.js +0 -59
- package/dist/components/layout/hstack.js +0 -30
- package/dist/components/layout/vstack.js +0 -30
- package/dist/components/link-input/link-input.js +0 -293
- package/dist/components/matrix-align/matrix-align.js +0 -134
- package/dist/components/menu/menu.js +0 -285
- package/dist/components/modal/modal.js +0 -305
- package/dist/components/notice/notice.js +0 -123
- package/dist/components/number-picker/number-picker.js +0 -292
- package/dist/components/option-select/option-select.js +0 -264
- package/dist/components/options-panel/options-panel.js +0 -158
- package/dist/components/placeholders/file-placeholder.js +0 -42
- package/dist/components/placeholders/image-placeholder.js +0 -88
- package/dist/components/placeholders/media-placeholder.js +0 -63
- package/dist/components/popover/popover.js +0 -207
- package/dist/components/radio/radio.js +0 -579
- package/dist/components/repeater/repeater-context.js +0 -5
- package/dist/components/repeater/repeater-item.js +0 -119
- package/dist/components/repeater/repeater.js +0 -280
- package/dist/components/responsive/mini-responsive.js +0 -498
- package/dist/components/responsive/responsive-legacy.js +0 -343
- package/dist/components/responsive/responsive.js +0 -580
- package/dist/components/responsive-preview/responsive-preview.js +0 -123
- package/dist/components/rich-label/rich-label.js +0 -66
- package/dist/components/select/async-multi-select.js +0 -157
- package/dist/components/select/async-single-select.js +0 -137
- package/dist/components/select/custom-select-default-components.js +0 -38
- package/dist/components/select/multi-select-components.js +0 -8
- package/dist/components/select/multi-select.js +0 -151
- package/dist/components/select/react-select-component-wrappers.js +0 -90
- package/dist/components/select/shared.js +0 -26
- package/dist/components/select/single-select.js +0 -131
- package/dist/components/select/styles.js +0 -49
- package/dist/components/select/v2/async-select.js +0 -297
- package/dist/components/select/v2/shared.js +0 -24
- package/dist/components/select/v2/single-select.js +0 -990
- package/dist/components/slider/column-config-slider.js +0 -210
- package/dist/components/slider/slider.js +0 -343
- package/dist/components/slider/utils.js +0 -84
- package/dist/components/spacer/spacer.js +0 -97
- package/dist/components/tabs/tabs.js +0 -702
- package/dist/components/toggle/switch.js +0 -155
- package/dist/components/toggle/toggle.js +0 -64
- package/dist/components/toggle-button/toggle-button.js +0 -324
- package/dist/components/tooltip/tooltip.js +0 -525
- package/dist/context-D2KUdwNL.js +0 -92
- package/dist/default-i18n-CT_oS1Fy.js +0 -922
- package/dist/filterDOMProps-EDDcM64A.js +0 -28
- package/dist/icons/block-icon.js +0 -42
- package/dist/icons/generic-color-swatch.js +0 -113
- package/dist/icons/icons.js +0 -30371
- package/dist/icons/index.js +0 -11
- package/dist/icons/jsx-svg.js +0 -50
- package/dist/index-641ee5b8.esm-DIuJijyT.js +0 -3137
- package/dist/index-BKGQ6jGS.js +0 -44
- package/dist/index-CFozsmNS.js +0 -28321
- package/dist/index.js +0 -139
- package/dist/lite-DVmmD_-j.js +0 -7
- package/dist/modifiers.esm-BuJQPI1X.js +0 -31
- package/dist/multi-select-components-Sp-JEFEX.js +0 -3744
- package/dist/number-GajL10e1.js +0 -36
- package/dist/react-jsx-parser.min-DZCiis5V.js +0 -11753
- package/dist/react-select-async.esm-Bql4G5iV.js +0 -107
- package/dist/react-select.esm-B_TudhTU.js +0 -15
- package/dist/style-admin.js +0 -1
- package/dist/style-editor.js +0 -1
- package/dist/style.js +0 -1
- package/dist/textSelection-0UUS8Yfg.js +0 -46
- package/dist/useButton-Cg474OYB.js +0 -71
- package/dist/useEvent-B0b-6KBr.js +0 -23
- package/dist/useFocusRing-CV5l3lf6.js +0 -107
- package/dist/useFormReset-C5OggHsw.js +0 -22
- package/dist/useFormValidation-DhDNSjws.js +0 -224
- package/dist/useHover-DwDr6ozG.js +0 -900
- package/dist/useLabel-D7HkNEHT.js +0 -27
- package/dist/useLabels-D8cxd1Z8.js +0 -23
- package/dist/useListState-DVr6aYd_.js +0 -161
- package/dist/useLocalizedStringFormatter-CFP1YZWQ.js +0 -121
- package/dist/useNumberField-TwM0Z9D1.js +0 -1204
- package/dist/useNumberFormatter-321rAb4J.js +0 -13
- package/dist/usePress-Cucx-xSA.js +0 -664
- package/dist/useSingleSelectListState-CMGsRHHh.js +0 -38
- package/dist/useToggle-C0I3vs0g.js +0 -59
- package/dist/useToggleState-CmQX3SoX.js +0 -19
- package/dist/utilities/array-helpers.js +0 -56
- package/dist/utilities/debounce-throttle.js +0 -123
- package/dist/utilities/es-dash.js +0 -376
- package/dist/utilities/index.js +0 -27
- package/dist/utilities/text-helpers.js +0 -136
- package/dist/utils-DkCSC521.js +0 -370
- package/dist/wp/wp-font-enhancements.js +0 -1
- package/dist/wp/wp-ui-enhancements.js +0 -1
package/dist/index.js
DELETED
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
import { AnimatedVisibility } from "./components/animated-visibility/animated-visibility.js";
|
|
2
|
-
import { BaseControl } from "./components/base-control/base-control.js";
|
|
3
|
-
import { BreakpointPreview } from "./components/breakpoint-preview/breakpoint-preview.js";
|
|
4
|
-
import { Button, ButtonGroup } from "./components/button/button.js";
|
|
5
|
-
import { Checkbox } from "./components/checkbox/checkbox.js";
|
|
6
|
-
import { ComponentToggle } from "./components/component-toggle/component-toggle.js";
|
|
7
|
-
import { ContainerPanel } from "./components/container-panel/container-panel.js";
|
|
8
|
-
import { ColorSwatch } from "./components/color-pickers/color-swatch.js";
|
|
9
|
-
import { ColorPicker } from "./components/color-pickers/color-picker.js";
|
|
10
|
-
import { ColumnConfigSlider, ColumnConfigSliderOutput } from "./components/slider/column-config-slider.js";
|
|
11
|
-
import { DraggableList } from "./components/draggable-list/draggable-list.js";
|
|
12
|
-
import { DraggableListItem, DraggableListItemHandle } from "./components/draggable-list/draggable-list-item.js";
|
|
13
|
-
import { DraggableContext } from "./components/draggable/draggable-context.js";
|
|
14
|
-
import { Draggable } from "./components/draggable/draggable.js";
|
|
15
|
-
import { DraggableHandle } from "./components/draggable/draggable-handle.js";
|
|
16
|
-
import { Expandable } from "./components/expandable/expandable.js";
|
|
17
|
-
import { FilePlaceholder } from "./components/placeholders/file-placeholder.js";
|
|
18
|
-
import { GradientEditor } from "./components/color-pickers/gradient-editor.js";
|
|
19
|
-
import { HStack } from "./components/layout/hstack.js";
|
|
20
|
-
import { RichLabel } from "./components/rich-label/rich-label.js";
|
|
21
|
-
import { InputField } from "./components/input-field/input-field.js";
|
|
22
|
-
import { ImagePlaceholder } from "./components/placeholders/image-placeholder.js";
|
|
23
|
-
import { ItemCollection } from "./components/item-collection/item-collection.js";
|
|
24
|
-
import { LinkInput } from "./components/link-input/link-input.js";
|
|
25
|
-
import { MatrixAlign } from "./components/matrix-align/matrix-align.js";
|
|
26
|
-
import { MediaPlaceholder } from "./components/placeholders/media-placeholder.js";
|
|
27
|
-
import { Menu, MenuItem, MenuSection, MenuSeparator, SubMenuItem } from "./components/menu/menu.js";
|
|
28
|
-
import { MiniResponsive } from "./components/responsive/mini-responsive.js";
|
|
29
|
-
import { Notice } from "./components/notice/notice.js";
|
|
30
|
-
import { NumberPicker } from "./components/number-picker/number-picker.js";
|
|
31
|
-
import { Popover, TriggeredPopover } from "./components/popover/popover.js";
|
|
32
|
-
import { RadioButton, RadioButtonGroup } from "./components/radio/radio.js";
|
|
33
|
-
import { Repeater } from "./components/repeater/repeater.js";
|
|
34
|
-
import { RepeaterItem } from "./components/repeater/repeater-item.js";
|
|
35
|
-
import { Responsive } from "./components/responsive/responsive.js";
|
|
36
|
-
import { ResponsiveLegacy } from "./components/responsive/responsive-legacy.js";
|
|
37
|
-
import { ResponsivePreview } from "./components/responsive-preview/responsive-preview.js";
|
|
38
|
-
import { AsyncMultiSelect } from "./components/select/async-multi-select.js";
|
|
39
|
-
import { AsyncSelect } from "./components/select/async-single-select.js";
|
|
40
|
-
import { __ExperimentalAsyncSelect } from "./components/select/v2/async-select.js";
|
|
41
|
-
import { __ExperimentalSelect } from "./components/select/v2/single-select.js";
|
|
42
|
-
import { Modal } from "./components/modal/modal.js";
|
|
43
|
-
import { MultiSelect } from "./components/select/multi-select.js";
|
|
44
|
-
import { RSClearIndicator, RSDropdownIndicator, RSMultiValue, RSMultiValueContainer, RSMultiValueLabel, RSMultiValueRemove, RSOption, RSSingleValue } from "./components/select/react-select-component-wrappers.js";
|
|
45
|
-
import { OptionSelect } from "./components/option-select/option-select.js";
|
|
46
|
-
import { OptionsPanel, OptionsPanelHeader, OptionsPanelIntro, OptionsPanelSection } from "./components/options-panel/options-panel.js";
|
|
47
|
-
import { Select } from "./components/select/single-select.js";
|
|
48
|
-
import { Slider } from "./components/slider/slider.js";
|
|
49
|
-
import { SolidColorPicker } from "./components/color-pickers/solid-color-picker.js";
|
|
50
|
-
import { Spacer } from "./components/spacer/spacer.js";
|
|
51
|
-
import { Tab, TabList, TabPanel, Tabs } from "./components/tabs/tabs.js";
|
|
52
|
-
import { Toggle } from "./components/toggle/toggle.js";
|
|
53
|
-
import { Switch } from "./components/toggle/switch.js";
|
|
54
|
-
import { ToggleButton } from "./components/toggle-button/toggle-button.js";
|
|
55
|
-
import { DecorativeTooltip, Tooltip } from "./components/tooltip/tooltip.js";
|
|
56
|
-
import { VStack } from "./components/layout/vstack.js";
|
|
57
|
-
import { getColumnConfigOutputText } from "./components/slider/utils.js";
|
|
58
|
-
export {
|
|
59
|
-
AnimatedVisibility,
|
|
60
|
-
AsyncMultiSelect,
|
|
61
|
-
AsyncSelect,
|
|
62
|
-
BaseControl,
|
|
63
|
-
BreakpointPreview,
|
|
64
|
-
Button,
|
|
65
|
-
ButtonGroup,
|
|
66
|
-
Checkbox,
|
|
67
|
-
ColorPicker,
|
|
68
|
-
ColorSwatch,
|
|
69
|
-
ColumnConfigSlider,
|
|
70
|
-
ColumnConfigSliderOutput,
|
|
71
|
-
ComponentToggle,
|
|
72
|
-
ContainerPanel,
|
|
73
|
-
DecorativeTooltip,
|
|
74
|
-
Draggable,
|
|
75
|
-
DraggableContext,
|
|
76
|
-
DraggableHandle,
|
|
77
|
-
DraggableList,
|
|
78
|
-
DraggableListItem,
|
|
79
|
-
DraggableListItemHandle,
|
|
80
|
-
Expandable,
|
|
81
|
-
FilePlaceholder,
|
|
82
|
-
GradientEditor,
|
|
83
|
-
HStack,
|
|
84
|
-
ImagePlaceholder,
|
|
85
|
-
InputField,
|
|
86
|
-
ItemCollection,
|
|
87
|
-
LinkInput,
|
|
88
|
-
MatrixAlign,
|
|
89
|
-
MediaPlaceholder,
|
|
90
|
-
Menu,
|
|
91
|
-
MenuItem,
|
|
92
|
-
MenuSection,
|
|
93
|
-
MenuSeparator,
|
|
94
|
-
MiniResponsive,
|
|
95
|
-
Modal,
|
|
96
|
-
MultiSelect,
|
|
97
|
-
Notice,
|
|
98
|
-
NumberPicker,
|
|
99
|
-
OptionSelect,
|
|
100
|
-
OptionsPanel,
|
|
101
|
-
OptionsPanelHeader,
|
|
102
|
-
OptionsPanelIntro,
|
|
103
|
-
OptionsPanelSection,
|
|
104
|
-
Popover,
|
|
105
|
-
RSClearIndicator,
|
|
106
|
-
RSDropdownIndicator,
|
|
107
|
-
RSMultiValue,
|
|
108
|
-
RSMultiValueContainer,
|
|
109
|
-
RSMultiValueLabel,
|
|
110
|
-
RSMultiValueRemove,
|
|
111
|
-
RSOption,
|
|
112
|
-
RSSingleValue,
|
|
113
|
-
RadioButton,
|
|
114
|
-
RadioButtonGroup,
|
|
115
|
-
Repeater,
|
|
116
|
-
RepeaterItem,
|
|
117
|
-
Responsive,
|
|
118
|
-
ResponsiveLegacy,
|
|
119
|
-
ResponsivePreview,
|
|
120
|
-
RichLabel,
|
|
121
|
-
Select,
|
|
122
|
-
Slider,
|
|
123
|
-
SolidColorPicker,
|
|
124
|
-
Spacer,
|
|
125
|
-
SubMenuItem,
|
|
126
|
-
Switch,
|
|
127
|
-
Tab,
|
|
128
|
-
TabList,
|
|
129
|
-
TabPanel,
|
|
130
|
-
Tabs,
|
|
131
|
-
Toggle,
|
|
132
|
-
ToggleButton,
|
|
133
|
-
Tooltip,
|
|
134
|
-
TriggeredPopover,
|
|
135
|
-
VStack,
|
|
136
|
-
__ExperimentalAsyncSelect,
|
|
137
|
-
__ExperimentalSelect,
|
|
138
|
-
getColumnConfigOutputText
|
|
139
|
-
};
|
package/dist/lite-DVmmD_-j.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import "react";
|
|
2
|
-
function restrictToBoundingRect(transform, rect, boundingRect) {
|
|
3
|
-
const value = {
|
|
4
|
-
...transform
|
|
5
|
-
};
|
|
6
|
-
if (rect.top + transform.y <= boundingRect.top) {
|
|
7
|
-
value.y = boundingRect.top - rect.top;
|
|
8
|
-
} else if (rect.bottom + transform.y >= boundingRect.top + boundingRect.height) {
|
|
9
|
-
value.y = boundingRect.top + boundingRect.height - rect.bottom;
|
|
10
|
-
}
|
|
11
|
-
if (rect.left + transform.x <= boundingRect.left) {
|
|
12
|
-
value.x = boundingRect.left - rect.left;
|
|
13
|
-
} else if (rect.right + transform.x >= boundingRect.left + boundingRect.width) {
|
|
14
|
-
value.x = boundingRect.left + boundingRect.width - rect.right;
|
|
15
|
-
}
|
|
16
|
-
return value;
|
|
17
|
-
}
|
|
18
|
-
const restrictToParentElement = (_ref) => {
|
|
19
|
-
let {
|
|
20
|
-
containerNodeRect,
|
|
21
|
-
draggingNodeRect,
|
|
22
|
-
transform
|
|
23
|
-
} = _ref;
|
|
24
|
-
if (!draggingNodeRect || !containerNodeRect) {
|
|
25
|
-
return transform;
|
|
26
|
-
}
|
|
27
|
-
return restrictToBoundingRect(transform, draggingNodeRect, containerNodeRect);
|
|
28
|
-
};
|
|
29
|
-
export {
|
|
30
|
-
restrictToParentElement as r
|
|
31
|
-
};
|