@clickhouse/click-ui 0.0.139 → 0.0.141
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/click-ui.es.js
CHANGED
|
@@ -3161,7 +3161,7 @@ const Button$2 = styled.button.withConfig({
|
|
|
3161
3161
|
cursor: not-allowed;
|
|
3162
3162
|
}
|
|
3163
3163
|
`);
|
|
3164
|
-
const FormFieldLabel = styled.label.withConfig({
|
|
3164
|
+
const FormFieldLabel$1 = styled.label.withConfig({
|
|
3165
3165
|
componentId: "sc-1gg29zb-0"
|
|
3166
3166
|
})(["", ""], ({
|
|
3167
3167
|
theme: theme2,
|
|
@@ -3192,7 +3192,34 @@ const Label$1 = ({
|
|
|
3192
3192
|
error: error2,
|
|
3193
3193
|
children,
|
|
3194
3194
|
...props
|
|
3195
|
-
}) => /* @__PURE__ */ jsxRuntimeExports.jsx(FormFieldLabel, { disabled, $error: error2, ...props, children });
|
|
3195
|
+
}) => /* @__PURE__ */ jsxRuntimeExports.jsx(FormFieldLabel$1, { disabled, $error: error2, ...props, children });
|
|
3196
|
+
const FormFieldLabel = styled.label.withConfig({
|
|
3197
|
+
componentId: "sc-e2xmgs-0"
|
|
3198
|
+
})(["", ""], ({
|
|
3199
|
+
theme: theme2,
|
|
3200
|
+
disabled
|
|
3201
|
+
}) => `
|
|
3202
|
+
${disabled ? `
|
|
3203
|
+
color: ${theme2.click.field.color.genericLabel.disabled};
|
|
3204
|
+
font: ${theme2.click.field.typography.genericLabel.disabled};
|
|
3205
|
+
` : `
|
|
3206
|
+
color: ${theme2.click.field.color.genericLabel.default};
|
|
3207
|
+
font: ${theme2.click.field.typography.genericLabel.default};
|
|
3208
|
+
&:hover {
|
|
3209
|
+
color: ${theme2.click.field.color.genericLabel.hover};
|
|
3210
|
+
font: ${theme2.click.field.typography.genericLabel.hover};
|
|
3211
|
+
}
|
|
3212
|
+
&:focus, &:focus-within {
|
|
3213
|
+
color: ${theme2.click.field.color.genericLabel.active};
|
|
3214
|
+
font: ${theme2.click.field.typography.genericLabel.active};
|
|
3215
|
+
}
|
|
3216
|
+
`};
|
|
3217
|
+
`);
|
|
3218
|
+
const GenericLabel = ({
|
|
3219
|
+
disabled,
|
|
3220
|
+
children,
|
|
3221
|
+
...props
|
|
3222
|
+
}) => /* @__PURE__ */ jsxRuntimeExports.jsx(FormFieldLabel, { disabled, ...props, children });
|
|
3196
3223
|
function _extends$1() {
|
|
3197
3224
|
_extends$1 = Object.assign ? Object.assign.bind() : function(target) {
|
|
3198
3225
|
for (var i = 1; i < arguments.length; i++) {
|
|
@@ -10693,7 +10720,7 @@ const $e698a72e93240346$export$be92b6f5f03c0fe9 = $e698a72e93240346$export$48513
|
|
|
10693
10720
|
const $e698a72e93240346$export$adb584737d712b70 = $e698a72e93240346$export$59aad738f51d1c05;
|
|
10694
10721
|
const Wrapper$6 = styled(FormRoot).withConfig({
|
|
10695
10722
|
componentId: "sc-1sck1ja-0"
|
|
10696
|
-
})(["max-width:fit-content;"]);
|
|
10723
|
+
})(["align-items:center;max-width:fit-content;"]);
|
|
10697
10724
|
const Checkbox = ({
|
|
10698
10725
|
id,
|
|
10699
10726
|
label,
|
|
@@ -10704,8 +10731,8 @@ const Checkbox = ({
|
|
|
10704
10731
|
}) => {
|
|
10705
10732
|
const defaultId = useId();
|
|
10706
10733
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Wrapper$6, { $orientation: orientation ?? "horizontal", $dir: dir ?? "end", children: [
|
|
10707
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(CheckInput, { id: id ?? defaultId, "data-testid": "checkbox", disabled, ...delegated, children: /* @__PURE__ */ jsxRuntimeExports.jsx(CheckIconWrapper, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgImage, { name: "check", size: "sm" }) }) }),
|
|
10708
|
-
label && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
10734
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(CheckInput, { id: id ?? defaultId, "data-testid": "checkbox", disabled, "aria-label": `${label}`, ...delegated, children: /* @__PURE__ */ jsxRuntimeExports.jsx(CheckIconWrapper, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgImage, { name: "check", size: "sm" }) }) }),
|
|
10735
|
+
label && /* @__PURE__ */ jsxRuntimeExports.jsx(GenericLabel, { htmlFor: id ?? defaultId, disabled, children: label })
|
|
10709
10736
|
] });
|
|
10710
10737
|
};
|
|
10711
10738
|
const CheckInput = styled($e698a72e93240346$export$be92b6f5f03c0fe9).withConfig({
|
|
@@ -32656,7 +32683,7 @@ const Pagination = ({
|
|
|
32656
32683
|
] }),
|
|
32657
32684
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(Container, { gap: "xxs", fillWidth: false, children: [
|
|
32658
32685
|
/* @__PURE__ */ jsxRuntimeExports.jsx(IconButton$1, { icon: "chevron-left", type: "ghost", disabled: leftButtonDisabled, onClick: onPrevClick, "data-testid": "prev-btn" }),
|
|
32659
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Container, { maxWidth: "50px", fillWidth: false, children: /* @__PURE__ */ jsxRuntimeExports.jsx(NumberField, { ref: inputRef, onChange, value: currentPage, loading: false, onKeyDown, min: 1, max: totalPages, onFocus: onPageNumberFocus, hideControls: true, onBlur: onPageNumberBlur, disabled: leftButtonDisabled && rightButtonDisabled }) }),
|
|
32686
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Container, { maxWidth: "50px", fillWidth: false, children: /* @__PURE__ */ jsxRuntimeExports.jsx(NumberField, { ref: inputRef, onChange, value: currentPage, loading: false, onKeyDown, "aria-label": currentPage.toString(), min: 1, max: totalPages, onFocus: onPageNumberFocus, hideControls: true, onBlur: onPageNumberBlur, disabled: leftButtonDisabled && rightButtonDisabled }) }),
|
|
32660
32687
|
!!totalPages && /* @__PURE__ */ jsxRuntimeExports.jsxs(Text, { component: "div", color: "muted", size: "sm", children: [
|
|
32661
32688
|
"of ",
|
|
32662
32689
|
formatNumber(totalPages)
|
|
@@ -33019,8 +33046,8 @@ const RadioGroupItem = ({
|
|
|
33019
33046
|
}) => {
|
|
33020
33047
|
const defaultId = useId();
|
|
33021
33048
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Wrapper$1, { $orientation: "horizontal", $dir: "end", $addLabelPadding: false, ...props, children: [
|
|
33022
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(RadioInput, { value, id: id ?? defaultId, disabled, required, children: /* @__PURE__ */ jsxRuntimeExports.jsx(RadioGroupIndicator, {}) }),
|
|
33023
|
-
label && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
33049
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(RadioInput, { value, id: id ?? defaultId, disabled, required, "aria-label": `${label}`, children: /* @__PURE__ */ jsxRuntimeExports.jsx(RadioGroupIndicator, {}) }),
|
|
33050
|
+
label && /* @__PURE__ */ jsxRuntimeExports.jsx(GenericLabel, { htmlFor: id ?? defaultId, disabled, children: label })
|
|
33024
33051
|
] });
|
|
33025
33052
|
};
|
|
33026
33053
|
RadioGroupItem.displayName = "RadioGroupItem";
|
|
@@ -37447,7 +37474,7 @@ const CollapsipleTrigger = ({
|
|
|
37447
37474
|
}
|
|
37448
37475
|
onOpenChange();
|
|
37449
37476
|
};
|
|
37450
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(CollapsipleTriggerButton, { onClick, $indicatorDir: indicatorDir, ...props, children: [
|
|
37477
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(CollapsipleTriggerButton, { onClick, $indicatorDir: indicatorDir, "aria-label": "trigger children", ...props, children: [
|
|
37451
37478
|
indicatorDir === "start" && /* @__PURE__ */ jsxRuntimeExports.jsx(SvgImage, { "data-trigger-icon": true, name: "chevron-right", "data-open": open2.toString(), size: "sm" }),
|
|
37452
37479
|
children && /* @__PURE__ */ jsxRuntimeExports.jsx(IconWrapper, { icon, iconDir, children }),
|
|
37453
37480
|
indicatorDir === "end" && /* @__PURE__ */ jsxRuntimeExports.jsx(SvgImage, { "data-trigger-icon": true, name: "chevron-right", "data-open": open2.toString(), size: "sm" })
|
|
@@ -37816,7 +37843,7 @@ const $6be4966fd9bbc698$export$be92b6f5f03c0fe9 = $6be4966fd9bbc698$export$b5d5c
|
|
|
37816
37843
|
const $6be4966fd9bbc698$export$6521433ed15a34db = $6be4966fd9bbc698$export$4d07bf653ea69106;
|
|
37817
37844
|
const Wrapper = styled(FormRoot).withConfig({
|
|
37818
37845
|
componentId: "sc-egkkgl-0"
|
|
37819
|
-
})(["max-width:fit-content;"]);
|
|
37846
|
+
})(["align-items:center;max-width:fit-content;"]);
|
|
37820
37847
|
const Switch = forwardRef(({
|
|
37821
37848
|
checked,
|
|
37822
37849
|
disabled,
|
|
@@ -37828,8 +37855,8 @@ const Switch = forwardRef(({
|
|
|
37828
37855
|
}, ref) => {
|
|
37829
37856
|
const defaultId = useId();
|
|
37830
37857
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Wrapper, { $orientation: orientation, $dir: dir, children: [
|
|
37831
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(SwitchRoot, { ref, id: id ?? defaultId, disabled, checked, ...props, children: /* @__PURE__ */ jsxRuntimeExports.jsx(SwitchThumb, { $checked: checked }) }),
|
|
37832
|
-
label && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
37858
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(SwitchRoot, { ref, id: id ?? defaultId, disabled, "aria-label": `${label}`, checked, ...props, children: /* @__PURE__ */ jsxRuntimeExports.jsx(SwitchThumb, { $checked: checked }) }),
|
|
37859
|
+
label && /* @__PURE__ */ jsxRuntimeExports.jsx(GenericLabel, { htmlFor: id ?? defaultId, disabled, children: label })
|
|
37833
37860
|
] });
|
|
37834
37861
|
});
|
|
37835
37862
|
const getRootVars = (theme2, disabled, checked) => {
|
|
@@ -38131,7 +38158,7 @@ const FileTabs = ({
|
|
|
38131
38158
|
ref.current.scrollLeft += evt.deltaY;
|
|
38132
38159
|
}
|
|
38133
38160
|
};
|
|
38134
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(TabContext.Provider, { value, children: /* @__PURE__ */ jsxRuntimeExports.jsx(TabsContainer, { ref, onWheel, onScroll: (e) => {
|
|
38161
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(TabContext.Provider, { value, children: /* @__PURE__ */ jsxRuntimeExports.jsx(TabsContainer, { ref, onWheel, role: "tablist", onScroll: (e) => {
|
|
38135
38162
|
e.preventDefault();
|
|
38136
38163
|
e.stopPropagation();
|
|
38137
38164
|
}, $count: (listProp ?? list).length, children: /* @__PURE__ */ jsxRuntimeExports.jsx(TabsSortableContainer, { as: distExports.ReactSortable, direction: direction ?? "horizontal", group: group ?? "tabbar", list: listProp ?? list, setList: setListProp ?? setList, onEnd: (evt, sortable, store) => {
|
|
@@ -38145,7 +38172,7 @@ const FileTabs = ({
|
|
|
38145
38172
|
if (typeof onEnd === "function") {
|
|
38146
38173
|
onEnd(evt, sortable, store);
|
|
38147
38174
|
}
|
|
38148
|
-
}, revertOnSpill: true, ...props, children: Children.map(children, (child, index2) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { tabIndex: index2, role: "tab", onClick: onSelect(index2), children: child }, `tab-element-${index2}`)) }) }) });
|
|
38175
|
+
}, revertOnSpill: true, ...props, children: Children.map(children, (child, index2) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { tabIndex: index2 + 1, role: "tab", onClick: onSelect(index2), children: child }, `tab-element-${index2}`)) }) }) });
|
|
38149
38176
|
};
|
|
38150
38177
|
const TabElement = styled.div.withConfig({
|
|
38151
38178
|
componentId: "sc-137ymle-2"
|
|
@@ -38325,12 +38352,12 @@ const Thead = ({
|
|
|
38325
38352
|
actionsList.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("col", { width: (actionsList.length + 1) * 32 + 10 })
|
|
38326
38353
|
] }),
|
|
38327
38354
|
/* @__PURE__ */ jsxRuntimeExports.jsx(StyledThead, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs("tr", { children: [
|
|
38328
|
-
isSelectable && /* @__PURE__ */ jsxRuntimeExports.jsx(StyledHeader, { $size: size2, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Checkbox, { onCheckedChange: onSelectAll, disabled: !hasRows }) }),
|
|
38355
|
+
isSelectable && /* @__PURE__ */ jsxRuntimeExports.jsx(StyledHeader, { $size: size2, "aria-label": "Select column", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Checkbox, { onCheckedChange: onSelectAll, disabled: !hasRows }) }),
|
|
38329
38356
|
headers.map(({
|
|
38330
38357
|
width,
|
|
38331
38358
|
...headerProps
|
|
38332
38359
|
}, index2) => /* @__PURE__ */ jsxRuntimeExports.jsx(TableHeader, { onSort: onSort(headerProps, index2), size: size2, ...headerProps }, `table-header-${index2}-${width}`)),
|
|
38333
|
-
actionsList.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(StyledHeader, { $size: size2 })
|
|
38360
|
+
actionsList.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(StyledHeader, { "aria-label": "Actions", $size: size2 })
|
|
38334
38361
|
] }) })
|
|
38335
38362
|
] });
|
|
38336
38363
|
};
|
|
@@ -41843,9 +41870,9 @@ const click$2 = {
|
|
|
41843
41870
|
avatar: {
|
|
41844
41871
|
color: {
|
|
41845
41872
|
background: {
|
|
41846
|
-
"default": "#
|
|
41847
|
-
hover: "#
|
|
41848
|
-
active: "#
|
|
41873
|
+
"default": "#808691",
|
|
41874
|
+
hover: "#b3b6bd",
|
|
41875
|
+
active: "#b3b6bd"
|
|
41849
41876
|
},
|
|
41850
41877
|
text: {
|
|
41851
41878
|
"default": "#1F1F1C",
|
|
@@ -42887,8 +42914,8 @@ const click$2 = {
|
|
|
42887
42914
|
color: {
|
|
42888
42915
|
background: {
|
|
42889
42916
|
"default": "#1F1F1C",
|
|
42890
|
-
hover: "
|
|
42891
|
-
active: "lch(
|
|
42917
|
+
hover: "lch(15.8 0 0)",
|
|
42918
|
+
active: "lch(17.9 0 0)"
|
|
42892
42919
|
},
|
|
42893
42920
|
stroke: {
|
|
42894
42921
|
"default": "#323232"
|
|
@@ -48080,6 +48107,7 @@ export {
|
|
|
48080
48107
|
Flyout,
|
|
48081
48108
|
FormContainer,
|
|
48082
48109
|
FullWidthTabs,
|
|
48110
|
+
GenericLabel,
|
|
48083
48111
|
Grid,
|
|
48084
48112
|
GridContainer$1 as GridContainer,
|
|
48085
48113
|
HoverCard,
|
package/dist/click-ui.umd.js
CHANGED
|
@@ -3178,7 +3178,7 @@ var __publicField = (obj, key, value) => {
|
|
|
3178
3178
|
cursor: not-allowed;
|
|
3179
3179
|
}
|
|
3180
3180
|
`);
|
|
3181
|
-
const FormFieldLabel = styled.label.withConfig({
|
|
3181
|
+
const FormFieldLabel$1 = styled.label.withConfig({
|
|
3182
3182
|
componentId: "sc-1gg29zb-0"
|
|
3183
3183
|
})(["", ""], ({
|
|
3184
3184
|
theme: theme2,
|
|
@@ -3209,7 +3209,34 @@ var __publicField = (obj, key, value) => {
|
|
|
3209
3209
|
error: error2,
|
|
3210
3210
|
children,
|
|
3211
3211
|
...props
|
|
3212
|
-
}) => /* @__PURE__ */ jsxRuntimeExports.jsx(FormFieldLabel, { disabled, $error: error2, ...props, children });
|
|
3212
|
+
}) => /* @__PURE__ */ jsxRuntimeExports.jsx(FormFieldLabel$1, { disabled, $error: error2, ...props, children });
|
|
3213
|
+
const FormFieldLabel = styled.label.withConfig({
|
|
3214
|
+
componentId: "sc-e2xmgs-0"
|
|
3215
|
+
})(["", ""], ({
|
|
3216
|
+
theme: theme2,
|
|
3217
|
+
disabled
|
|
3218
|
+
}) => `
|
|
3219
|
+
${disabled ? `
|
|
3220
|
+
color: ${theme2.click.field.color.genericLabel.disabled};
|
|
3221
|
+
font: ${theme2.click.field.typography.genericLabel.disabled};
|
|
3222
|
+
` : `
|
|
3223
|
+
color: ${theme2.click.field.color.genericLabel.default};
|
|
3224
|
+
font: ${theme2.click.field.typography.genericLabel.default};
|
|
3225
|
+
&:hover {
|
|
3226
|
+
color: ${theme2.click.field.color.genericLabel.hover};
|
|
3227
|
+
font: ${theme2.click.field.typography.genericLabel.hover};
|
|
3228
|
+
}
|
|
3229
|
+
&:focus, &:focus-within {
|
|
3230
|
+
color: ${theme2.click.field.color.genericLabel.active};
|
|
3231
|
+
font: ${theme2.click.field.typography.genericLabel.active};
|
|
3232
|
+
}
|
|
3233
|
+
`};
|
|
3234
|
+
`);
|
|
3235
|
+
const GenericLabel = ({
|
|
3236
|
+
disabled,
|
|
3237
|
+
children,
|
|
3238
|
+
...props
|
|
3239
|
+
}) => /* @__PURE__ */ jsxRuntimeExports.jsx(FormFieldLabel, { disabled, ...props, children });
|
|
3213
3240
|
function _extends$1() {
|
|
3214
3241
|
_extends$1 = Object.assign ? Object.assign.bind() : function(target) {
|
|
3215
3242
|
for (var i = 1; i < arguments.length; i++) {
|
|
@@ -10710,7 +10737,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10710
10737
|
const $e698a72e93240346$export$adb584737d712b70 = $e698a72e93240346$export$59aad738f51d1c05;
|
|
10711
10738
|
const Wrapper$6 = styled(FormRoot).withConfig({
|
|
10712
10739
|
componentId: "sc-1sck1ja-0"
|
|
10713
|
-
})(["max-width:fit-content;"]);
|
|
10740
|
+
})(["align-items:center;max-width:fit-content;"]);
|
|
10714
10741
|
const Checkbox = ({
|
|
10715
10742
|
id,
|
|
10716
10743
|
label,
|
|
@@ -10721,8 +10748,8 @@ var __publicField = (obj, key, value) => {
|
|
|
10721
10748
|
}) => {
|
|
10722
10749
|
const defaultId = React.useId();
|
|
10723
10750
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Wrapper$6, { $orientation: orientation ?? "horizontal", $dir: dir ?? "end", children: [
|
|
10724
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(CheckInput, { id: id ?? defaultId, "data-testid": "checkbox", disabled, ...delegated, children: /* @__PURE__ */ jsxRuntimeExports.jsx(CheckIconWrapper, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgImage, { name: "check", size: "sm" }) }) }),
|
|
10725
|
-
label && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
10751
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(CheckInput, { id: id ?? defaultId, "data-testid": "checkbox", disabled, "aria-label": `${label}`, ...delegated, children: /* @__PURE__ */ jsxRuntimeExports.jsx(CheckIconWrapper, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgImage, { name: "check", size: "sm" }) }) }),
|
|
10752
|
+
label && /* @__PURE__ */ jsxRuntimeExports.jsx(GenericLabel, { htmlFor: id ?? defaultId, disabled, children: label })
|
|
10726
10753
|
] });
|
|
10727
10754
|
};
|
|
10728
10755
|
const CheckInput = styled($e698a72e93240346$export$be92b6f5f03c0fe9).withConfig({
|
|
@@ -32673,7 +32700,7 @@ var __publicField = (obj, key, value) => {
|
|
|
32673
32700
|
] }),
|
|
32674
32701
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(Container, { gap: "xxs", fillWidth: false, children: [
|
|
32675
32702
|
/* @__PURE__ */ jsxRuntimeExports.jsx(IconButton$1, { icon: "chevron-left", type: "ghost", disabled: leftButtonDisabled, onClick: onPrevClick, "data-testid": "prev-btn" }),
|
|
32676
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Container, { maxWidth: "50px", fillWidth: false, children: /* @__PURE__ */ jsxRuntimeExports.jsx(NumberField, { ref: inputRef, onChange, value: currentPage, loading: false, onKeyDown, min: 1, max: totalPages, onFocus: onPageNumberFocus, hideControls: true, onBlur: onPageNumberBlur, disabled: leftButtonDisabled && rightButtonDisabled }) }),
|
|
32703
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Container, { maxWidth: "50px", fillWidth: false, children: /* @__PURE__ */ jsxRuntimeExports.jsx(NumberField, { ref: inputRef, onChange, value: currentPage, loading: false, onKeyDown, "aria-label": currentPage.toString(), min: 1, max: totalPages, onFocus: onPageNumberFocus, hideControls: true, onBlur: onPageNumberBlur, disabled: leftButtonDisabled && rightButtonDisabled }) }),
|
|
32677
32704
|
!!totalPages && /* @__PURE__ */ jsxRuntimeExports.jsxs(Text, { component: "div", color: "muted", size: "sm", children: [
|
|
32678
32705
|
"of ",
|
|
32679
32706
|
formatNumber(totalPages)
|
|
@@ -33036,8 +33063,8 @@ var __publicField = (obj, key, value) => {
|
|
|
33036
33063
|
}) => {
|
|
33037
33064
|
const defaultId = React.useId();
|
|
33038
33065
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Wrapper$1, { $orientation: "horizontal", $dir: "end", $addLabelPadding: false, ...props, children: [
|
|
33039
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(RadioInput, { value, id: id ?? defaultId, disabled, required, children: /* @__PURE__ */ jsxRuntimeExports.jsx(RadioGroupIndicator, {}) }),
|
|
33040
|
-
label && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
33066
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(RadioInput, { value, id: id ?? defaultId, disabled, required, "aria-label": `${label}`, children: /* @__PURE__ */ jsxRuntimeExports.jsx(RadioGroupIndicator, {}) }),
|
|
33067
|
+
label && /* @__PURE__ */ jsxRuntimeExports.jsx(GenericLabel, { htmlFor: id ?? defaultId, disabled, children: label })
|
|
33041
33068
|
] });
|
|
33042
33069
|
};
|
|
33043
33070
|
RadioGroupItem.displayName = "RadioGroupItem";
|
|
@@ -37464,7 +37491,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
37464
37491
|
}
|
|
37465
37492
|
onOpenChange();
|
|
37466
37493
|
};
|
|
37467
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(CollapsipleTriggerButton, { onClick, $indicatorDir: indicatorDir, ...props, children: [
|
|
37494
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(CollapsipleTriggerButton, { onClick, $indicatorDir: indicatorDir, "aria-label": "trigger children", ...props, children: [
|
|
37468
37495
|
indicatorDir === "start" && /* @__PURE__ */ jsxRuntimeExports.jsx(SvgImage, { "data-trigger-icon": true, name: "chevron-right", "data-open": open2.toString(), size: "sm" }),
|
|
37469
37496
|
children && /* @__PURE__ */ jsxRuntimeExports.jsx(IconWrapper, { icon, iconDir, children }),
|
|
37470
37497
|
indicatorDir === "end" && /* @__PURE__ */ jsxRuntimeExports.jsx(SvgImage, { "data-trigger-icon": true, name: "chevron-right", "data-open": open2.toString(), size: "sm" })
|
|
@@ -37833,7 +37860,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
37833
37860
|
const $6be4966fd9bbc698$export$6521433ed15a34db = $6be4966fd9bbc698$export$4d07bf653ea69106;
|
|
37834
37861
|
const Wrapper = styled(FormRoot).withConfig({
|
|
37835
37862
|
componentId: "sc-egkkgl-0"
|
|
37836
|
-
})(["max-width:fit-content;"]);
|
|
37863
|
+
})(["align-items:center;max-width:fit-content;"]);
|
|
37837
37864
|
const Switch = React.forwardRef(({
|
|
37838
37865
|
checked,
|
|
37839
37866
|
disabled,
|
|
@@ -37845,8 +37872,8 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
37845
37872
|
}, ref) => {
|
|
37846
37873
|
const defaultId = React.useId();
|
|
37847
37874
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Wrapper, { $orientation: orientation, $dir: dir, children: [
|
|
37848
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(SwitchRoot, { ref, id: id ?? defaultId, disabled, checked, ...props, children: /* @__PURE__ */ jsxRuntimeExports.jsx(SwitchThumb, { $checked: checked }) }),
|
|
37849
|
-
label && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
37875
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(SwitchRoot, { ref, id: id ?? defaultId, disabled, "aria-label": `${label}`, checked, ...props, children: /* @__PURE__ */ jsxRuntimeExports.jsx(SwitchThumb, { $checked: checked }) }),
|
|
37876
|
+
label && /* @__PURE__ */ jsxRuntimeExports.jsx(GenericLabel, { htmlFor: id ?? defaultId, disabled, children: label })
|
|
37850
37877
|
] });
|
|
37851
37878
|
});
|
|
37852
37879
|
const getRootVars = (theme2, disabled, checked) => {
|
|
@@ -38148,7 +38175,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
38148
38175
|
ref.current.scrollLeft += evt.deltaY;
|
|
38149
38176
|
}
|
|
38150
38177
|
};
|
|
38151
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(TabContext.Provider, { value, children: /* @__PURE__ */ jsxRuntimeExports.jsx(TabsContainer, { ref, onWheel, onScroll: (e) => {
|
|
38178
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(TabContext.Provider, { value, children: /* @__PURE__ */ jsxRuntimeExports.jsx(TabsContainer, { ref, onWheel, role: "tablist", onScroll: (e) => {
|
|
38152
38179
|
e.preventDefault();
|
|
38153
38180
|
e.stopPropagation();
|
|
38154
38181
|
}, $count: (listProp ?? list).length, children: /* @__PURE__ */ jsxRuntimeExports.jsx(TabsSortableContainer, { as: distExports.ReactSortable, direction: direction ?? "horizontal", group: group ?? "tabbar", list: listProp ?? list, setList: setListProp ?? setList, onEnd: (evt, sortable, store) => {
|
|
@@ -38162,7 +38189,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
38162
38189
|
if (typeof onEnd === "function") {
|
|
38163
38190
|
onEnd(evt, sortable, store);
|
|
38164
38191
|
}
|
|
38165
|
-
}, revertOnSpill: true, ...props, children: React.Children.map(children, (child, index2) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { tabIndex: index2, role: "tab", onClick: onSelect(index2), children: child }, `tab-element-${index2}`)) }) }) });
|
|
38192
|
+
}, revertOnSpill: true, ...props, children: React.Children.map(children, (child, index2) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { tabIndex: index2 + 1, role: "tab", onClick: onSelect(index2), children: child }, `tab-element-${index2}`)) }) }) });
|
|
38166
38193
|
};
|
|
38167
38194
|
const TabElement = styled.div.withConfig({
|
|
38168
38195
|
componentId: "sc-137ymle-2"
|
|
@@ -38342,12 +38369,12 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
38342
38369
|
actionsList.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("col", { width: (actionsList.length + 1) * 32 + 10 })
|
|
38343
38370
|
] }),
|
|
38344
38371
|
/* @__PURE__ */ jsxRuntimeExports.jsx(StyledThead, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs("tr", { children: [
|
|
38345
|
-
isSelectable && /* @__PURE__ */ jsxRuntimeExports.jsx(StyledHeader, { $size: size2, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Checkbox, { onCheckedChange: onSelectAll, disabled: !hasRows }) }),
|
|
38372
|
+
isSelectable && /* @__PURE__ */ jsxRuntimeExports.jsx(StyledHeader, { $size: size2, "aria-label": "Select column", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Checkbox, { onCheckedChange: onSelectAll, disabled: !hasRows }) }),
|
|
38346
38373
|
headers.map(({
|
|
38347
38374
|
width,
|
|
38348
38375
|
...headerProps
|
|
38349
38376
|
}, index2) => /* @__PURE__ */ jsxRuntimeExports.jsx(TableHeader, { onSort: onSort(headerProps, index2), size: size2, ...headerProps }, `table-header-${index2}-${width}`)),
|
|
38350
|
-
actionsList.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(StyledHeader, { $size: size2 })
|
|
38377
|
+
actionsList.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(StyledHeader, { "aria-label": "Actions", $size: size2 })
|
|
38351
38378
|
] }) })
|
|
38352
38379
|
] });
|
|
38353
38380
|
};
|
|
@@ -41860,9 +41887,9 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
41860
41887
|
avatar: {
|
|
41861
41888
|
color: {
|
|
41862
41889
|
background: {
|
|
41863
|
-
"default": "#
|
|
41864
|
-
hover: "#
|
|
41865
|
-
active: "#
|
|
41890
|
+
"default": "#808691",
|
|
41891
|
+
hover: "#b3b6bd",
|
|
41892
|
+
active: "#b3b6bd"
|
|
41866
41893
|
},
|
|
41867
41894
|
text: {
|
|
41868
41895
|
"default": "#1F1F1C",
|
|
@@ -42904,8 +42931,8 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
42904
42931
|
color: {
|
|
42905
42932
|
background: {
|
|
42906
42933
|
"default": "#1F1F1C",
|
|
42907
|
-
hover: "
|
|
42908
|
-
active: "lch(
|
|
42934
|
+
hover: "lch(15.8 0 0)",
|
|
42935
|
+
active: "lch(17.9 0 0)"
|
|
42909
42936
|
},
|
|
42910
42937
|
stroke: {
|
|
42911
42938
|
"default": "#323232"
|
|
@@ -48096,6 +48123,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
48096
48123
|
exports2.Flyout = Flyout;
|
|
48097
48124
|
exports2.FormContainer = FormContainer;
|
|
48098
48125
|
exports2.FullWidthTabs = FullWidthTabs;
|
|
48126
|
+
exports2.GenericLabel = GenericLabel;
|
|
48099
48127
|
exports2.Grid = Grid;
|
|
48100
48128
|
exports2.GridContainer = GridContainer$1;
|
|
48101
48129
|
exports2.HoverCard = HoverCard;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface GenericLabelProps extends HTMLAttributes<HTMLLabelElement> {
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
htmlFor?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const GenericLabel: ({ disabled, children, ...props }: GenericLabelProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,6 +2,7 @@ export * from './types';
|
|
|
2
2
|
export { Icon } from './Icon/Icon';
|
|
3
3
|
export { IconButton } from './IconButton/IconButton';
|
|
4
4
|
export { Label } from './Label/Label';
|
|
5
|
+
export { GenericLabel } from './GenericLabel/GenericLabel';
|
|
5
6
|
export { Dropdown } from './Dropdown/Dropdown';
|
|
6
7
|
export { Accordion } from './Accordion/Accordion';
|
|
7
8
|
export { Alert, DangerAlert, InfoAlert, WarningAlert, SuccessAlert } from './Alert/Alert';
|
|
@@ -47,7 +47,7 @@ export type { VerticalStepperProps, VerticalStepProps, } from './VerticalStepper
|
|
|
47
47
|
export type { CardHorizontalProps } from './CardHorizontal/CardHorizontal';
|
|
48
48
|
export type { CardPromotionProps } from './CardPromotion/CardPromotion';
|
|
49
49
|
export type { ProgressBarProps } from './ProgressBar/ProgressBar';
|
|
50
|
-
export type { GridProps, CellProps, SelectedRegion, SelectionFocus, SelectionAction, GridContextMenuItemProps, Rectangle } from './Grid/types';
|
|
50
|
+
export type { GridProps, CellProps, SelectedRegion, SelectionFocus, SelectionAction, GridContextMenuItemProps, Rectangle, } from './Grid/types';
|
|
51
51
|
export type States = "default" | "active" | "disabled" | "error" | "hover";
|
|
52
52
|
export type HorizontalDirection = "start" | "end";
|
|
53
53
|
export type Orientation = "horizontal" | "vertical";
|
|
@@ -55,6 +55,7 @@ export type { FormContainerProps } from './FormContainer/FormContainer';
|
|
|
55
55
|
export type { AutoCompleteProps, AutoCompleteOptionListItem, } from './AutoComplete/AutoComplete';
|
|
56
56
|
export type { PaginationProps } from './Pagination/Pagination';
|
|
57
57
|
export type { ContextMenuItemProps } from './ContextMenu/ContextMenu';
|
|
58
|
+
export type { GenericLabelProps } from './GenericLabel/GenericLabel';
|
|
58
59
|
export type { IconButtonProps };
|
|
59
60
|
export type { AlertProps };
|
|
60
61
|
export type { AvatarProps };
|
|
@@ -67,9 +67,9 @@ declare const _default: {
|
|
|
67
67
|
"avatar": {
|
|
68
68
|
"color": {
|
|
69
69
|
"background": {
|
|
70
|
-
"default": "#
|
|
71
|
-
"hover": "#
|
|
72
|
-
"active": "#
|
|
70
|
+
"default": "#808691",
|
|
71
|
+
"hover": "#b3b6bd",
|
|
72
|
+
"active": "#b3b6bd"
|
|
73
73
|
},
|
|
74
74
|
"text": {
|
|
75
75
|
"default": "#1F1F1C",
|
|
@@ -1111,8 +1111,8 @@ declare const _default: {
|
|
|
1111
1111
|
"color": {
|
|
1112
1112
|
"background": {
|
|
1113
1113
|
"default": "#1F1F1C",
|
|
1114
|
-
"hover": "
|
|
1115
|
-
"active": "lch(
|
|
1114
|
+
"hover": "lch(15.8 0 0)",
|
|
1115
|
+
"active": "lch(17.9 0 0)"
|
|
1116
1116
|
},
|
|
1117
1117
|
"stroke": {
|
|
1118
1118
|
"default": "#323232"
|