@eightshift/ui-components 1.9.1 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -7
- package/dist/{Button-BEIi9mB_.js → Button-OQ5EIPvt.js} +8 -8
- package/dist/{SelectionManager-DGbP8Ntl.js → Collection-CJM_asJz.js} +345 -197
- package/dist/{Color-CZxTZUqH.js → Color-B0HgM8f4.js} +1 -1
- package/dist/{ColorSwatch-Iijp9hzP.js → ColorSwatch-Dv3Wxdl_.js} +6 -7
- package/dist/{ComboBox-DVPU5XzU.js → ComboBox-BnlZjJ3T.js} +21 -22
- package/dist/{Dialog-17uxPRe5.js → Dialog-CIh-hX93.js} +77 -65
- package/dist/{FieldError-huHsqqMP.js → FieldError-D7A6s7O5.js} +2 -2
- package/dist/{FocusScope-7r2_SUa9.js → FocusScope-Cs5_OoeA.js} +6 -4
- package/dist/{Group-k_oyd3Te.js → Group-D6tr3U_n.js} +5 -6
- package/dist/{Heading-DRBzKYHb.js → Heading-DiYTXoIW.js} +3 -4
- package/dist/{Hidden-5cXbU70C.js → Hidden-DnOd_jPX.js} +2 -2
- package/dist/{Input-DCmTv_Qw.js → Input-Se0m3ubj.js} +13 -11
- package/dist/{Label-D8G0GMsc.js → Label-Ca9uelsn.js} +4 -5
- package/dist/{List-C7L49CxW.js → List-Br274SP1.js} +16 -8
- package/dist/{ListBox-BxZwDp9o.js → ListBox-D9dFEh5A.js} +36 -23
- package/dist/{OverlayArrow-Dca2JXYU.js → OverlayArrow-1jx-ZyCR.js} +75 -13
- package/dist/{Select-aab027f3.esm-OvJ8lZs8.js → Select-aab027f3.esm-HFNIFFya.js} +4 -4
- package/dist/{Separator-B_VdRHCf.js → Separator-BhZycTUp.js} +9 -7
- package/dist/{Slider-CgEZmlNY.js → Slider-BZNaJylD.js} +20 -24
- package/dist/{Text-Cld9rkzJ.js → Text-aOUPPvTO.js} +3 -4
- package/dist/{VisuallyHidden-D0lsNfi4.js → VisuallyHidden-ClTQo25k.js} +2 -2
- package/dist/assets/index.css +37 -0
- package/dist/assets/style-admin.css +5287 -0
- package/dist/assets/style-editor.css +5287 -0
- package/dist/assets/style.css +5293 -1
- package/dist/assets/wp-font-enhancements.css +8 -1
- package/dist/assets/wp-ui-enhancements.css +299 -1
- package/dist/components/animated-visibility/animated-visibility.js +17 -21
- package/dist/components/base-control/base-control.js +7 -7
- package/dist/components/breakpoint-preview/breakpoint-preview.js +50 -50
- package/dist/components/button/button.js +190 -86
- package/dist/components/checkbox/checkbox.js +44 -27
- package/dist/components/color-pickers/color-picker.js +13 -9
- package/dist/components/color-pickers/color-swatch.js +4 -4
- package/dist/components/color-pickers/gradient-editor.js +25 -24
- package/dist/components/color-pickers/solid-color-picker.js +197 -229
- package/dist/components/component-toggle/component-toggle.js +3 -3
- package/dist/components/container-panel/container-panel.js +17 -17
- package/dist/components/draggable/draggable-handle.js +6 -6
- package/dist/components/draggable/draggable.js +1414 -699
- package/dist/components/draggable-list/draggable-list-item.js +3 -3
- package/dist/components/draggable-list/draggable-list.js +12 -12
- package/dist/components/expandable/expandable.js +66 -78
- package/dist/components/index.js +2 -3
- package/dist/components/input-field/input-field.js +35 -22
- package/dist/components/layout/hstack.js +1 -1
- package/dist/components/layout/vstack.js +1 -1
- package/dist/components/link-input/link-input.js +69 -57
- package/dist/components/matrix-align/matrix-align.js +34 -86
- package/dist/components/menu/menu.js +22 -23
- package/dist/components/modal/modal.js +24 -25
- package/dist/components/notice/notice.js +32 -32
- package/dist/components/number-picker/number-picker.js +41 -40
- package/dist/components/option-select/option-select.js +9 -4
- package/dist/components/options-panel/options-panel.js +63 -28
- package/dist/components/placeholders/file-placeholder.js +6 -17
- package/dist/components/placeholders/image-placeholder.js +17 -17
- package/dist/components/placeholders/media-placeholder.js +12 -12
- package/dist/components/popover/popover.js +6 -5
- package/dist/components/radio/radio.js +60 -43
- package/dist/components/repeater/repeater-item.js +10 -10
- package/dist/components/repeater/repeater.js +8 -8
- package/dist/components/responsive/mini-responsive.js +41 -41
- package/dist/components/responsive/responsive-legacy.js +33 -33
- package/dist/components/responsive/responsive.js +48 -48
- package/dist/components/responsive-preview/responsive-preview.js +4 -4
- package/dist/components/rich-label/rich-label.js +13 -11
- package/dist/components/select/async-multi-select.js +3 -3
- package/dist/components/select/async-single-select.js +2 -2
- package/dist/components/select/custom-select-default-components.js +3 -3
- package/dist/components/select/multi-select-components.js +1 -1
- package/dist/components/select/multi-select.js +3 -3
- package/dist/components/select/react-select-component-wrappers.js +1 -1
- package/dist/components/select/single-select.js +2 -2
- package/dist/components/select/styles.js +21 -21
- package/dist/components/select/v2/async-select.js +37 -47
- package/dist/components/select/v2/shared.js +8 -8
- package/dist/components/select/v2/single-select.js +44 -48
- package/dist/components/slider/column-config-slider.js +25 -25
- package/dist/components/slider/slider.js +173 -182
- package/dist/components/spacer/spacer.js +21 -21
- package/dist/components/tabs/tabs.js +111 -63
- package/dist/components/toggle/switch.js +27 -21
- package/dist/components/toggle/toggle.js +1 -1
- package/dist/components/toggle-button/toggle-button.js +160 -83
- package/dist/components/tooltip/tooltip.js +25 -28
- package/dist/{context-DtrQ3I5U.js → context-CDOs-GuR.js} +1 -1
- package/dist/{focusSafely-ChK5oW-0.js → focusSafely-CiqTTjWy.js} +18 -17
- package/dist/icons/icons.js +52 -0
- package/dist/{index-641ee5b8.esm-DRaWil7u.js → index-641ee5b8.esm-DbdaYaxR.js} +45 -45
- package/dist/{index-D0mHceYg.js → index-BRp93Yfa.js} +24 -31
- package/dist/index-CcCn9HWX.js +44 -0
- package/dist/index.js +2 -3
- package/dist/{multi-select-components-2Ax71j9a.js → multi-select-components-CkF3LyTF.js} +4 -4
- package/dist/{react-select-async.esm-BZwl7Ddb.js → react-select-async.esm-DcVLw9X5.js} +3 -3
- package/dist/{react-select.esm-DI0eSkd8.js → react-select.esm-OZ0cmTjg.js} +3 -3
- package/dist/style-admin.js +1 -0
- package/dist/style-editor.js +1 -0
- package/dist/style.js +1 -1
- package/dist/{textSelection-CdZPiDxh.js → textSelection-BlTDSskG.js} +2 -2
- package/dist/{useButton-C5e_EJlC.js → useButton-CmLbE5vg.js} +3 -3
- package/dist/{useEvent-BW_vevRp.js → useEvent-cLDJlznQ.js} +1 -1
- package/dist/{useFocusRing-Dbj6MsFR.js → useFocusRing-CGp3guTX.js} +1 -1
- package/dist/{useFocusable-C2xrPFl6.js → useFocusable-087cO5Ct.js} +9 -6
- package/dist/{useFormReset-DDCE2RPv.js → useFormReset-NpLM2e3G.js} +1 -1
- package/dist/{useFormValidation-BxnASugK.js → useFormValidation-BWwmZQE2.js} +3 -3
- package/dist/{useLabel-C3sAYsiC.js → useLabel-C85N3Hzw.js} +2 -2
- package/dist/{useLabels-WnPbJUyQ.js → useLabels-C_2wWraB.js} +1 -1
- package/dist/{useListState-BmTFGt2_.js → useListState-Z7FB_NzO.js} +1 -1
- package/dist/{useLocalizedStringFormatter-BurzRhbk.js → useLocalizedStringFormatter-BQ4TF72x.js} +1 -1
- package/dist/{useNumberField-D_Azw6A1.js → useNumberField-Bm6_BVl9.js} +10 -10
- package/dist/{useNumberFormatter-B58dTQ-c.js → useNumberFormatter-DlUVKkO7.js} +1 -1
- package/dist/{usePress-DZ9pn6Jl.js → usePress-rg_OQIGW.js} +15 -14
- package/dist/{useSingleSelectListState-Dr843geC.js → useSingleSelectListState-Cu3xtEJS.js} +2 -2
- package/dist/{useToggle-Dq9VpeCd.js → useToggle-DzlgBLAJ.js} +4 -4
- package/dist/{useToggleState-DA_b3LG_.js → useToggleState-DhSBQxkp.js} +1 -1
- package/dist/{utils-BmaSD6gC.js → utils-39D0mStj.js} +41 -93
- package/package.json +41 -38
- package/dist/GeistMonoVF.woff2 +0 -0
- package/dist/GeistVF.woff2 +0 -0
- package/dist/assets/fonts.css +0 -1
- package/dist/components/list-box/list-box.js +0 -157
- package/dist/fonts.js +0 -1
|
@@ -1 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/*! tailwindcss v4.0.0 | MIT License | https://tailwindcss.com */
|
|
2
|
+
.edit-post-header, .components-popover, .edit-post-sidebar, .wp-block-post-title, .components-select-control__input, .components-base-control__field, .components-base-control__label, .components-combobox-control__suggestions-container, .components-input-control__label, .components-input-control__input, .components-checkbox-control__label, .components-menu-group__label, .components-menu-item__button, .components-notice .components-notice__content, .components-tooltip, .components-modal__header, .preferences-modal__section-title, .preferences-modal__section-description, .block-editor-inserter__tabs, .editor-list-view-sidebar, .edit-post-layout__footer, .components-snackbar, .components-text-control__input {
|
|
3
|
+
font-family: var(--es-font-sans);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
body.wp-admin {
|
|
7
|
+
font-family: var(--es-font-sans) !important;
|
|
8
|
+
}
|
|
@@ -1 +1,299 @@
|
|
|
1
|
-
|
|
1
|
+
/*! tailwindcss v4.0.0 | MIT License | https://tailwindcss.com */
|
|
2
|
+
.edit-post-header__toolbar .components-button, .edit-post-header__settings .components-button, .editor-document-tools__left .components-button, .editor-header__center .components-button, .editor-header__settings .components-button, .edit-post-sidebar .components-button:not(.components-panel__body-toggle, .editor-post-last-revision__title), .components-snackbar, .components-toggle-group-control, .editor-post-publish-panel .components-button, .edit-post-text-editor__toolbar .components-button, .edit-post-text-editor__body .components-textarea-control__input, .media-modal-content, .media-modal-content .components-button, .components-guide__container .components-button, .components-notice__content .components-button, .editor-post-featured-image__toggle.components-button {
|
|
3
|
+
border-radius: var(--es-radius-md) !important;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.components-input-control__container, .components-combobox-control__suggestions-container, .components-checkbox-control__input, button.components-toggle-group-control-option-base, .editor-post-visibility__password-input {
|
|
7
|
+
border-radius: .25rem !important;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.components-button-group .components-button:first-child {
|
|
11
|
+
border-top-left-radius: var(--es-radius-md) !important;
|
|
12
|
+
border-bottom-left-radius: var(--es-radius-md) !important;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.components-button-group .components-button:last-child {
|
|
16
|
+
border-top-right-radius: var(--es-radius-md) !important;
|
|
17
|
+
border-bottom-right-radius: var(--es-radius-md) !important;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.components-popover__content, .components-guide {
|
|
21
|
+
border-radius: var(--es-radius-lg) !important;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.block-editor-inserter__search {
|
|
25
|
+
border-top-left-radius: var(--es-radius-lg) !important;
|
|
26
|
+
border-top-right-radius: var(--es-radius-lg) !important;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.media-menu-item.active {
|
|
30
|
+
border-top-left-radius: var(--es-radius-md) !important;
|
|
31
|
+
border-top-right-radius: var(--es-radius-md) !important;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.components-base-control__label, .components-input-control__label, .components-custom-select-control__label {
|
|
35
|
+
--tw-font-weight: var(--es-font-weight-normal) !important;
|
|
36
|
+
font-size: 13px !important;
|
|
37
|
+
font-weight: var(--es-font-weight-normal) !important;
|
|
38
|
+
--tw-tracking: var(--es-tracking-normal) !important;
|
|
39
|
+
letter-spacing: var(--es-tracking-normal) !important;
|
|
40
|
+
text-transform: none !important;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.edit-post-sidebar, .interface-interface-skeleton__sidebar:not(:empty) > .interface-complementary-area__fill[style="width: 280px;"], .interface-complementary-area.editor-sidebar {
|
|
44
|
+
width: calc(var(--es-spacing) * 80) !important;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.block-editor-block-list__block-crash-warning {
|
|
48
|
+
border-radius: var(--es-radius-lg) !important;
|
|
49
|
+
border-color: color-mix(in oklab, var(--es-color-red-700) 15%, transparent) !important;
|
|
50
|
+
--tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, #0000001a), 0 1px 2px -1px var(--tw-shadow-color, #0000001a) !important;
|
|
51
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow) !important;
|
|
52
|
+
--tw-shadow-color: color-mix(in oklab, var(--es-color-red-700) 10%, transparent) !important;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.block-editor-block-list__block-crash-warning .block-editor-warning__message {
|
|
56
|
+
color: var(--es-color-red-950) !important;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.wp-block-missing div.block-editor-warning {
|
|
60
|
+
border-radius: var(--es-radius-lg) !important;
|
|
61
|
+
border-color: var(--es-color-zinc-300) !important;
|
|
62
|
+
background-color: color-mix(in oklab, var(--es-color-zinc-50) 75%, transparent) !important;
|
|
63
|
+
--tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, #0000001a), 0 1px 2px -1px var(--tw-shadow-color, #0000001a) !important;
|
|
64
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow) !important;
|
|
65
|
+
--tw-shadow-color: color-mix(in oklab, var(--es-color-zinc-700) 20%, transparent) !important;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.wp-block-missing div.block-editor-warning .block-editor-warning__message {
|
|
69
|
+
color: var(--es-color-zinc-950) !important;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.block-editor-block-contextual-toolbar, .block-editor-block-parent-selector__button {
|
|
73
|
+
--tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, #0000001a), 0 1px 2px -1px var(--tw-shadow-color, #0000001a);
|
|
74
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
75
|
+
border-radius: var(--es-radius-lg) !important;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.block-editor-block-types-list .block-editor-block-types-list__item {
|
|
79
|
+
border-radius: var(--es-radius-lg) !important;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.block-editor-block-types-list .block-editor-block-types-list__item:after {
|
|
83
|
+
content: var(--tw-content);
|
|
84
|
+
border-radius: var(--es-radius-lg) !important;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.block-editor-block-types-list .block-editor-block-types-list__item svg {
|
|
88
|
+
--tw-scale-x: 125%;
|
|
89
|
+
--tw-scale-y: 125%;
|
|
90
|
+
--tw-scale-z: 125%;
|
|
91
|
+
scale: var(--tw-scale-x) var(--tw-scale-y);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.block-editor-list-view-tree .block-editor-block-icon {
|
|
95
|
+
border-radius: .25rem !important;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.block-editor-list-view-tree .block-editor-list-view-leaf > :first-child {
|
|
99
|
+
border-top-left-radius: var(--es-radius-lg) !important;
|
|
100
|
+
border-bottom-left-radius: var(--es-radius-lg) !important;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.block-editor-list-view-tree .block-editor-list-view-leaf > :last-child {
|
|
104
|
+
border-top-right-radius: var(--es-radius-lg) !important;
|
|
105
|
+
border-bottom-right-radius: var(--es-radius-lg) !important;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.block-editor-block-inspector .block-editor-block-card .block-editor-block-icon {
|
|
109
|
+
border-radius: .25rem !important;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.block-editor-inserter__toggle {
|
|
113
|
+
border-radius: var(--es-radius-md) !important;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
:is(.edit-post-header__toolbar, .edit-post-header__settings, .editor-document-tools__left, .editor-header__center, .editor-header__settings) .components-button {
|
|
117
|
+
min-height: calc(var(--es-spacing) * 9) !important;
|
|
118
|
+
min-width: calc(var(--es-spacing) * 9) !important;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.editor-styles-wrapper .wp-block:not(.editor-post-title, .block-list-appender) {
|
|
122
|
+
max-width: 100% !important;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.components-tooltip {
|
|
126
|
+
border-style: var(--tw-border-style);
|
|
127
|
+
border-width: 1px;
|
|
128
|
+
border-color: var(--es-color-gray-800);
|
|
129
|
+
background-color: color-mix(in oklab, var(--es-color-gray-950) 70%, transparent);
|
|
130
|
+
padding-inline: calc(var(--es-spacing) * 1);
|
|
131
|
+
padding-block: calc(var(--es-spacing) * .5);
|
|
132
|
+
color: var(--es-color-white);
|
|
133
|
+
--tw-shadow: 0 4px 6px -1px var(--tw-shadow-color, #0000001a), 0 2px 4px -2px var(--tw-shadow-color, #0000001a);
|
|
134
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
135
|
+
--tw-backdrop-blur: blur(var(--es-blur-xl));
|
|
136
|
+
-webkit-backdrop-filter: var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, );
|
|
137
|
+
backdrop-filter: var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, );
|
|
138
|
+
--tw-backdrop-brightness: brightness(105%);
|
|
139
|
+
--tw-backdrop-saturate: saturate(150%);
|
|
140
|
+
border-radius: var(--es-radius-md) !important;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.components-tooltip:has( > :first-child) {
|
|
144
|
+
border-color: var(--es-color-gray-200);
|
|
145
|
+
background-color: color-mix(in oklab, var(--es-color-white) 80%, transparent);
|
|
146
|
+
color: var(--es-color-gray-700);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
@property --tw-font-weight {
|
|
150
|
+
syntax: "*";
|
|
151
|
+
inherits: false
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
@property --tw-tracking {
|
|
155
|
+
syntax: "*";
|
|
156
|
+
inherits: false
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
@property --tw-shadow {
|
|
160
|
+
syntax: "*";
|
|
161
|
+
inherits: false;
|
|
162
|
+
initial-value: 0 0 #0000;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
@property --tw-shadow-color {
|
|
166
|
+
syntax: "*";
|
|
167
|
+
inherits: false
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
@property --tw-inset-shadow {
|
|
171
|
+
syntax: "*";
|
|
172
|
+
inherits: false;
|
|
173
|
+
initial-value: 0 0 #0000;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
@property --tw-inset-shadow-color {
|
|
177
|
+
syntax: "*";
|
|
178
|
+
inherits: false
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
@property --tw-ring-color {
|
|
182
|
+
syntax: "*";
|
|
183
|
+
inherits: false
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
@property --tw-ring-shadow {
|
|
187
|
+
syntax: "*";
|
|
188
|
+
inherits: false;
|
|
189
|
+
initial-value: 0 0 #0000;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
@property --tw-inset-ring-color {
|
|
193
|
+
syntax: "*";
|
|
194
|
+
inherits: false
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
@property --tw-inset-ring-shadow {
|
|
198
|
+
syntax: "*";
|
|
199
|
+
inherits: false;
|
|
200
|
+
initial-value: 0 0 #0000;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
@property --tw-ring-inset {
|
|
204
|
+
syntax: "*";
|
|
205
|
+
inherits: false
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
@property --tw-ring-offset-width {
|
|
209
|
+
syntax: "<length>";
|
|
210
|
+
inherits: false;
|
|
211
|
+
initial-value: 0;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
@property --tw-ring-offset-color {
|
|
215
|
+
syntax: "*";
|
|
216
|
+
inherits: false;
|
|
217
|
+
initial-value: #fff;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
@property --tw-ring-offset-shadow {
|
|
221
|
+
syntax: "*";
|
|
222
|
+
inherits: false;
|
|
223
|
+
initial-value: 0 0 #0000;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
@property --tw-content {
|
|
227
|
+
syntax: "*";
|
|
228
|
+
inherits: false;
|
|
229
|
+
initial-value: "";
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
@property --tw-scale-x {
|
|
233
|
+
syntax: "*";
|
|
234
|
+
inherits: false;
|
|
235
|
+
initial-value: 1;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
@property --tw-scale-y {
|
|
239
|
+
syntax: "*";
|
|
240
|
+
inherits: false;
|
|
241
|
+
initial-value: 1;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
@property --tw-scale-z {
|
|
245
|
+
syntax: "*";
|
|
246
|
+
inherits: false;
|
|
247
|
+
initial-value: 1;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
@property --tw-border-style {
|
|
251
|
+
syntax: "*";
|
|
252
|
+
inherits: false;
|
|
253
|
+
initial-value: solid;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
@property --tw-backdrop-blur {
|
|
257
|
+
syntax: "*";
|
|
258
|
+
inherits: false
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
@property --tw-backdrop-brightness {
|
|
262
|
+
syntax: "*";
|
|
263
|
+
inherits: false
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
@property --tw-backdrop-contrast {
|
|
267
|
+
syntax: "*";
|
|
268
|
+
inherits: false
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
@property --tw-backdrop-grayscale {
|
|
272
|
+
syntax: "*";
|
|
273
|
+
inherits: false
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
@property --tw-backdrop-hue-rotate {
|
|
277
|
+
syntax: "*";
|
|
278
|
+
inherits: false
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
@property --tw-backdrop-invert {
|
|
282
|
+
syntax: "*";
|
|
283
|
+
inherits: false
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
@property --tw-backdrop-opacity {
|
|
287
|
+
syntax: "*";
|
|
288
|
+
inherits: false
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
@property --tw-backdrop-saturate {
|
|
292
|
+
syntax: "*";
|
|
293
|
+
inherits: false
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
@property --tw-backdrop-sepia {
|
|
297
|
+
syntax: "*";
|
|
298
|
+
inherits: false
|
|
299
|
+
}
|
|
@@ -27,7 +27,6 @@ import { useState, useEffect } from "react";
|
|
|
27
27
|
* @preserve
|
|
28
28
|
*/
|
|
29
29
|
const AnimatedVisibility = (props) => {
|
|
30
|
-
var _a;
|
|
31
30
|
const { visible, className, children, noInitial = false, transition = "slideFade", noExitAnimation, noEnterAnimation, ...other } = props;
|
|
32
31
|
const [isVisibleInner, setIsVisibleInner] = useState(false);
|
|
33
32
|
const [canAnimate, setCanAnimate] = useState(true);
|
|
@@ -46,38 +45,36 @@ const AnimatedVisibility = (props) => {
|
|
|
46
45
|
}, []);
|
|
47
46
|
const transitions = {
|
|
48
47
|
fade: {
|
|
49
|
-
inClassName: "es-
|
|
50
|
-
outClassName: "es-
|
|
48
|
+
inClassName: "es:motion-opacity-in es:motion-duration-300",
|
|
49
|
+
outClassName: "es:motion-opacity-out es:motion-duration-200"
|
|
51
50
|
},
|
|
52
51
|
slideFade: {
|
|
53
|
-
inClassName: "es-
|
|
54
|
-
outClassName: "es-
|
|
52
|
+
inClassName: "es:motion-safe:motion-translate-y-in-[-5%] es:motion-opacity-in es:motion-duration-300 es:motion-safe:motion-ease-spring-bouncy es:motion-ease-linear/opacity",
|
|
53
|
+
outClassName: "es:motion-safe:motion-translate-y-out-[-5%] es:motion-opacity-out es:motion-duration-200 es:motion-safe:motion-ease-spring-bouncy es:motion-ease-linear/opacity"
|
|
55
54
|
},
|
|
56
55
|
slideInFadeOut: {
|
|
57
|
-
inClassName: "es-
|
|
58
|
-
outClassName: "es-
|
|
56
|
+
inClassName: "es:motion-safe:motion-translate-y-in-[-5%] es:motion-opacity-in es:motion-duration-300 es:motion-safe:motion-ease-spring-bouncy es:motion-ease-linear/opacity",
|
|
57
|
+
outClassName: "es:motion-opacity-out es:motion-duration-200"
|
|
59
58
|
},
|
|
60
59
|
slideFadeUpSlight: {
|
|
61
|
-
inClassName: "es-
|
|
62
|
-
outClassName: "es-
|
|
60
|
+
inClassName: "es:motion-safe:motion-translate-y-in-[0.25rem] es:motion-opacity-in es:motion-duration-300 es:motion-safe:motion-ease-spring-bouncy es:motion-ease-linear/opacity",
|
|
61
|
+
outClassName: "es:motion-safe:motion-translate-y-out-[0.25rem] es:motion-opacity-out es:motion-duration-200 es:motion-safe:motion-ease-spring-bouncy es:motion-ease-linear/opacity"
|
|
63
62
|
},
|
|
64
63
|
slideFadeDownSlight: {
|
|
65
|
-
inClassName: "es-
|
|
66
|
-
outClassName: "es-
|
|
64
|
+
inClassName: "es:motion-safe:motion-translate-y-in-[-0.25rem] es:motion-opacity-in es:motion-duration-300 es:motion-safe:motion-ease-spring-bouncy es:motion-ease-linear/opacity",
|
|
65
|
+
outClassName: "es:motion-safe:motion-translate-y-out-[-0.25rem] es:motion-opacity-out es:motion-duration-200 es:motion-safe:motion-ease-spring-bouncy es:motion-ease-linear/opacity"
|
|
67
66
|
},
|
|
68
67
|
scaleFade: {
|
|
69
|
-
inClassName: "es-
|
|
70
|
-
outClassName: "es-
|
|
68
|
+
inClassName: "es:motion-safe:motion-scale-in-95 es:motion-opacity-in es:motion-duration-300 es:motion-safe:motion-ease-spring-bouncy es:motion-ease-linear/opacity",
|
|
69
|
+
outClassName: "es:motion-safe:motion-scale-out-90 es:motion-opacity-out es:motion-duration-200 es:motion-safe:motion-ease-spring-bouncy es:motion-ease-linear/opacity"
|
|
71
70
|
},
|
|
72
71
|
scaleSlideFade: {
|
|
73
|
-
inClassName: "es-
|
|
74
|
-
outClassName: "es-
|
|
75
|
-
durationClassName: "es-uic-duration-300"
|
|
72
|
+
inClassName: "es:motion-safe:motion-translate-y-in-[-5%] es:motion-safe:motion-scale-in-95 es:motion-opacity-in es:motion-duration-300 es:motion-safe:motion-ease-spring-bouncy es:motion-ease-linear/opacity",
|
|
73
|
+
outClassName: "es:motion-safe:motion-translate-y-out-[-5%] es:motion-safe:motion-scale-out-90 es:motion-opacity-out es:motion-duration-200 es:motion-safe:motion-ease-spring-bouncy es:motion-ease-linear/opacity"
|
|
76
74
|
},
|
|
77
75
|
scaleRotateFade: {
|
|
78
|
-
inClassName: "es-
|
|
79
|
-
outClassName: "es-
|
|
80
|
-
durationClassName: "es-uic-duration-300"
|
|
76
|
+
inClassName: "es:motion-rotate-in es:motion-safe:motion-scale-in-95 es:motion-opacity-in es:motion-duration-300 es:motion-safe:motion-ease-spring-bouncy es:motion-ease-linear/opacity",
|
|
77
|
+
outClassName: "es:motion-rotate-out es:motion-safe:motion-scale-out-90 es:motion-opacity-out es:motion-duration-200 es:motion-safe:motion-ease-spring-bouncy es:motion-ease-linear/opacity"
|
|
81
78
|
}
|
|
82
79
|
};
|
|
83
80
|
return /* @__PURE__ */ jsx(Fragment, { children: isVisibleInner && /* @__PURE__ */ jsx(
|
|
@@ -87,8 +84,7 @@ const AnimatedVisibility = (props) => {
|
|
|
87
84
|
!noEnterAnimation && visible && noInitial && visible && canAnimate && transitions[transition].inClassName,
|
|
88
85
|
!noEnterAnimation && visible && !noInitial && transitions[transition].inClassName,
|
|
89
86
|
!noExitAnimation && !visible && transitions[transition].outClassName,
|
|
90
|
-
|
|
91
|
-
"es-uic-fill-mode-forwards",
|
|
87
|
+
"es:fill-mode-forwards",
|
|
92
88
|
className
|
|
93
89
|
),
|
|
94
90
|
onAnimationEnd: () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { $ as $514c0188e459b4c0$export$5f1af8db9871e1d6 } from "../../Text-
|
|
2
|
+
import { $ as $514c0188e459b4c0$export$5f1af8db9871e1d6 } from "../../Text-aOUPPvTO.js";
|
|
3
3
|
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
4
4
|
import { RichLabel } from "../rich-label/rich-label.js";
|
|
5
5
|
/**
|
|
@@ -53,8 +53,8 @@ const BaseControl = (props) => {
|
|
|
53
53
|
if (!(label || icon || subtitle)) {
|
|
54
54
|
return children;
|
|
55
55
|
}
|
|
56
|
-
return /* @__PURE__ */ jsxs("div", { className: clsx("es
|
|
57
|
-
/* @__PURE__ */ jsxs("div", { className: clsx("es
|
|
56
|
+
return /* @__PURE__ */ jsxs("div", { className: clsx("es:space-y-1", className), children: [
|
|
57
|
+
/* @__PURE__ */ jsxs("div", { className: clsx("es:flex es:items-center es:gap-1", !inline && !icon && "es:pb-0.5", labelContainerClassName), children: [
|
|
58
58
|
(label || icon || subtitle) && /* @__PURE__ */ jsx(
|
|
59
59
|
RichLabel,
|
|
60
60
|
{
|
|
@@ -66,15 +66,15 @@ const BaseControl = (props) => {
|
|
|
66
66
|
className: labelClassName
|
|
67
67
|
}
|
|
68
68
|
),
|
|
69
|
-
inline && /* @__PURE__ */ jsx("div", { className: clsx("es
|
|
70
|
-
!inline && actions && /* @__PURE__ */ jsx("div", { className: clsx("es
|
|
69
|
+
inline && /* @__PURE__ */ jsx("div", { className: clsx("es:ml-auto es:flex es:items-center es:gap-1", controlContainerClassName), children }),
|
|
70
|
+
!inline && actions && /* @__PURE__ */ jsx("div", { className: clsx("es:flex es:items-center es:gap-1", !inline && "es:ml-auto"), children: actions })
|
|
71
71
|
] }),
|
|
72
|
-
!inline && Array.isArray(children) && children.filter(Boolean).length > 1 && /* @__PURE__ */ jsx("div", { className: clsx("es
|
|
72
|
+
!inline && Array.isArray(children) && children.filter(Boolean).length > 1 && /* @__PURE__ */ jsx("div", { className: clsx("es:space-y-1", controlContainerClassName), children }),
|
|
73
73
|
!inline && (!Array.isArray(children) || children.filter(Boolean).length < 2) && children,
|
|
74
74
|
help && /* @__PURE__ */ jsx(
|
|
75
75
|
$514c0188e459b4c0$export$5f1af8db9871e1d6,
|
|
76
76
|
{
|
|
77
|
-
className: "es
|
|
77
|
+
className: "es:inline-block es:text-sm es:text-secondary-500",
|
|
78
78
|
slot: "description",
|
|
79
79
|
children: help
|
|
80
80
|
}
|
|
@@ -54,105 +54,105 @@ const BreakpointPreview = (props) => {
|
|
|
54
54
|
const hasActive = (blocks == null ? void 0 : blocks.some(({ active }) => active)) ?? false;
|
|
55
55
|
const activeColors = {
|
|
56
56
|
blue: {
|
|
57
|
-
text: "es
|
|
58
|
-
bg: "es
|
|
57
|
+
text: "es:text-blue-500",
|
|
58
|
+
bg: "es:bg-blue-500"
|
|
59
59
|
},
|
|
60
60
|
green: {
|
|
61
|
-
text: "es
|
|
62
|
-
bg: "es
|
|
61
|
+
text: "es:text-lime-500",
|
|
62
|
+
bg: "es:bg-lime-500"
|
|
63
63
|
},
|
|
64
64
|
yellow: {
|
|
65
|
-
text: "es
|
|
66
|
-
bg: "es
|
|
65
|
+
text: "es:text-yellow-400",
|
|
66
|
+
bg: "es:bg-yellow-400"
|
|
67
67
|
},
|
|
68
68
|
red: {
|
|
69
|
-
text: "es
|
|
70
|
-
bg: "es
|
|
69
|
+
text: "es:text-red-500",
|
|
70
|
+
bg: "es:bg-red-500"
|
|
71
71
|
},
|
|
72
72
|
indigo: {
|
|
73
|
-
text: "es
|
|
74
|
-
bg: "es
|
|
73
|
+
text: "es:text-indigo-500",
|
|
74
|
+
bg: "es:bg-indigo-500"
|
|
75
75
|
},
|
|
76
76
|
orange: {
|
|
77
|
-
text: "es
|
|
78
|
-
bg: "es
|
|
77
|
+
text: "es:text-orange-500",
|
|
78
|
+
bg: "es:bg-orange-500"
|
|
79
79
|
},
|
|
80
80
|
cyan: {
|
|
81
|
-
text: "es
|
|
82
|
-
bg: "es
|
|
81
|
+
text: "es:text-cyan-500",
|
|
82
|
+
bg: "es:bg-cyan-500"
|
|
83
83
|
},
|
|
84
84
|
teal: {
|
|
85
|
-
text: "es
|
|
86
|
-
bg: "es
|
|
85
|
+
text: "es:text-accent-500",
|
|
86
|
+
bg: "es:bg-accent-500"
|
|
87
87
|
},
|
|
88
88
|
fuchsia: {
|
|
89
|
-
text: "es
|
|
90
|
-
bg: "es
|
|
89
|
+
text: "es:text-fuchsia-500",
|
|
90
|
+
bg: "es:bg-fuchsia-500"
|
|
91
91
|
},
|
|
92
92
|
black: {
|
|
93
|
-
text: "es
|
|
94
|
-
bg: "es
|
|
93
|
+
text: "es:text-black",
|
|
94
|
+
bg: "es:bg-black"
|
|
95
95
|
},
|
|
96
96
|
default: {
|
|
97
|
-
text: "es
|
|
98
|
-
bg: "es
|
|
97
|
+
text: "es:text-secondary-600",
|
|
98
|
+
bg: "es:bg-secondary-600"
|
|
99
99
|
}
|
|
100
100
|
};
|
|
101
|
-
return /* @__PURE__ */ jsxs("div", { className: clsx("es
|
|
101
|
+
return /* @__PURE__ */ jsxs("div", { className: clsx("es:mx-auto es:grid es:w-fit es:shrink-0 es:auto-cols-auto es:grid-rows-[auto_auto] es:gap-x-2 es:gap-y-0.5"), children: [
|
|
102
102
|
dotsStart && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
103
|
-
/* @__PURE__ */ jsx("div", { className: "es
|
|
104
|
-
/* @__PURE__ */ jsx("div", { className: "es
|
|
105
|
-
/* @__PURE__ */ jsx("div", { className: "es
|
|
106
|
-
/* @__PURE__ */ jsx("div", { className: "es
|
|
103
|
+
/* @__PURE__ */ jsx("div", { className: "es:row-start-1 es:flex es:shrink-0 es:translate-x-1 es:items-center es:gap-1 es:justify-self-end es:text-secondary-400", children: /* @__PURE__ */ jsxs("div", { className: "es:flex es:gap-0.5 es:text-secondary-300", children: [
|
|
104
|
+
/* @__PURE__ */ jsx("div", { className: "es:size-0.5 es:rounded es:bg-current" }),
|
|
105
|
+
/* @__PURE__ */ jsx("div", { className: "es:size-0.5 es:rounded es:bg-current" }),
|
|
106
|
+
/* @__PURE__ */ jsx("div", { className: "es:size-0.5 es:rounded es:bg-current" })
|
|
107
107
|
] }) }),
|
|
108
|
-
/* @__PURE__ */ jsx("div", { className: "es
|
|
108
|
+
/* @__PURE__ */ jsx("div", { className: "es:row-start-2 es:size-px es:justify-self-end" })
|
|
109
109
|
] }),
|
|
110
110
|
blocks.map(({ width, widthEnd, breakpoint, value, dotsStart: dotsStart2 = false, dotsEnd: dotsEnd2 = false, active = false, alignEnd = false, color }, i) => {
|
|
111
111
|
var _a, _b;
|
|
112
112
|
const activeTextColor = ((_a = activeColors == null ? void 0 : activeColors[color]) == null ? void 0 : _a.text) ?? activeColors.default.text;
|
|
113
113
|
const activeBgColor = ((_b = activeColors == null ? void 0 : activeColors[color]) == null ? void 0 : _b.bg) ?? activeColors.default.bg;
|
|
114
114
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
115
|
-
/* @__PURE__ */ jsxs("div", { className: "es
|
|
116
|
-
dotsStart2 && /* @__PURE__ */ jsxs("div", { className: clsx("es
|
|
117
|
-
/* @__PURE__ */ jsx("div", { className: "es
|
|
118
|
-
/* @__PURE__ */ jsx("div", { className: "es
|
|
119
|
-
/* @__PURE__ */ jsx("div", { className: "es
|
|
115
|
+
/* @__PURE__ */ jsxs("div", { className: "es:row-start-1 es:flex es:min-w-28 es:items-center es:gap-1 es:font-mono es:font-medium es:text-secondary-400", children: [
|
|
116
|
+
dotsStart2 && /* @__PURE__ */ jsxs("div", { className: clsx("es:flex es:gap-0.5", active ? activeTextColor : "text-secondary-300"), children: [
|
|
117
|
+
/* @__PURE__ */ jsx("div", { className: "es:size-0.5 es:rounded es:bg-current" }),
|
|
118
|
+
/* @__PURE__ */ jsx("div", { className: "es:size-0.5 es:rounded es:bg-current" }),
|
|
119
|
+
/* @__PURE__ */ jsx("div", { className: "es:size-0.5 es:rounded es:bg-current" })
|
|
120
120
|
] }),
|
|
121
121
|
width && /* @__PURE__ */ jsx("span", { children: width }),
|
|
122
|
-
/* @__PURE__ */ jsx("div", { className: clsx("es
|
|
122
|
+
/* @__PURE__ */ jsx("div", { className: clsx("es:grow es:rounded", active ? "es:h-0.5" : "es:h-px es:bg-secondary-300", active && activeBgColor) }),
|
|
123
123
|
widthEnd && /* @__PURE__ */ jsx("span", { children: widthEnd }),
|
|
124
|
-
dotsEnd2 && /* @__PURE__ */ jsxs("div", { className: clsx("es
|
|
125
|
-
/* @__PURE__ */ jsx("div", { className: "es
|
|
126
|
-
/* @__PURE__ */ jsx("div", { className: "es
|
|
127
|
-
/* @__PURE__ */ jsx("div", { className: "es
|
|
124
|
+
dotsEnd2 && /* @__PURE__ */ jsxs("div", { className: clsx("es:flex es:gap-0.5", active ? activeTextColor : "es:text-secondary-300"), children: [
|
|
125
|
+
/* @__PURE__ */ jsx("div", { className: "es:size-0.5 es:rounded es:bg-current" }),
|
|
126
|
+
/* @__PURE__ */ jsx("div", { className: "es:size-0.5 es:rounded es:bg-current" }),
|
|
127
|
+
/* @__PURE__ */ jsx("div", { className: "es:size-0.5 es:rounded es:bg-current" })
|
|
128
128
|
] })
|
|
129
129
|
] }),
|
|
130
|
-
/* @__PURE__ */ jsxs("div", { className: "es
|
|
130
|
+
/* @__PURE__ */ jsxs("div", { className: "es:row-start-2 es:flex es:w-full es:min-w-28 es:flex-col es:items-start es:gap-1", children: [
|
|
131
131
|
/* @__PURE__ */ jsx(
|
|
132
132
|
"span",
|
|
133
133
|
{
|
|
134
134
|
className: clsx(
|
|
135
|
-
"es
|
|
136
|
-
hasActive && active && "es
|
|
135
|
+
"es:rounded es:px-1 es:py-0.5",
|
|
136
|
+
hasActive && active && "es:text-white",
|
|
137
137
|
hasActive && active && activeBgColor,
|
|
138
|
-
hasActive && !active && "es
|
|
139
|
-
!hasActive && "es
|
|
140
|
-
alignEnd && "es
|
|
138
|
+
hasActive && !active && "es:bg-secondary-200 es:text-secondary-500",
|
|
139
|
+
!hasActive && "es:bg-secondary-600 es:text-white",
|
|
140
|
+
alignEnd && "es:ml-auto"
|
|
141
141
|
),
|
|
142
142
|
children: upperFirst(breakpoint)
|
|
143
143
|
}
|
|
144
144
|
),
|
|
145
|
-
value && /* @__PURE__ */ jsx("span", { className: clsx("
|
|
145
|
+
value && /* @__PURE__ */ jsx("span", { className: clsx("es:-mt-0.5 es:px-1", active ? "es:text-secondary-400" : "es:text-secondary-400", alignEnd && "es:ml-auto"), children: value })
|
|
146
146
|
] })
|
|
147
147
|
] }, i);
|
|
148
148
|
}),
|
|
149
149
|
dotsEnd && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
150
|
-
/* @__PURE__ */ jsx("div", { className: "es
|
|
151
|
-
/* @__PURE__ */ jsx("div", { className: "es
|
|
152
|
-
/* @__PURE__ */ jsx("div", { className: "es
|
|
153
|
-
/* @__PURE__ */ jsx("div", { className: "es
|
|
150
|
+
/* @__PURE__ */ jsx("div", { className: "es:row-start-1 es:flex es:shrink-0 es:-translate-x-1 es:items-center es:gap-1 es:font-mono es:font-medium es:text-secondary-400", children: /* @__PURE__ */ jsxs("div", { className: "es:flex es:gap-0.5 es:text-secondary-300", children: [
|
|
151
|
+
/* @__PURE__ */ jsx("div", { className: "es:size-0.5 es:rounded es:bg-current" }),
|
|
152
|
+
/* @__PURE__ */ jsx("div", { className: "es:size-0.5 es:rounded es:bg-current" }),
|
|
153
|
+
/* @__PURE__ */ jsx("div", { className: "es:size-0.5 es:rounded es:bg-current" })
|
|
154
154
|
] }) }),
|
|
155
|
-
/* @__PURE__ */ jsx("div", { className: "es
|
|
155
|
+
/* @__PURE__ */ jsx("div", { className: "es:row-start-2 es:size-px" })
|
|
156
156
|
] })
|
|
157
157
|
] });
|
|
158
158
|
};
|