@eightshift/ui-components 8.4.1 → 8.5.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/README.md +11 -1
- package/dist/assets/fonts-manifest.json +66 -0
- package/dist/assets/style-admin-no-fonts.css +2 -0
- package/dist/assets/style-admin.css +1 -1
- package/dist/assets/style-editor-no-fonts.css +2 -0
- package/dist/assets/style-editor.css +1 -1
- package/dist/assets/style-no-fonts.css +2 -0
- package/dist/assets/style.css +1 -1
- package/dist/{button-NgEJ1eT2.js → button-CCtgOh0o.js} +57 -57
- package/dist/{checkbox-DfZDR444.js → checkbox-d1lNvf65.js} +6 -6
- package/dist/{color-swatch-CEYPwPsn.js → color-swatch-BstCWUIZ.js} +1 -1
- package/dist/components/animated-visibility/animated-visibility.js +1 -1
- package/dist/components/base-control/base-control.js +2 -2
- package/dist/components/base-control/container.js +8 -8
- package/dist/components/breakpoint-preview/breakpoint-preview.js +15 -15
- package/dist/components/button/button.js +1 -1
- package/dist/components/checkbox/checkbox.js +1 -1
- package/dist/components/color-pickers/color-picker.js +1 -1
- package/dist/components/color-pickers/color-swatch.js +1 -1
- package/dist/components/color-pickers/gradient-editor.js +1 -1
- package/dist/components/color-pickers/solid-color-picker.js +1 -1
- package/dist/components/component-toggle/component-toggle.js +3 -3
- package/dist/components/container-panel/container-panel.js +4 -4
- package/dist/components/contextual-help/contextual-help.js +3 -3
- package/dist/components/draggable/draggable-handle.js +1 -1
- package/dist/components/draggable-list/draggable-list-item.js +2 -2
- package/dist/components/draggable-list/draggable-list.js +2 -2
- package/dist/components/expandable/expandable.js +6 -6
- package/dist/components/index.js +13 -13
- package/dist/components/input-field/input-field.js +1 -1
- package/dist/components/layout/vstack.js +1 -1
- package/dist/components/link-input/link-input.js +1 -1
- package/dist/components/matrix-align/matrix-align.js +4 -4
- package/dist/components/menu/menu.js +5 -5
- package/dist/components/modal/modal.js +1 -1
- package/dist/components/notice/notice.js +3 -3
- package/dist/components/number-picker/number-picker.js +1 -1
- package/dist/components/option-select/option-select.js +2 -2
- package/dist/components/options-panel/options-panel.js +6 -6
- package/dist/components/placeholders/file-picker-shell.js +7 -7
- package/dist/components/placeholders/image-placeholder.js +2 -2
- package/dist/components/popover/popover.js +3 -3
- package/dist/components/prompt-popover/prompt-popover.js +4 -2
- package/dist/components/radio/radio.js +10 -10
- package/dist/components/repeater/repeater-item.js +2 -2
- package/dist/components/repeater/repeater.js +3 -3
- package/dist/components/responsive/mini-responsive.js +18 -18
- package/dist/components/responsive/responsive-legacy.js +6 -6
- package/dist/components/responsive/responsive.js +17 -17
- package/dist/components/responsive-preview/responsive-preview.js +2 -2
- package/dist/components/rich-label/rich-label.js +6 -6
- package/dist/components/select/async-multi-select.js +16 -16
- package/dist/components/select/async-select.js +13 -13
- package/dist/components/select/multi-select.js +18 -18
- package/dist/components/select/shared.js +1 -1
- package/dist/components/select/single-select.js +15 -15
- package/dist/components/select/styles.js +6 -6
- package/dist/components/slider/column-config-slider.js +10 -10
- package/dist/components/slider/slider.js +9 -9
- package/dist/components/smart-image/smart-image.js +3 -3
- package/dist/components/tabs/tabs.js +1 -1
- 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/components/tooltip/tooltip.js +1 -1
- package/dist/{gradient-editor-CO1iXPM9.js → gradient-editor-D2zB_7Wi.js} +9 -9
- package/dist/icons/spinner.js +1 -1
- package/dist/index.js +13 -13
- package/dist/{input-field-msAE2llt.js → input-field-DVNpRfYE.js} +5 -5
- package/dist/{link-input-D1BWznvA.js → link-input-XaVrI3wP.js} +26 -26
- package/dist/{modal-DPHjb2V4.js → modal-BXSwfGkf.js} +5 -5
- package/dist/{number-picker-Dqwxp_2B.js → number-picker-DLLqEAsq.js} +13 -13
- package/dist/{shared-s7XUBOVx.js → shared-CsO_if0Q.js} +6 -6
- package/dist/{solid-color-picker-CDrcphjC.js → solid-color-picker-1QabIOpX.js} +4 -4
- package/dist/{switch-bqIILR_c.js → switch-CfgDFjqQ.js} +4 -4
- package/dist/{tabs-DvGKX3V7.js → tabs-ORp17BEr.js} +26 -26
- package/dist/{toggle-button-g3dLI2F1.js → toggle-button-B0nKYFlk.js} +15 -15
- package/dist/{tooltip-Dd1nNj0_.js → tooltip-Dxr7aiIX.js} +1 -1
- package/package.json +14 -6
|
@@ -5,7 +5,7 @@ import { n as $43a3b93638fe5db9$export$b04be29aa201d4f5 } from "../../Label-C4bJ
|
|
|
5
5
|
import { n as $7705c033048f6da7$export$353f5b6fc5456de1 } from "../../Button-DcI8gSfH.js";
|
|
6
6
|
import { O as $53e61d82d8b8611d$export$8b251419efc915eb, d as $542a13ca2fa5b484$export$5b6b19405a83ff9d } from "../../Dialog-CSqjSLlO.js";
|
|
7
7
|
import { r as $41fb335299a4a39e$export$f5b8910cec6cf069 } from "../../useTextField-C9dxy3po.js";
|
|
8
|
-
import { c as isStringValue, d as $c8bb816105474884$export$ef9b1a59e592288f, i as getOptionKey, n as SelectClearButton, r as getGroupedOptions, s as isSelectOption, t as OptionItemBase, u as $c8bb816105474884$export$e288731fd71264f0 } from "../../shared-
|
|
8
|
+
import { c as isStringValue, d as $c8bb816105474884$export$ef9b1a59e592288f, i as getOptionKey, n as SelectClearButton, r as getGroupedOptions, s as isSelectOption, t as OptionItemBase, u as $c8bb816105474884$export$e288731fd71264f0 } from "../../shared-CsO_if0Q.js";
|
|
9
9
|
import { a as $928221da08ecbc62$export$dca12b0bb56e4fc, t as $928221da08ecbc62$export$41f133550aa26f48 } from "../../ListBox-D8_U8eBS.js";
|
|
10
10
|
import { t as $ef182bb9912241d8$export$3274cf84b703fff } from "../../useFilter-Yp-QyW1S.js";
|
|
11
11
|
import { t as $29a5029ff43c9612$export$b94867ecbd698f21 } from "../../SearchField-N1nXzeWK.js";
|
|
@@ -166,11 +166,11 @@ var MultiSelect = (props) => {
|
|
|
166
166
|
jsxs($7705c033048f6da7$export$353f5b6fc5456de1, {
|
|
167
167
|
className: selectButtonClass({ size }),
|
|
168
168
|
children: [jsx($c8bb816105474884$export$e288731fd71264f0, {
|
|
169
|
-
className: "es:
|
|
169
|
+
className: "es:pointer-events-none es:select-none",
|
|
170
170
|
children: ({ isPlaceholder, selectedItems }) => {
|
|
171
171
|
const [selectedItem] = selectedItems;
|
|
172
172
|
if (!currentValueKeys.length || isPlaceholder) return jsx("span", {
|
|
173
|
-
className: "es:
|
|
173
|
+
className: "es:pointer-events-none es:pr-6 es:text-sm es:text-surface-500 es:select-none",
|
|
174
174
|
children: placeholder
|
|
175
175
|
});
|
|
176
176
|
const selectedIcon = selectedItem?.icon ?? null;
|
|
@@ -185,18 +185,18 @@ var MultiSelect = (props) => {
|
|
|
185
185
|
icon: selectedIcon ? jsx(Icon, { icon: selectedIcon }) : null,
|
|
186
186
|
label: selectedItem?.label,
|
|
187
187
|
subtitle: selectedItem?.subtitle,
|
|
188
|
-
className: clsx("es:
|
|
188
|
+
className: clsx("es:w-full es:grow es:pr-6", disabled && "es:pointer-events-none es:grayscale"),
|
|
189
189
|
iconClassName: "es:pointer-events-none es:select-none",
|
|
190
190
|
labelClassName: "es:line-clamp-1",
|
|
191
191
|
subtitleClassName: "es:line-clamp-1"
|
|
192
192
|
});
|
|
193
193
|
}
|
|
194
194
|
}), jsxs("div", {
|
|
195
|
-
className: clsx("es:absolute es:
|
|
195
|
+
className: clsx("es:absolute es:inset-y-0 es:right-3 es:my-auto es:flex es:items-center", disabled ? "es:text-secondary-300" : "es:text-secondary-500"),
|
|
196
196
|
"aria-hidden": "true",
|
|
197
197
|
children: [!customDropdownArrow ? cloneElement(dropdownCaret, { className: "es:w-4 es:stroke-[1.2] es:group-aria-expanded:-scale-y-100 es:transition-transform es:duration-200" }) : null, customDropdownArrow ? jsx("div", {
|
|
198
198
|
"aria-hidden": "true",
|
|
199
|
-
className: "es:group-aria-expanded:-scale-y-100
|
|
199
|
+
className: "es:transition-transform es:duration-200 es:group-aria-expanded:-scale-y-100",
|
|
200
200
|
children: customDropdownArrow
|
|
201
201
|
}) : null]
|
|
202
202
|
})]
|
|
@@ -217,7 +217,7 @@ var MultiSelect = (props) => {
|
|
|
217
217
|
hidden: noReorder || disabled || currentValue.length < 2,
|
|
218
218
|
style: getPopoverStyle(null),
|
|
219
219
|
children: [jsx("span", {
|
|
220
|
-
className: "es:
|
|
220
|
+
className: "es:mt-2 es:mb-1 es:ml-3 es:text-sm es:text-surface-600 es:font-variation-[\"wdth\"_100,\"wght\"_325,\"ROND\"_100]",
|
|
221
221
|
children: __("Item order", "eightshift-ui-components")
|
|
222
222
|
}), jsx(TypedDraggableList, {
|
|
223
223
|
items: currentValue,
|
|
@@ -236,14 +236,14 @@ var MultiSelect = (props) => {
|
|
|
236
236
|
iconClassName: "es:pointer-events-none es:select-none",
|
|
237
237
|
labelClassName: "es:line-clamp-1",
|
|
238
238
|
subtitleClassName: "es:line-clamp-1",
|
|
239
|
-
className: clsx("es:min-h-9 es:
|
|
239
|
+
className: clsx("es:flex es:min-h-9 es:items-center es:justify-between", realItem?.icon ? "es:pl-1" : "es:pl-2")
|
|
240
240
|
});
|
|
241
241
|
}
|
|
242
242
|
})]
|
|
243
243
|
})
|
|
244
244
|
]
|
|
245
245
|
}), jsx($542a13ca2fa5b484$export$5b6b19405a83ff9d, {
|
|
246
|
-
className: ({ isEntering, isExiting }) => clsx("es:font-sans", "es:w-(--select-width) es:min-w-72", "es:outline-hidden", searchable ? "es:rounded-
|
|
246
|
+
className: ({ isEntering, isExiting }) => clsx("es:font-sans", "es:w-(--select-width) es:min-w-72", "es:outline-hidden", searchable ? "es:rounded-t-3xl es:rounded-b-xl" : "es:rounded-2xl", "es:grid es:grid-cols-1 es:overflow-clip", searchable ? "es:grid-rows-[auto_minmax(0,1fr)]" : "es:grid-rows-1", !searchable ? "es:has-first-selected:rounded-t-20!" : null, "es:has-last-selected:rounded-b-20!", "es:inset-ring es:inset-ring-surface-500/10", "es:inset-shadow-sm es:inset-shadow-white/30", searchable && !options.length ? "es:bg-surface-50/50" : "es:bg-surface-300/50", searchable && !options.length ? "es:backdrop-blur-sm" : "es:backdrop-blur-md", searchable && !options.length ? "es:backdrop-brightness-105" : "es:backdrop-brightness-110", "es:backdrop-saturate-125", "es:shadow-lg es:shadow-black/10", "es:transition-plus", "es:motion-ease-spring-bouncy es:motion-duration-300", "es:placement-top:origin-bottom-left es:placement-bottom:origin-top-left", isEntering && "es:motion-opacity-in-0 es:motion-scale-x-in-95 es:motion-scale-y-in-85", isEntering && "es:placement-top:motion-translate-y-in-[0.5rem] es:placement-bottom:motion-translate-y-in-[-0.5rem]", isExiting && "es:motion-opacity-out-0 es:motion-scale-x-out-95 es:motion-scale-y-out-85", isExiting && "es:placement-top:motion-translate-y-out-[0.5rem] es:placement-bottom:motion-translate-y-out-[-0.5rem]"),
|
|
247
247
|
placement: "bottom left",
|
|
248
248
|
maxHeight: 260,
|
|
249
249
|
triggerRef: ref,
|
|
@@ -254,24 +254,24 @@ var MultiSelect = (props) => {
|
|
|
254
254
|
onInputChange: setSearchTerm,
|
|
255
255
|
children: [jsxs($29a5029ff43c9612$export$b94867ecbd698f21, {
|
|
256
256
|
"aria-label": __("Search", "eightshift-ui-components"),
|
|
257
|
-
className: "es:flex es:items-center
|
|
257
|
+
className: "es:relative es:flex es:items-center",
|
|
258
258
|
autoFocus: true,
|
|
259
259
|
children: [jsx($41fb335299a4a39e$export$f5b8910cec6cf069, {
|
|
260
260
|
placeholder: __("Search...", "eightshift-ui-components"),
|
|
261
|
-
className: clsx("es:peer es:size-full es:h-9.5 es:
|
|
261
|
+
className: clsx("es:peer es:size-full es:h-9.5 es:pr-9 es:pl-3.5 es:text-13! es:shadow-none! es:outline-hidden! es:placeholder:text-surface-500 es:[&::-webkit-search-cancel-button]:hidden", "es:m-1.5 es:rounded-3xl! es:border-none! es:bg-accent-900/8", "es:inset-ring! es:inset-ring-accent-950/7 es:focus:inset-ring-accent-950/20", "es:text-accent-950 es:placeholder:text-accent-700/50", "es:transition")
|
|
262
262
|
}), jsx($7705c033048f6da7$export$353f5b6fc5456de1, {
|
|
263
263
|
slot: "clear",
|
|
264
264
|
"aria-label": __("Clear", "eightshift-ui-components"),
|
|
265
|
-
className: clsx("es:absolute es:
|
|
265
|
+
className: clsx("es:absolute es:inset-y-0 es:right-3 es:my-auto es:border-none es:bg-transparent", "es:flex es:size-7 es:items-center es:justify-center es:rounded-3xl es:text-sm es:text-surface-700 es:transition es:hover:bg-accent-50 es:hover:text-accent-800 es:focus:ring-2 es:focus:ring-accent-500/50 es:disabled:text-secondary-300 es:any-focus:outline-hidden", "es:peer-placeholder-shown:opacity-0"),
|
|
266
266
|
children: clearAlt
|
|
267
267
|
})]
|
|
268
268
|
}), jsx($928221da08ecbc62$export$41f133550aa26f48, {
|
|
269
|
-
className: "es:space-y-0.75 es:p-1.5 es:pt-0 es:any-focus:outline-hidden
|
|
269
|
+
className: "es:h-full es:space-y-0.75 es:overflow-y-auto es:rounded-t-xl es:p-1.5 es:pt-0 es:any-focus:outline-hidden",
|
|
270
270
|
renderEmptyState: () => jsx(RichLabel, {
|
|
271
271
|
icon: searchEmpty,
|
|
272
272
|
label: __("No results", "eightshift-ui-components"),
|
|
273
273
|
subtitle: __("Try a different search term", "eightshift-ui-components"),
|
|
274
|
-
className: "es:min-h-14 es:
|
|
274
|
+
className: "es:mx-auto es:min-h-14 es:w-fit es:shrink-0 es:motion-preset-slide-up es:p-2 es:motion-ease-spring-bouncy es:motion-duration-200",
|
|
275
275
|
iconClassName: "es:text-accent-700 es:icon:size-7!",
|
|
276
276
|
noColor: true
|
|
277
277
|
}),
|
|
@@ -281,7 +281,7 @@ var MultiSelect = (props) => {
|
|
|
281
281
|
id: item.key,
|
|
282
282
|
className: "es:flex es:flex-col es:gap-0.75",
|
|
283
283
|
children: [jsx($53e61d82d8b8611d$export$8b251419efc915eb, {
|
|
284
|
-
className: "es:px-2.5 es:
|
|
284
|
+
className: "es:px-2.5 es:pt-3 es:pb-1 es:select-none",
|
|
285
285
|
children: jsx(RichLabel, {
|
|
286
286
|
icon: item.icon,
|
|
287
287
|
label: item.label,
|
|
@@ -300,12 +300,12 @@ var MultiSelect = (props) => {
|
|
|
300
300
|
})
|
|
301
301
|
})]
|
|
302
302
|
}) : jsx($928221da08ecbc62$export$41f133550aa26f48, {
|
|
303
|
-
className: "es:space-y-0.75 es:
|
|
303
|
+
className: "es:h-full es:space-y-0.75 es:overflow-y-auto es:rounded-t-xl es:p-1.5 es:any-focus:outline-hidden",
|
|
304
304
|
renderEmptyState: () => jsx(RichLabel, {
|
|
305
305
|
icon: searchEmpty,
|
|
306
306
|
label: __("No results", "eightshift-ui-components"),
|
|
307
307
|
subtitle: __("Try a different search term", "eightshift-ui-components"),
|
|
308
|
-
className: "es:min-h-14 es:
|
|
308
|
+
className: "es:mx-auto es:min-h-14 es:w-fit es:motion-preset-slide-up es:p-2 es:motion-ease-spring-bouncy es:motion-duration-200",
|
|
309
309
|
iconClassName: "es:text-accent-700 es:icon:size-7!",
|
|
310
310
|
noColor: true
|
|
311
311
|
}),
|
|
@@ -315,7 +315,7 @@ var MultiSelect = (props) => {
|
|
|
315
315
|
id: item.key,
|
|
316
316
|
className: "es:flex es:flex-col es:gap-0.75",
|
|
317
317
|
children: [jsx($53e61d82d8b8611d$export$8b251419efc915eb, {
|
|
318
|
-
className: "es:px-2.5 es:
|
|
318
|
+
className: "es:px-2.5 es:pt-3 es:pb-1 es:select-none",
|
|
319
319
|
children: jsx(RichLabel, {
|
|
320
320
|
icon: item.icon,
|
|
321
321
|
label: item.label,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as getValue, c as isStringValue, i as getOptionKey, l as moveArrayItem, n as SelectClearButton, o as isPrimitive, r as getGroupedOptions, s as isSelectOption, t as OptionItemBase } from "../../shared-
|
|
1
|
+
import { a as getValue, c as isStringValue, i as getOptionKey, l as moveArrayItem, n as SelectClearButton, o as isPrimitive, r as getGroupedOptions, s as isSelectOption, t as OptionItemBase } from "../../shared-CsO_if0Q.js";
|
|
2
2
|
export { OptionItemBase, SelectClearButton, getGroupedOptions, getOptionKey, getValue, isPrimitive, isSelectOption, isStringValue, moveArrayItem };
|
|
@@ -5,7 +5,7 @@ import { n as $43a3b93638fe5db9$export$b04be29aa201d4f5 } from "../../Label-C4bJ
|
|
|
5
5
|
import { n as $7705c033048f6da7$export$353f5b6fc5456de1 } from "../../Button-DcI8gSfH.js";
|
|
6
6
|
import { O as $53e61d82d8b8611d$export$8b251419efc915eb, d as $542a13ca2fa5b484$export$5b6b19405a83ff9d } from "../../Dialog-CSqjSLlO.js";
|
|
7
7
|
import { r as $41fb335299a4a39e$export$f5b8910cec6cf069 } from "../../useTextField-C9dxy3po.js";
|
|
8
|
-
import { c as isStringValue, d as $c8bb816105474884$export$ef9b1a59e592288f, i as getOptionKey, n as SelectClearButton, o as isPrimitive, r as getGroupedOptions, t as OptionItemBase, u as $c8bb816105474884$export$e288731fd71264f0 } from "../../shared-
|
|
8
|
+
import { c as isStringValue, d as $c8bb816105474884$export$ef9b1a59e592288f, i as getOptionKey, n as SelectClearButton, o as isPrimitive, r as getGroupedOptions, t as OptionItemBase, u as $c8bb816105474884$export$e288731fd71264f0 } from "../../shared-CsO_if0Q.js";
|
|
9
9
|
import { a as $928221da08ecbc62$export$dca12b0bb56e4fc, t as $928221da08ecbc62$export$41f133550aa26f48 } from "../../ListBox-D8_U8eBS.js";
|
|
10
10
|
import { t as $ef182bb9912241d8$export$3274cf84b703fff } from "../../useFilter-Yp-QyW1S.js";
|
|
11
11
|
import { t as $29a5029ff43c9612$export$b94867ecbd698f21 } from "../../SearchField-N1nXzeWK.js";
|
|
@@ -148,7 +148,7 @@ var Select = (props) => {
|
|
|
148
148
|
const [selectedItem] = selectedItems;
|
|
149
149
|
if (!isPlaceholder && currentValue && customValueDisplay) return customValueDisplay(selectedItem ?? null);
|
|
150
150
|
if (!currentValue) return jsx("span", {
|
|
151
|
-
className: "es:
|
|
151
|
+
className: "es:pointer-events-none es:pr-6 es:text-sm es:text-surface-500 es:select-none",
|
|
152
152
|
children: placeholder
|
|
153
153
|
});
|
|
154
154
|
const selectedIcon = selectedItem?.icon ?? null;
|
|
@@ -156,22 +156,22 @@ var Select = (props) => {
|
|
|
156
156
|
icon: selectedIcon ? jsx(Icon, { icon: selectedIcon }) : null,
|
|
157
157
|
label: selectedItem?.label,
|
|
158
158
|
subtitle: selectedItem?.subtitle,
|
|
159
|
-
className: clsx("es:
|
|
159
|
+
className: clsx("es:w-full es:grow es:pr-6", disabled && "es:pointer-events-none es:grayscale"),
|
|
160
160
|
iconClassName: "es:pointer-events-none es:select-none"
|
|
161
161
|
});
|
|
162
162
|
}
|
|
163
163
|
}), jsxs("div", {
|
|
164
|
-
className: clsx("es:absolute es:
|
|
164
|
+
className: clsx("es:absolute es:inset-y-0 es:right-3 es:my-auto es:flex es:items-center", disabled ? "es:text-secondary-300" : "es:text-secondary-500"),
|
|
165
165
|
"aria-hidden": "true",
|
|
166
166
|
children: [!customDropdownArrow ? cloneElement(dropdownCaret, { className: "es:w-4 es:stroke-[1.2] es:group-aria-expanded:-scale-y-100 es:transition-transform es:duration-200" }) : null, customDropdownArrow ? jsx("div", {
|
|
167
167
|
"aria-hidden": "true",
|
|
168
|
-
className: "es:group-aria-expanded:-scale-y-100
|
|
168
|
+
className: "es:transition-transform es:duration-200 es:group-aria-expanded:-scale-y-100",
|
|
169
169
|
children: customDropdownArrow
|
|
170
170
|
}) : null]
|
|
171
171
|
})]
|
|
172
172
|
}), clearable ? jsx(SelectClearButton, {}) : null]
|
|
173
173
|
}), jsx($542a13ca2fa5b484$export$5b6b19405a83ff9d, {
|
|
174
|
-
className: ({ isEntering, isExiting }) => clsx("es:font-sans", "es:w-(--select-width) es:min-w-72", "es:outline-hidden", searchable ? "es:rounded-
|
|
174
|
+
className: ({ isEntering, isExiting }) => clsx("es:font-sans", "es:w-(--select-width) es:min-w-72", "es:outline-hidden", searchable ? "es:rounded-t-3xl es:rounded-b-xl" : "es:rounded-2xl", "es:grid es:grid-cols-1 es:overflow-clip", searchable ? "es:grid-rows-[auto_minmax(0,1fr)]" : "es:grid-rows-1", !searchable && !options.length ? "es:has-first-selected:rounded-t-20!" : null, "es:has-last-selected:rounded-b-20!", "es:inset-ring es:inset-ring-surface-500/10", "es:inset-shadow-sm es:inset-shadow-white/30", searchable && !options.length ? "es:bg-surface-50/50" : "es:bg-surface-300/50", searchable && !options.length ? "es:backdrop-blur-sm" : "es:backdrop-blur-md", searchable && !options.length ? "es:backdrop-brightness-105" : "es:backdrop-brightness-110", "es:backdrop-saturate-125", "es:shadow-lg es:shadow-black/10", "es:transition-plus", "es:motion-ease-spring-bouncy es:motion-duration-300", "es:placement-top:origin-bottom-left es:placement-bottom:origin-top-left", isEntering && "es:motion-opacity-in-0 es:motion-scale-x-in-95 es:motion-scale-y-in-85", isEntering && "es:placement-top:motion-translate-y-in-[0.5rem] es:placement-bottom:motion-translate-y-in-[-0.5rem]", isExiting && "es:motion-opacity-out-0 es:motion-scale-x-out-95 es:motion-scale-y-out-85", isExiting && "es:placement-top:motion-translate-y-out-[0.5rem] es:placement-bottom:motion-translate-y-out-[-0.5rem]"),
|
|
175
175
|
placement: "bottom left",
|
|
176
176
|
maxHeight: 260,
|
|
177
177
|
triggerRef: ref,
|
|
@@ -182,24 +182,24 @@ var Select = (props) => {
|
|
|
182
182
|
onInputChange: setSearchTerm,
|
|
183
183
|
children: [jsxs($29a5029ff43c9612$export$b94867ecbd698f21, {
|
|
184
184
|
"aria-label": __("Search", "eightshift-ui-components"),
|
|
185
|
-
className: "es:flex es:items-center
|
|
185
|
+
className: "es:relative es:flex es:items-center",
|
|
186
186
|
autoFocus: true,
|
|
187
187
|
children: [jsx($41fb335299a4a39e$export$f5b8910cec6cf069, {
|
|
188
188
|
placeholder: __("Search...", "eightshift-ui-components"),
|
|
189
|
-
className: clsx("es:peer es:size-full es:h-9.5 es:
|
|
189
|
+
className: clsx("es:peer es:size-full es:h-9.5 es:pr-9 es:pl-3.5 es:text-13! es:shadow-none! es:outline-hidden! es:placeholder:text-surface-500 es:[&::-webkit-search-cancel-button]:hidden", "es:m-1.5 es:rounded-3xl! es:border-none! es:bg-accent-900/8", "es:inset-ring! es:inset-ring-accent-950/7 es:focus:inset-ring-accent-950/20", "es:text-accent-950 es:placeholder:text-accent-700/50", "es:transition")
|
|
190
190
|
}), jsx($7705c033048f6da7$export$353f5b6fc5456de1, {
|
|
191
191
|
slot: "clear",
|
|
192
192
|
"aria-label": __("Clear", "eightshift-ui-components"),
|
|
193
|
-
className: clsx("es:absolute es:
|
|
193
|
+
className: clsx("es:absolute es:inset-y-0 es:right-3 es:my-auto es:border-none es:bg-transparent", "es:flex es:size-7 es:items-center es:justify-center es:rounded-3xl es:text-sm es:text-surface-700 es:transition es:hover:bg-accent-50 es:hover:text-accent-800 es:focus:ring-2 es:focus:ring-accent-500/50 es:disabled:text-secondary-300 es:any-focus:outline-hidden", "es:peer-placeholder-shown:opacity-0"),
|
|
194
194
|
children: clearAlt
|
|
195
195
|
})]
|
|
196
196
|
}), jsx($928221da08ecbc62$export$41f133550aa26f48, {
|
|
197
|
-
className: "es:space-y-0.75 es:p-1.5 es:pt-0 es:any-focus:outline-hidden
|
|
197
|
+
className: "es:h-full es:space-y-0.75 es:overflow-y-auto es:rounded-t-xl es:p-1.5 es:pt-0 es:any-focus:outline-hidden",
|
|
198
198
|
renderEmptyState: () => jsx(RichLabel, {
|
|
199
199
|
icon: searchEmpty,
|
|
200
200
|
label: __("No results", "eightshift-ui-components"),
|
|
201
201
|
subtitle: __("Try a different search term", "eightshift-ui-components"),
|
|
202
|
-
className: "es:min-h-14 es:
|
|
202
|
+
className: "es:mx-auto es:min-h-14 es:w-fit es:shrink-0 es:motion-preset-slide-up es:p-2 es:motion-ease-spring-bouncy es:motion-duration-200",
|
|
203
203
|
iconClassName: "es:text-accent-700 es:icon:size-7!",
|
|
204
204
|
noColor: true
|
|
205
205
|
}),
|
|
@@ -209,7 +209,7 @@ var Select = (props) => {
|
|
|
209
209
|
id: item.key,
|
|
210
210
|
className: "es:flex es:flex-col es:gap-0.75",
|
|
211
211
|
children: [jsx($53e61d82d8b8611d$export$8b251419efc915eb, {
|
|
212
|
-
className: "es:px-2.5 es:
|
|
212
|
+
className: "es:px-2.5 es:pt-3 es:pb-1 es:select-none",
|
|
213
213
|
children: jsx(RichLabel, {
|
|
214
214
|
icon: item.icon,
|
|
215
215
|
label: item.label,
|
|
@@ -228,12 +228,12 @@ var Select = (props) => {
|
|
|
228
228
|
})
|
|
229
229
|
})]
|
|
230
230
|
}) : jsx($928221da08ecbc62$export$41f133550aa26f48, {
|
|
231
|
-
className: "es:space-y-0.75 es:
|
|
231
|
+
className: "es:h-full es:space-y-0.75 es:overflow-y-auto es:rounded-t-xl es:p-1.5 es:any-focus:outline-hidden",
|
|
232
232
|
renderEmptyState: () => jsx(RichLabel, {
|
|
233
233
|
icon: searchEmpty,
|
|
234
234
|
label: __("No results", "eightshift-ui-components"),
|
|
235
235
|
subtitle: __("Try a different search term", "eightshift-ui-components"),
|
|
236
|
-
className: "es:min-h-14 es:
|
|
236
|
+
className: "es:mx-auto es:min-h-14 es:w-fit es:motion-preset-slide-up es:p-2 es:motion-ease-spring-bouncy es:motion-duration-200",
|
|
237
237
|
iconClassName: "es:text-accent-700 es:icon:size-7!",
|
|
238
238
|
noColor: true
|
|
239
239
|
}),
|
|
@@ -243,7 +243,7 @@ var Select = (props) => {
|
|
|
243
243
|
id: item.key,
|
|
244
244
|
className: "es:flex es:flex-col es:gap-0.75",
|
|
245
245
|
children: [jsx($53e61d82d8b8611d$export$8b251419efc915eb, {
|
|
246
|
-
className: "es:px-2.5 es:
|
|
246
|
+
className: "es:px-2.5 es:pt-3 es:pb-1 es:select-none",
|
|
247
247
|
children: jsx(RichLabel, {
|
|
248
248
|
icon: item.icon,
|
|
249
249
|
label: item.label,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as cva } from "../../dist-DpXluZqJ.js";
|
|
2
2
|
//#region lib/components/select/styles.ts
|
|
3
|
-
var selectButtonClass = cva("es:
|
|
3
|
+
var selectButtonClass = cva("es:group es:inline-block es:size-full es:overflow-x-clip es:text-start es:any-focus:outline-hidden", {
|
|
4
4
|
variants: { size: {
|
|
5
5
|
small: ["es:min-h-8", "es:px-2.5"],
|
|
6
6
|
medium: ["es:min-h-9", "es:px-3"],
|
|
@@ -13,7 +13,7 @@ var selectControlClass = cva([
|
|
|
13
13
|
"es:relative",
|
|
14
14
|
"es:flex es:items-center es:gap-px",
|
|
15
15
|
"es:leading-none",
|
|
16
|
-
"es:rounded-lg es:hover:rounded-xl es:has-focus-visible:rounded-2xl
|
|
16
|
+
"es:rounded-lg es:group-open:rounded-2xl es:hover:rounded-xl es:has-focus-visible:rounded-2xl",
|
|
17
17
|
"es:transition-plus",
|
|
18
18
|
"es:any-focus:outline-hidden",
|
|
19
19
|
"es:inset-ring",
|
|
@@ -59,7 +59,7 @@ var selectControlClass = cva([
|
|
|
59
59
|
disabled: false,
|
|
60
60
|
class: [
|
|
61
61
|
"es:bg-white",
|
|
62
|
-
"es:bg-linear-to-b es:from-secondary-100/0 es:to-secondary-100/50
|
|
62
|
+
"es:bg-linear-to-b es:from-secondary-100/0 es:from-25% es:to-secondary-100/50",
|
|
63
63
|
"es:hover:from-surface-100/0 es:hover:to-surface-100/50",
|
|
64
64
|
"es:inset-ring-secondary-400/50 es:hover:inset-ring-surface-300 es:focus:inset-ring-surface-400",
|
|
65
65
|
"es:inset-shadow-sm es:inset-shadow-secondary-100/50",
|
|
@@ -81,17 +81,17 @@ var selectControlClass = cva([
|
|
|
81
81
|
},
|
|
82
82
|
{
|
|
83
83
|
disabled: true,
|
|
84
|
-
class: ["es:bg-secondary-50 es:
|
|
84
|
+
class: ["es:bg-secondary-50 es:text-secondary-400 es:inset-ring-secondary-200"]
|
|
85
85
|
},
|
|
86
86
|
{
|
|
87
87
|
readOnly: true,
|
|
88
88
|
flat: false,
|
|
89
|
-
class: ["es:bg-secondary-50 es:
|
|
89
|
+
class: ["es:bg-secondary-50 es:text-secondary-400 es:inset-ring-secondary-300"]
|
|
90
90
|
},
|
|
91
91
|
{
|
|
92
92
|
readOnly: true,
|
|
93
93
|
flat: true,
|
|
94
|
-
class: ["es:bg-secondary-50 es:inset-ring-secondary-300/60
|
|
94
|
+
class: ["es:bg-secondary-50 es:text-secondary-400 es:inset-ring-secondary-300/60"]
|
|
95
95
|
}
|
|
96
96
|
],
|
|
97
97
|
defaultVariants: {
|
|
@@ -71,31 +71,31 @@ var ColumnConfigSlider = (props) => {
|
|
|
71
71
|
style: { gridTemplateColumns: `repeat(${columns}, minmax(0, 1fr))` },
|
|
72
72
|
children: ({ state }) => jsxs(Fragment$1, { children: [
|
|
73
73
|
jsx("div", {
|
|
74
|
-
className: clsx("es:row-span-1 es:row-start-1 es:
|
|
74
|
+
className: clsx("es:row-span-1 es:row-start-1 es:my-0.5 es:h-6 es:w-fill es:self-center", "es:rounded-l-xl es:rounded-r-sm", "es:transition-plus-m es:duration-300 es:ease-spring-smooth", !flat && !disabled && "es:shadow-xs es:shadow-black/5", !disabled && [
|
|
75
75
|
"es:bg-surface-200",
|
|
76
|
-
"es:bg-linear-to-b es:from-surface-700/0 es:to-surface-700/5
|
|
76
|
+
"es:bg-linear-to-b es:from-surface-700/0 es:from-25% es:to-surface-700/5",
|
|
77
77
|
"es:inset-ring es:inset-ring-surface-300/20"
|
|
78
78
|
], disabled && "es:bg-secondary-200", !disableOffset && "es:mr-1.25", value[0] < 2 && "es:hidden"),
|
|
79
79
|
style: { gridColumn: `1 / span ${Math.max(0, value[0] - 1)}` }
|
|
80
80
|
}),
|
|
81
81
|
jsx("div", {
|
|
82
|
-
className: clsx("es:row-span-1 es:row-start-1 es:
|
|
82
|
+
className: clsx("es:row-span-1 es:row-start-1 es:my-0.5 es:h-6 es:w-fill es:self-center", "es:rounded-l-sm es:rounded-r-xl", "es:transition-plus-m es:duration-300 es:ease-spring-smooth", !flat && !disabled && "es:shadow-xs es:shadow-black/5", !disabled && [
|
|
83
83
|
"es:bg-surface-200",
|
|
84
|
-
"es:bg-linear-to-b es:from-surface-700/0 es:to-surface-700/5
|
|
84
|
+
"es:bg-linear-to-b es:from-surface-700/0 es:from-25% es:to-surface-700/5",
|
|
85
85
|
"es:inset-ring es:inset-ring-surface-300/20"
|
|
86
86
|
], disabled && "es:bg-secondary-200", !disableWidth && "es:ml-1.25", value[1] === columns && "es:hidden"),
|
|
87
87
|
style: { gridColumn: `${value[1] + 1} / span ${columns - value[1]}` }
|
|
88
88
|
}),
|
|
89
89
|
jsx("div", {
|
|
90
|
-
className: clsx("es:pointer-events-none es:col-start-1 es:row-start-1", "es:h-6 es:w-fill es:self-center es:rounded-sm
|
|
91
|
-
"es:bg-accent-500 es:bg-linear-to-b es:from-accent-100/15 es:to-accent-100/0
|
|
90
|
+
className: clsx("es:pointer-events-none es:col-start-1 es:row-start-1", "es:my-0.5 es:h-6 es:w-fill es:self-center es:rounded-sm", "es:transition es:duration-300", !flat && !disabled && "es:shadow-xs es:shadow-black/5", "es:mx-1.25", value[0] === 1 && "es:ml-1.75", value[1] === columns && "es:mr-1.75", !disabled && [
|
|
91
|
+
"es:bg-accent-500 es:bg-linear-to-b es:from-accent-100/15 es:from-25% es:to-accent-100/0",
|
|
92
92
|
"es:inset-ring es:inset-ring-accent-700/10",
|
|
93
93
|
"es:inset-shadow-sm es:inset-shadow-accent-50/30"
|
|
94
94
|
], disabled && "es:bg-secondary-400"),
|
|
95
95
|
style: { gridColumn: `${value[0]} / span ${value[1] - value[0] + 1}` }
|
|
96
96
|
}),
|
|
97
97
|
markerData.map((marker, index) => jsxs("span", {
|
|
98
|
-
className: clsx("es:row-span-1 es:row-start-1 es:
|
|
98
|
+
className: clsx("es:row-span-1 es:row-start-1 es:place-self-center es:select-none", "es:icon:size-2 es:icon:stroke-3", "es:transition es:duration-300 es:ease-spring-smooth", marker >= value[0] - 1 && marker < value[1] ? "es:text-accent-900" : "es:text-surface-400", disabled && "es:opacity-0", !disableOffset && index === 0 && value[0] === 2 && "es:-translate-x-px", !disableWidth && index === columns - 1 && value[1] === columns - 1 && "es:translate-x-px", !disableOffset && index === 0 && value[0] === 1 && "es:scale-50 es:opacity-0", !disableWidth && index === columns - 1 && value[1] === columns && "es:scale-50 es:opacity-0"),
|
|
99
99
|
style: { gridColumn: index + 1 },
|
|
100
100
|
children: [showOuterAsGutter && index === 0 ? chevronLeft : null, showOuterAsGutter && index === columns - 1 ? chevronRight : null]
|
|
101
101
|
}, marker)),
|
|
@@ -114,10 +114,10 @@ var ColumnConfigSlider = (props) => {
|
|
|
114
114
|
index,
|
|
115
115
|
"aria-label": thumbLabels[index],
|
|
116
116
|
isDisabled: index === 0 && disableOffset || index === 1 && disableWidth,
|
|
117
|
-
className: clsx("es:static! es:row-span-1 es:row-start-1 es:h-full es:w-1 es:rounded-md es:transition es:duration-300", "es:origin-center", "es:hover:ring-[0.25px] es:focus-visible:ring-[0.5px] es:dragging:ring-[1px]
|
|
117
|
+
className: clsx("es:static! es:row-span-1 es:row-start-1 es:h-full es:w-1 es:rounded-md es:transition es:duration-300", "es:origin-center", "es:ring-accent-500 es:hover:ring-[0.25px] es:focus-visible:ring-[0.5px] es:dragging:ring-[1px]", "es:transform-none!", "es:disabled:bg-secondary-400 es:dragging:bg-accent-600", "es:outline-offset-2 es:outline-accent-500/40 es:focus-visible:outline-2", "es:bg-accent-500", "es:hover:ring-accent-600", "es:dragging:bg-accent-600 es:dragging:ring-accent-600", !disabled && "es:hover:not-dragging:cursor-grab", index === 0 && disableOffset && "es:hidden", index === 1 && disableWidth && "es:hidden", index === 0 && startValue === 1 && "es:justify-self-start", index === 0 && startValue > 1 && "es:justify-self-center", index === 1 && endValue < columns && "es:justify-self-center", index === 1 && endValue === columns && "es:justify-self-end", !flat && !disabled && "es:shadow-xs es:shadow-black/5"),
|
|
118
118
|
style: { gridColumn },
|
|
119
119
|
children: jsx(AnimatePresence, { children: index === state.focusedThumb ? jsxs(motion.div, {
|
|
120
|
-
className: clsx("es:absolute es:bottom-12 es:w-fit es:min-w-5 es
|
|
120
|
+
className: clsx("es:absolute es:bottom-12 es:h-6 es:w-fit es:min-w-5 es:-translate-x-1/2 es:text-nowrap", "es:bg-surface-50/80 es:text-surface-700", "es:backdrop-blur-xs", "es:text-12 es:leading-none", "es:rounded-lg es:px-2 es:py-1", "es:text-center", "es:line-clamp-1", "es:flex es:items-center es:justify-center es:gap-1", "es:shadow-sm", showOuterAsGutter && "es:icon:size-2 es:icon:stroke-3"),
|
|
121
121
|
initial: {
|
|
122
122
|
y: 2,
|
|
123
123
|
opacity: 0,
|
|
@@ -163,7 +163,7 @@ var ColumnConfigSlider = (props) => {
|
|
|
163
163
|
* <ColumnConfigSliderOutput />
|
|
164
164
|
*/
|
|
165
165
|
var ColumnConfigSliderOutput = ({ showOuterAsGutter }) => jsx($806e559d0c2c64a0$export$a590f758a961cb5b, {
|
|
166
|
-
className: clsx("es:text-xs es:
|
|
166
|
+
className: clsx("es:text-xs es:text-secondary-600 es:tabular-nums"),
|
|
167
167
|
children: ({ state }) => {
|
|
168
168
|
const columns = state.getThumbMaxValue(1);
|
|
169
169
|
const offset = parseInt(state.getThumbValueLabel(0), 10);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as clsx } from "../../clsx-DQoRUQAf.js";
|
|
2
2
|
import { n as $43a3b93638fe5db9$export$b04be29aa201d4f5 } from "../../Label-C4bJkVti.js";
|
|
3
3
|
import { i as $806e559d0c2c64a0$export$472062a354075cee, o as $806e559d0c2c64a0$export$a590f758a961cb5b, r as $806e559d0c2c64a0$export$2c1b491743890dec, t as $806e559d0c2c64a0$export$105594979f116971 } from "../../Slider-Dryu0gH7.js";
|
|
4
|
-
import { t as NumberPicker } from "../../number-picker-
|
|
4
|
+
import { t as NumberPicker } from "../../number-picker-DLLqEAsq.js";
|
|
5
5
|
import { BaseControl } from "../base-control/base-control.js";
|
|
6
6
|
import { t as __ } from "../../build-module-BISCoQjQ.js";
|
|
7
7
|
import { HStack } from "../layout/hstack.js";
|
|
@@ -61,7 +61,7 @@ var Slider = (props) => {
|
|
|
61
61
|
actions: jsxs(Fragment$1, { children: [
|
|
62
62
|
actions,
|
|
63
63
|
!inputField || inputField && isRange ? jsx($806e559d0c2c64a0$export$a590f758a961cb5b, {
|
|
64
|
-
className: "es:text-xs es:
|
|
64
|
+
className: "es:text-xs es:text-secondary-600 es:tabular-nums",
|
|
65
65
|
children: ({ state }) => state.values.map((_, index) => state.getThumbValueLabel(index)).join(" – ")
|
|
66
66
|
}) : null,
|
|
67
67
|
inputField && !isRange ? jsx(NumberPicker, {
|
|
@@ -100,7 +100,7 @@ var Slider = (props) => {
|
|
|
100
100
|
const lastMarkerIndex = markerIndices.at(-1) ?? 0;
|
|
101
101
|
const lastTrackIndex = trackIndices.at(-1) ?? 0;
|
|
102
102
|
return jsxs("div", {
|
|
103
|
-
className: clsx("es:grid", trackBgGradientSupport && "es:@container", vertical && "es:justify-items-center
|
|
103
|
+
className: clsx("es:grid", trackBgGradientSupport && "es:@container", vertical && "es:h-full es:justify-items-center", !vertical && "es:items-center"),
|
|
104
104
|
style: {
|
|
105
105
|
gridTemplateColumns: vertical ? "1fr" : gridTemplate.join(" "),
|
|
106
106
|
gridTemplateRows: vertical ? gridTemplate.join(" ") : "1fr",
|
|
@@ -108,7 +108,7 @@ var Slider = (props) => {
|
|
|
108
108
|
},
|
|
109
109
|
children: [
|
|
110
110
|
markers ? jsx("div", {
|
|
111
|
-
className: clsx("es:flex es:justify-between", !vertical && ["es:w-fill es:self-center", "es:row-1 es:mx-0.75"], vertical && ["es:h-fill es:flex
|
|
111
|
+
className: clsx("es:flex es:justify-between", !vertical && ["es:w-fill es:self-center", "es:row-1 es:mx-0.75"], vertical && ["es:flex es:h-fill es:flex-col es:justify-self-center", "es:col-1 es:my-0.75"]),
|
|
112
112
|
style: {
|
|
113
113
|
gridColumn: vertical ? void 0 : `1 / span ${gridTemplate.length}`,
|
|
114
114
|
gridRow: vertical ? `1 / span ${gridTemplate.length}` : void 0
|
|
@@ -124,7 +124,7 @@ var Slider = (props) => {
|
|
|
124
124
|
return jsx("div", {
|
|
125
125
|
className: clsx("es:relative", "es:size-0.75 es:place-self-center es:rounded-2xl", !disabled && isWithinActiveBar && "es:bg-accent-50", !disabled && !isWithinActiveBar && "es:bg-surface-500", disabled && isWithinActiveBar && "es:bg-secondary-300", disabled && !isWithinActiveBar && "es:bg-secondary-400", stateValues.includes(dotValue) && "es:opacity-0"),
|
|
126
126
|
children: jsx("span", {
|
|
127
|
-
className: clsx("es:absolute es:transition", !vertical && "es:top-5 es:-translate-x-1/4 es:-rotate-90 es:text-end", vertical && "es:left-5 es:-translate-y-1/4 es:text-start", "es:
|
|
127
|
+
className: clsx("es:absolute es:transition", !vertical && "es:top-5 es:-translate-x-1/4 es:-rotate-90 es:text-end", vertical && "es:left-5 es:-translate-y-1/4 es:text-start", "es:text-10 es:tracking-wide es:tabular-nums es:select-none", isWithinActiveBar ? "es:text-surface-400" : "es:text-surface-300", disabled && "es:opacity-0"),
|
|
128
128
|
children: markers && markers !== "dots" ? labelData : null
|
|
129
129
|
})
|
|
130
130
|
}, index);
|
|
@@ -135,13 +135,13 @@ var Slider = (props) => {
|
|
|
135
135
|
onHoverStart: () => setHoveredThumbs((previous) => [...previous, index]),
|
|
136
136
|
onHoverEnd: () => setHoveredThumbs((previous) => previous.filter((entry) => entry !== index)),
|
|
137
137
|
"aria-label": thumbLabels?.[index],
|
|
138
|
-
className: clsx(!vertical && ["es:h-10 es:w-0.75", "es:row-1"], vertical && ["es:
|
|
138
|
+
className: clsx(!vertical && ["es:h-10 es:w-0.75", "es:row-1"], vertical && ["es:h-0.75 es:w-10", "es:col-1"], "es:z-20", "es:static! es:rounded-md es:transition es:duration-300", "es:origin-center", "es:ring-accent-500 es:hover:ring-[0.25px] es:focus-visible:ring-[0.5px] es:dragging:ring-[1px]", "es:transform-none!", "es:disabled:bg-secondary-400 es:dragging:bg-accent-600", "es:outline-offset-2 es:outline-accent-500/40 es:focus-visible:outline-2", "es:bg-accent-500", "es:hover:ring-accent-600", "es:dragging:bg-accent-600 es:dragging:ring-accent-600", !disabled && "es:hover:not-dragging:cursor-grab", "es:justify-self-center", !flat && !disabled && "es:shadow-xs es:shadow-black/5"),
|
|
139
139
|
style: {
|
|
140
140
|
gridColumn: vertical ? void 0 : markerIndices[index],
|
|
141
141
|
gridRow: vertical ? markerIndices[index] : void 0
|
|
142
142
|
},
|
|
143
143
|
children: [thumbContent ? thumbContent(index) : null, jsx(AnimatePresence, { children: state.focusedThumb === index || hoveredThumbs.includes(index) ? jsx(motion.div, {
|
|
144
|
-
className: clsx("es:absolute es:
|
|
144
|
+
className: clsx("es:absolute es:h-6 es:w-fit es:min-w-5 es:text-nowrap", !vertical && "es:bottom-12 es:-translate-x-1/2", vertical && "es:left-12 es:-translate-y-1/2", "es:bg-surface-50/80 es:text-surface-700", "es:backdrop-blur-xs", "es:text-12 es:leading-none", "es:rounded-lg es:px-2 es:py-1", "es:text-center", "es:line-clamp-1", "es:flex es:items-center es:justify-center es:gap-1", "es:shadow-sm", "es:icon:size-2 es:icon:stroke-3"),
|
|
145
145
|
initial: {
|
|
146
146
|
y: 2,
|
|
147
147
|
opacity: 0,
|
|
@@ -191,7 +191,7 @@ var Slider = (props) => {
|
|
|
191
191
|
const cellPosition = index + 1;
|
|
192
192
|
return jsx("div", {
|
|
193
193
|
className: clsx("es:rounded-sm", "es:transition es:duration-300 es:ease-spring-smooth", !flat && !disabled && "es:shadow-xs es:shadow-black/5", !vertical && [
|
|
194
|
-
"es:
|
|
194
|
+
"es:row-1 es:h-6",
|
|
195
195
|
index === 0 && "es:rounded-l-xl",
|
|
196
196
|
index === gridTemplate.length - 1 && "es:rounded-r-xl",
|
|
197
197
|
!isRange && [startPoint === null && [firstStateValue > min && index < firstMarkerIndex && activeStyle, index > firstMarkerIndex && inactiveStyle], startPoint !== null && [
|
|
@@ -202,7 +202,7 @@ var Slider = (props) => {
|
|
|
202
202
|
]],
|
|
203
203
|
isRange && [index > firstMarkerIndex && index < lastMarkerIndex && activeStyle, (index < firstMarkerIndex || index > lastMarkerIndex) && inactiveStyle]
|
|
204
204
|
], vertical && [
|
|
205
|
-
"es:
|
|
205
|
+
"es:col-1 es:w-6",
|
|
206
206
|
index === 0 && "es:rounded-t-xl",
|
|
207
207
|
index === gridTemplate.length - 1 && "es:rounded-b-xl",
|
|
208
208
|
!isRange && [startPoint === null && [firstStateValue > min && index > firstMarkerIndex && activeStyle, index < lastMarkerIndex && inactiveStyle], startPoint !== null && [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as clsx } from "../../clsx-DQoRUQAf.js";
|
|
2
|
-
import { t as DecorativeTooltip } from "../../tooltip-
|
|
2
|
+
import { t as DecorativeTooltip } from "../../tooltip-Dxr7aiIX.js";
|
|
3
3
|
import { cyrb64Hash } from "../../utilities/hash.js";
|
|
4
4
|
import { t as __ } from "../../build-module-BISCoQjQ.js";
|
|
5
5
|
import { imageError } from "../../icons/ui-icons/image-error.js";
|
|
@@ -255,7 +255,7 @@ var SmartImage = (props) => {
|
|
|
255
255
|
if (error === "failedToFetch") {
|
|
256
256
|
const hasCustomErrorRenderer = isChildrenRenderer(children);
|
|
257
257
|
return jsxs("div", {
|
|
258
|
-
className: clsx(!hasCustomErrorRenderer && "es:flex es:flex-col es:
|
|
258
|
+
className: clsx(!hasCustomErrorRenderer && "es:flex es:flex-col es:items-center-safe es:justify-center es:gap-2 es:p-2", "es:motion-preset-fade", errorClassName),
|
|
259
259
|
children: [!hasCustomErrorRenderer && jsx(DecorativeTooltip, {
|
|
260
260
|
text: __("Error loading image", "eightshift-ui-components"),
|
|
261
261
|
children: cloneElement(imageError, { className: "es:text-surface-600 es:size-8" })
|
|
@@ -270,7 +270,7 @@ var SmartImage = (props) => {
|
|
|
270
270
|
averageColor: null,
|
|
271
271
|
hasError: true,
|
|
272
272
|
errorBadge: jsx("div", {
|
|
273
|
-
className: "es:size-full es:
|
|
273
|
+
className: "es:flex es:size-full es:items-center es:justify-center",
|
|
274
274
|
children: jsx(DecorativeTooltip, {
|
|
275
275
|
text: __("Error loading image", "eightshift-ui-components"),
|
|
276
276
|
children: cloneElement(imageError, { className: "es:text-surface-600 es:size-8" })
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as Tabs, n as TabList, r as TabPanel, t as Tab } from "../../tabs-
|
|
1
|
+
import { i as Tabs, n as TabList, r as TabPanel, t as Tab } from "../../tabs-ORp17BEr.js";
|
|
2
2
|
export { Tab, TabList, TabPanel, Tabs };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Switch } from "../../switch-
|
|
1
|
+
import { t as Switch } from "../../switch-CfgDFjqQ.js";
|
|
2
2
|
export { Switch };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as clsx } from "../../clsx-DQoRUQAf.js";
|
|
2
2
|
import { n as $43a3b93638fe5db9$export$b04be29aa201d4f5 } from "../../Label-C4bJkVti.js";
|
|
3
|
-
import { t as Switch } from "../../switch-
|
|
3
|
+
import { t as Switch } from "../../switch-CfgDFjqQ.js";
|
|
4
4
|
import { RichLabel } from "../rich-label/rich-label.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as ToggleButton } from "../../toggle-button-
|
|
1
|
+
import { t as ToggleButton } from "../../toggle-button-B0nKYFlk.js";
|
|
2
2
|
export { ToggleButton };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as Tooltip, t as DecorativeTooltip } from "../../tooltip-
|
|
1
|
+
import { n as Tooltip, t as DecorativeTooltip } from "../../tooltip-Dxr7aiIX.js";
|
|
2
2
|
export { DecorativeTooltip, Tooltip };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as clsx } from "./clsx-DQoRUQAf.js";
|
|
2
|
-
import { t as SolidColorPicker } from "./solid-color-picker-
|
|
3
|
-
import { t as ColorSwatch } from "./color-swatch-
|
|
4
|
-
import { t as NumberPicker } from "./number-picker-
|
|
5
|
-
import { n as ButtonGroup, t as Button } from "./button-
|
|
2
|
+
import { t as SolidColorPicker } from "./solid-color-picker-1QabIOpX.js";
|
|
3
|
+
import { t as ColorSwatch } from "./color-swatch-BstCWUIZ.js";
|
|
4
|
+
import { t as NumberPicker } from "./number-picker-DLLqEAsq.js";
|
|
5
|
+
import { n as ButtonGroup, t as Button } from "./button-CCtgOh0o.js";
|
|
6
6
|
import { BaseControl } from "./components/base-control/base-control.js";
|
|
7
7
|
import { isColorDark } from "./utilities/general.js";
|
|
8
8
|
import { t as sprintf } from "./sprintf-xJRAt4p0.js";
|
|
@@ -1231,17 +1231,17 @@ var gradientTypes = [
|
|
|
1231
1231
|
{
|
|
1232
1232
|
label: __("Linear"),
|
|
1233
1233
|
value: "linear",
|
|
1234
|
-
icon: jsx("div", { className: "es:
|
|
1234
|
+
icon: jsx("div", { className: "es:size-4 es:rounded-full es:bg-linear-to-br es:from-current" })
|
|
1235
1235
|
},
|
|
1236
1236
|
{
|
|
1237
1237
|
label: __("Radial"),
|
|
1238
1238
|
value: "radial",
|
|
1239
|
-
icon: jsx("div", { className: "es:
|
|
1239
|
+
icon: jsx("div", { className: "es:size-4 es:rounded-full es:bg-radial es:from-current/75 es:to-current/10" })
|
|
1240
1240
|
},
|
|
1241
1241
|
{
|
|
1242
1242
|
label: __("Conic"),
|
|
1243
1243
|
value: "conic",
|
|
1244
|
-
icon: jsx("div", { className: "es:
|
|
1244
|
+
icon: jsx("div", { className: "es:size-4 es:rounded-full es:bg-conic es:from-current" })
|
|
1245
1245
|
}
|
|
1246
1246
|
];
|
|
1247
1247
|
var linearDirections = [
|
|
@@ -1372,7 +1372,7 @@ var GradientEditor = (props) => {
|
|
|
1372
1372
|
className: "es:w-full es:space-y-2.5",
|
|
1373
1373
|
children: [
|
|
1374
1374
|
jsx(TypedContainerGroup, { children: jsxs(TypedContainer, { children: [jsx("button", {
|
|
1375
|
-
className: clsx("es:
|
|
1375
|
+
className: clsx("es:mx-auto es:block es:h-40 es:rounded-lg es:border es:border-secondary-300 es:shadow-sm es:transition-[width] es:duration-300 es:ease-spring-snappy", "es:mb-2", squarePreview ? "es:w-40" : "es:w-full"),
|
|
1376
1376
|
style: { backgroundImage: outputGradient },
|
|
1377
1377
|
onClick: () => setSquarePreview((previousValue) => !previousValue),
|
|
1378
1378
|
"aria-label": __("Toggle preview size", "eightshift-ui-components")
|
|
@@ -1405,7 +1405,7 @@ var GradientEditor = (props) => {
|
|
|
1405
1405
|
let foregroundColor = "black";
|
|
1406
1406
|
if (colorData.alpha >= .5 && isColorDark(colorData.r, colorData.g, colorData.b)) foregroundColor = "white";
|
|
1407
1407
|
return jsx("div", {
|
|
1408
|
-
className: "es:pointer-events-none es:absolute es:-bottom-4.5 es:-translate-x-1/3 es:
|
|
1408
|
+
className: "es:pointer-events-none es:absolute es:-bottom-4.5 es:flex es:w-3 es:-translate-x-1/3 es:items-center es:justify-center es:rounded-sm es:py-px es:text-center es:font-mono es:text-12 es:leading-none es:font-semibold es:tabular-nums es:ring es:ring-accent-600",
|
|
1409
1409
|
style: {
|
|
1410
1410
|
backgroundColor: stops[index]?.color,
|
|
1411
1411
|
color: foregroundColor
|
package/dist/icons/spinner.js
CHANGED
|
@@ -12,6 +12,6 @@ import { jsx } from "react/jsx-runtime";
|
|
|
12
12
|
* @example
|
|
13
13
|
* <Spinner />
|
|
14
14
|
*/
|
|
15
|
-
var Spinner = ({ className }) => jsx("div", { className: clsx("es:animate-spin es:anim-duration-1000", "es:
|
|
15
|
+
var Spinner = ({ className }) => jsx("div", { className: clsx("es:animate-spin es:anim-duration-1000", "es:size-8 es:rounded-full es:text-accent-600 es:spinner-5", className) });
|
|
16
16
|
//#endregion
|
|
17
17
|
export { Spinner };
|