@algolia/satellite 1.10.1 → 1.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Actions/Accordion/Accordion.d.ts +27 -18
- package/dist/cjs/Actions/Button/Button.tailwind.js +27 -42
- package/dist/cjs/Actions/Button/PolymorphicIconButton.d.ts +34 -5
- package/dist/cjs/Actions/Button/types.d.ts +30 -9
- package/dist/cjs/Actions/Button/types.js +2 -0
- package/dist/cjs/Actions/ButtonGroup/ButtonGroup.d.ts +6 -1
- package/dist/cjs/Actions/Switch/Switch.d.ts +21 -1
- package/dist/cjs/Actions/Switch/SwitchOption.d.ts +9 -0
- package/dist/cjs/Actions/Switch/types.d.ts +2 -1
- package/dist/cjs/Actions/Switch/types.js +3 -1
- package/dist/cjs/Actions/ToggleButton/ToggleButton.d.ts +9 -0
- package/dist/cjs/Actions/ToggleButton/ToggleButtonBase.d.ts +33 -2
- package/dist/cjs/Actions/ToggleButton/ToggleButtonBase.js +1 -1
- package/dist/cjs/Actions/ToggleGroup/ToggleGroup.d.ts +18 -6
- package/dist/cjs/Avatars/ApplicationAvatar/ApplicationAvatar.d.ts +10 -3
- package/dist/cjs/Avatars/UserAvatar/UserAvatar.d.ts +13 -5
- package/dist/cjs/Avatars/types.d.ts +23 -1
- package/dist/cjs/Avatars/types.js +3 -1
- package/dist/cjs/Fields/AutoComplete/components/AutoCompleteEmptyState.d.ts +6 -2
- package/dist/cjs/Fields/AutoComplete/types.d.ts +144 -5
- package/dist/cjs/Fields/Checkbox/Checkbox.d.ts +5 -2
- package/dist/cjs/Fields/DateInput/DateInput.d.ts +47 -0
- package/dist/cjs/Fields/DateInput/DateInput.js +169 -0
- package/dist/cjs/Fields/DateInput/index.d.ts +1 -0
- package/dist/cjs/Fields/DateInput/index.js +16 -0
- package/dist/cjs/Fields/DatePicker/DatePicker/DatePicker.d.ts +42 -0
- package/dist/cjs/Fields/DatePicker/DatePicker/DatePicker.js +1 -0
- package/dist/cjs/Fields/DatePicker/DateRangePicker/DateRangePicker.d.ts +36 -0
- package/dist/cjs/Fields/DatePicker/DateRangePicker/DateRangePicker.js +1 -0
- package/dist/cjs/Fields/DatePicker/components/Popover.d.ts +1 -0
- package/dist/cjs/Fields/DatePicker/components/Popover.js +5 -1
- package/dist/cjs/Fields/DatePicker/types.d.ts +21 -0
- package/dist/cjs/Fields/Dropzone/Dropzone.d.ts +85 -6
- package/dist/cjs/Fields/Field/Field.d.ts +32 -9
- package/dist/cjs/Fields/Form/stories/Complex.js +22 -12
- package/dist/cjs/Fields/Input/Input.d.ts +18 -1
- package/dist/cjs/Fields/Input/Input.js +5 -3
- package/dist/cjs/Fields/RadioGroup/RadioButton.d.ts +68 -2
- package/dist/cjs/Fields/RadioGroup/RadioGroup.d.ts +27 -10
- package/dist/cjs/Fields/RadioGroup/RadioGroup.js +20 -77
- package/dist/cjs/Fields/RadioGroup/RadioGroupItem.d.ts +20 -0
- package/dist/cjs/Fields/RadioGroup/RadioGroupItem.js +71 -0
- package/dist/cjs/Fields/RadioGroup/index.d.ts +1 -0
- package/dist/cjs/Fields/RadioGroup/index.js +11 -0
- package/dist/cjs/Fields/RangeSlider/RangeSlider.d.ts +48 -3
- package/dist/cjs/Fields/Select/Select.d.ts +3 -0
- package/dist/cjs/Fields/TextArea/TextArea.d.ts +16 -0
- package/dist/cjs/Fields/Toggle/Toggle.d.ts +51 -3
- package/dist/cjs/Fields/index.d.ts +1 -0
- package/dist/cjs/Fields/index.js +11 -0
- package/dist/cjs/Helpers/ClickAwayContainer/ClickAwayContainer.d.ts +6 -4
- package/dist/cjs/Helpers/HelpUnderline/HelpUnderline.d.ts +9 -1
- package/dist/cjs/Helpers/Medallion/Medallion.d.ts +14 -1
- package/dist/cjs/Helpers/Medallion/Medallion.js +11 -10
- package/dist/cjs/Helpers/Medallion/Medallion.tailwind.js +1 -1
- package/dist/cjs/Helpers/Medallion/types.d.ts +1 -1
- package/dist/cjs/Helpers/Separator/Separator.d.ts +10 -0
- package/dist/cjs/Helpers/TextWrap/TextWrap.d.ts +8 -2
- package/dist/cjs/Helpers/TextWrap/TextWrap.js +1 -1
- package/dist/cjs/Helpers/UserContent/UserContent.d.ts +10 -1
- package/dist/cjs/Icons/index.d.ts +1 -1
- package/dist/cjs/Icons/index.js +6 -0
- package/dist/cjs/Indicators/Badge/Badge.d.ts +6 -2
- package/dist/cjs/Indicators/Tag/Tag.tailwind.js +13 -4
- package/dist/cjs/Navigation/Stepper/Step.js +28 -25
- package/dist/cjs/Overlay/MenuButton/components/CustomTrigger.d.ts +1 -1
- package/dist/cjs/Overlay/MenuButton/components/CustomTrigger.js +12 -4
- package/dist/cjs/Overlay/Popover/types.d.ts +4 -0
- package/dist/cjs/Overlay/Tooltip/types.d.ts +3 -0
- package/dist/cjs/Satellite/locale.d.ts +2 -1
- package/dist/esm/Actions/Accordion/Accordion.d.ts +27 -18
- package/dist/esm/Actions/Button/Button.tailwind.js +27 -44
- package/dist/esm/Actions/Button/PolymorphicIconButton.d.ts +34 -5
- package/dist/esm/Actions/Button/types.d.ts +30 -9
- package/dist/esm/Actions/Button/types.js +1 -0
- package/dist/esm/Actions/ButtonGroup/ButtonGroup.d.ts +6 -1
- package/dist/esm/Actions/Switch/Switch.d.ts +21 -1
- package/dist/esm/Actions/Switch/SwitchOption.d.ts +9 -0
- package/dist/esm/Actions/Switch/types.d.ts +2 -1
- package/dist/esm/Actions/Switch/types.js +1 -1
- package/dist/esm/Actions/ToggleButton/ToggleButton.d.ts +9 -0
- package/dist/esm/Actions/ToggleButton/ToggleButtonBase.d.ts +33 -2
- package/dist/esm/Actions/ToggleButton/ToggleButtonBase.js +1 -1
- package/dist/esm/Actions/ToggleGroup/ToggleGroup.d.ts +18 -6
- package/dist/esm/Avatars/ApplicationAvatar/ApplicationAvatar.d.ts +10 -3
- package/dist/esm/Avatars/UserAvatar/UserAvatar.d.ts +13 -5
- package/dist/esm/Avatars/types.d.ts +23 -1
- package/dist/esm/Avatars/types.js +1 -1
- package/dist/esm/Fields/AutoComplete/components/AutoCompleteEmptyState.d.ts +6 -2
- package/dist/esm/Fields/AutoComplete/types.d.ts +144 -5
- package/dist/esm/Fields/Checkbox/Checkbox.d.ts +5 -2
- package/dist/esm/Fields/DateInput/DateInput.d.ts +47 -0
- package/dist/esm/Fields/DateInput/DateInput.js +162 -0
- package/dist/esm/Fields/DateInput/index.d.ts +1 -0
- package/dist/esm/Fields/DateInput/index.js +1 -0
- package/dist/esm/Fields/DatePicker/DatePicker/DatePicker.d.ts +42 -0
- package/dist/esm/Fields/DatePicker/DatePicker/DatePicker.js +1 -0
- package/dist/esm/Fields/DatePicker/DateRangePicker/DateRangePicker.d.ts +36 -0
- package/dist/esm/Fields/DatePicker/DateRangePicker/DateRangePicker.js +1 -0
- package/dist/esm/Fields/DatePicker/components/Popover.d.ts +1 -0
- package/dist/esm/Fields/DatePicker/components/Popover.js +5 -1
- package/dist/esm/Fields/DatePicker/types.d.ts +21 -0
- package/dist/esm/Fields/Dropzone/Dropzone.d.ts +85 -6
- package/dist/esm/Fields/Field/Field.d.ts +32 -9
- package/dist/esm/Fields/Form/stories/Complex.js +23 -13
- package/dist/esm/Fields/Input/Input.d.ts +18 -1
- package/dist/esm/Fields/Input/Input.js +5 -3
- package/dist/esm/Fields/RadioGroup/RadioButton.d.ts +68 -2
- package/dist/esm/Fields/RadioGroup/RadioGroup.d.ts +27 -10
- package/dist/esm/Fields/RadioGroup/RadioGroup.js +20 -77
- package/dist/esm/Fields/RadioGroup/RadioGroupItem.d.ts +20 -0
- package/dist/esm/Fields/RadioGroup/RadioGroupItem.js +64 -0
- package/dist/esm/Fields/RadioGroup/index.d.ts +1 -0
- package/dist/esm/Fields/RadioGroup/index.js +2 -1
- package/dist/esm/Fields/RangeSlider/RangeSlider.d.ts +48 -3
- package/dist/esm/Fields/Select/Select.d.ts +3 -0
- package/dist/esm/Fields/TextArea/TextArea.d.ts +16 -0
- package/dist/esm/Fields/Toggle/Toggle.d.ts +51 -3
- package/dist/esm/Fields/index.d.ts +1 -0
- package/dist/esm/Fields/index.js +1 -0
- package/dist/esm/Helpers/ClickAwayContainer/ClickAwayContainer.d.ts +6 -4
- package/dist/esm/Helpers/HelpUnderline/HelpUnderline.d.ts +9 -1
- package/dist/esm/Helpers/Medallion/Medallion.d.ts +14 -1
- package/dist/esm/Helpers/Medallion/Medallion.js +11 -10
- package/dist/esm/Helpers/Medallion/Medallion.tailwind.js +1 -1
- package/dist/esm/Helpers/Medallion/types.d.ts +1 -1
- package/dist/esm/Helpers/Separator/Separator.d.ts +10 -0
- package/dist/esm/Helpers/TextWrap/TextWrap.d.ts +8 -2
- package/dist/esm/Helpers/TextWrap/TextWrap.js +1 -1
- package/dist/esm/Helpers/UserContent/UserContent.d.ts +10 -1
- package/dist/esm/Icons/index.d.ts +1 -1
- package/dist/esm/Icons/index.js +1 -1
- package/dist/esm/Indicators/Badge/Badge.d.ts +6 -2
- package/dist/esm/Indicators/Tag/Tag.tailwind.js +13 -4
- package/dist/esm/Navigation/Stepper/Step.js +28 -25
- package/dist/esm/Overlay/MenuButton/components/CustomTrigger.d.ts +1 -1
- package/dist/esm/Overlay/MenuButton/components/CustomTrigger.js +12 -4
- package/dist/esm/Overlay/Popover/types.d.ts +4 -0
- package/dist/esm/Overlay/Tooltip/types.d.ts +3 -0
- package/dist/esm/Satellite/locale.d.ts +2 -1
- package/dist/satellite.min.css +1 -1
- package/package.json +3 -3
@@ -0,0 +1,71 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
5
|
+
value: true
|
6
|
+
});
|
7
|
+
exports.RadioGroupItem = void 0;
|
8
|
+
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
9
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
10
|
+
var _react = require("react");
|
11
|
+
var _satellitePrefixer = _interopRequireDefault(require("../../styles/helpers/satellitePrefixer"));
|
12
|
+
var _uniqueId = require("../../utils/uniqueId");
|
13
|
+
var _RadioButton = require("./RadioButton");
|
14
|
+
var _RadioGroupContext = require("./RadioGroupContext");
|
15
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
16
|
+
var _templateObject, _templateObject2, _templateObject3;
|
17
|
+
var _excluded = ["value", "disabled", "required", "children"];
|
18
|
+
var RadioGroupItem = exports.RadioGroupItem = function RadioGroupItem(_ref) {
|
19
|
+
var value = _ref.value,
|
20
|
+
disabled = _ref.disabled,
|
21
|
+
required = _ref.required,
|
22
|
+
children = _ref.children,
|
23
|
+
props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
24
|
+
var _useRadioGroupContext = (0, _RadioGroupContext.useRadioGroupContext)(),
|
25
|
+
id = _useRadioGroupContext.id,
|
26
|
+
name = _useRadioGroupContext.name,
|
27
|
+
contextDisabled = _useRadioGroupContext.disabled,
|
28
|
+
contextRequired = _useRadioGroupContext.required,
|
29
|
+
_onChange = _useRadioGroupContext.onChange,
|
30
|
+
contextValue = _useRadioGroupContext.value,
|
31
|
+
_useRadioGroupContext2 = _useRadioGroupContext.textPosition,
|
32
|
+
textPosition = _useRadioGroupContext2 === void 0 ? "left" : _useRadioGroupContext2,
|
33
|
+
descriptionId = _useRadioGroupContext.descriptionId,
|
34
|
+
state = _useRadioGroupContext.state,
|
35
|
+
ref = _useRadioGroupContext.ref;
|
36
|
+
var isFirstChild = props.childIndex === 0;
|
37
|
+
var isInvalid = (state === null || state === void 0 ? void 0 : state.status) === "invalid";
|
38
|
+
var checked = value === contextValue;
|
39
|
+
disabled = contextDisabled || disabled;
|
40
|
+
required = contextRequired || required;
|
41
|
+
var labelId = (0, _react.useMemo)(
|
42
|
+
// eslint-disable-next-line @algolia/stl/prefer-stl-helper
|
43
|
+
function () {
|
44
|
+
return (0, _uniqueId.uniqueId)("stl-radio-group-label-");
|
45
|
+
}, []);
|
46
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("label", {
|
47
|
+
className: (0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n flex items-center justify-between\n min-h-10 px-4 py-2\n ", "\n ", "\n ", "\n ", ""])), disabled ? "text-grey-300" : "hover:bg-grey-100", disabled ? "cursor-not-allowed" : "cursor-pointer", textPosition === "right" && "flex-row-reverse", isInvalid && "hover:bg-red-50"),
|
48
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
49
|
+
id: labelId,
|
50
|
+
className: (0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["flex-1 truncate ", ""])), textPosition === "right" ? "ml-2" : "mr-2"),
|
51
|
+
children: children
|
52
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_RadioButton.RadioButton, {
|
53
|
+
id: checked || isFirstChild && !contextValue ? id : undefined,
|
54
|
+
className: (0, _satellitePrefixer["default"])(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["shrink-0 self-start mt-1"]))),
|
55
|
+
value: value,
|
56
|
+
checked: checked,
|
57
|
+
name: name,
|
58
|
+
onChange: function onChange() {
|
59
|
+
if (!disabled && !checked) {
|
60
|
+
_onChange(value);
|
61
|
+
}
|
62
|
+
},
|
63
|
+
disabled: disabled,
|
64
|
+
required: required,
|
65
|
+
"aria-invalid": isInvalid,
|
66
|
+
"aria-labelledby": labelId,
|
67
|
+
"aria-describedby": descriptionId,
|
68
|
+
ref: isFirstChild ? ref : undefined
|
69
|
+
})]
|
70
|
+
});
|
71
|
+
};
|
@@ -24,4 +24,15 @@ Object.keys(_RadioButton).forEach(function (key) {
|
|
24
24
|
return _RadioButton[key];
|
25
25
|
}
|
26
26
|
});
|
27
|
+
});
|
28
|
+
var _RadioGroupItem = require("./RadioGroupItem");
|
29
|
+
Object.keys(_RadioGroupItem).forEach(function (key) {
|
30
|
+
if (key === "default" || key === "__esModule") return;
|
31
|
+
if (key in exports && exports[key] === _RadioGroupItem[key]) return;
|
32
|
+
Object.defineProperty(exports, key, {
|
33
|
+
enumerable: true,
|
34
|
+
get: function get() {
|
35
|
+
return _RadioGroupItem[key];
|
36
|
+
}
|
37
|
+
});
|
27
38
|
});
|
@@ -2,23 +2,65 @@ import type { ForwardedRef } from "react";
|
|
2
2
|
declare type RangeSliderValue = number | [number, number];
|
3
3
|
declare type WidenNumber<T> = T extends number ? number : T;
|
4
4
|
export interface RangeSliderProps<Value extends RangeSliderValue = number> {
|
5
|
+
/**
|
6
|
+
* The value of the `RangeSlider`.
|
7
|
+
*/
|
5
8
|
value?: WidenNumber<Value>;
|
9
|
+
/**
|
10
|
+
* The default value of the `RangeSlider`.
|
11
|
+
*/
|
6
12
|
defaultValue?: WidenNumber<Value>;
|
7
|
-
/**
|
13
|
+
/**
|
14
|
+
* Event handler called when the value changes.
|
15
|
+
*/
|
8
16
|
onChange?: (value: WidenNumber<Value>) => void;
|
9
|
-
/**
|
17
|
+
/**
|
18
|
+
* Event handler called when the value changes at the end of an interaction.
|
19
|
+
*/
|
10
20
|
onCommit?: (value: WidenNumber<Value>) => void;
|
21
|
+
/**
|
22
|
+
* The id of the `RangeSlider`.
|
23
|
+
*/
|
11
24
|
id?: string;
|
25
|
+
/**
|
26
|
+
* The name of the `RangeSlider`.
|
27
|
+
*/
|
12
28
|
name?: string;
|
13
|
-
/**
|
29
|
+
/**
|
30
|
+
* The class name of the `RangeSlider`.
|
31
|
+
*/
|
14
32
|
className?: string;
|
33
|
+
/**
|
34
|
+
* Whether the `RangeSlider` is disabled.
|
35
|
+
*/
|
15
36
|
disabled?: boolean;
|
37
|
+
/**
|
38
|
+
* Whether the `RangeSlider` is required.
|
39
|
+
*/
|
16
40
|
required?: boolean;
|
41
|
+
/**
|
42
|
+
* The minimum value for the range.
|
43
|
+
*/
|
17
44
|
min?: number;
|
45
|
+
/**
|
46
|
+
* The maximum value for the range.
|
47
|
+
*/
|
18
48
|
max?: number;
|
49
|
+
/**
|
50
|
+
* The stepping interval for the range.
|
51
|
+
*/
|
19
52
|
step?: number;
|
53
|
+
/**
|
54
|
+
* The minimum permitted steps between multiple thumbs.
|
55
|
+
*/
|
20
56
|
minStepsBetweenThumbs?: number;
|
57
|
+
/**
|
58
|
+
* The color of the first track of the `RangeSlider`.
|
59
|
+
*/
|
21
60
|
track1Color?: string;
|
61
|
+
/**
|
62
|
+
* The color of the second track of the `RangeSlider`.
|
63
|
+
*/
|
22
64
|
track2Color?: string;
|
23
65
|
}
|
24
66
|
declare const RangeSliderInternal: <Value extends RangeSliderValue = number>({ id, className, value, defaultValue, onChange, onCommit, disabled, required, min, max, track1Color, track2Color, ...otherProps }: RangeSliderProps<Value>, ref: ForwardedRef<HTMLSpanElement>) => import("react/jsx-runtime").JSX.Element;
|
@@ -28,6 +70,9 @@ declare const RangeSliderInternal: <Value extends RangeSliderValue = number>({ i
|
|
28
70
|
* See the [Range Slider documentation page](https://satellite.algolia.com/components/controls/range-slider) for more information.
|
29
71
|
*/
|
30
72
|
export declare const RangeSlider: (<Value extends RangeSliderValue>(props: RangeSliderProps<Value> & {
|
73
|
+
/**
|
74
|
+
* The ref of the `RangeSlider`.
|
75
|
+
*/
|
31
76
|
ref?: ForwardedRef<HTMLSpanElement> | undefined;
|
32
77
|
}) => ReturnType<typeof RangeSliderInternal>) & {
|
33
78
|
displayName?: string | undefined;
|
@@ -1,6 +1,9 @@
|
|
1
1
|
import type { SelectHTMLAttributes } from "react";
|
2
2
|
export declare type SelectVariants = "small" | "medium" | "large";
|
3
3
|
export interface SelectProps extends SelectHTMLAttributes<HTMLSelectElement> {
|
4
|
+
/**
|
5
|
+
* The variant of the `Select`.
|
6
|
+
*/
|
4
7
|
variant?: SelectVariants;
|
5
8
|
}
|
6
9
|
/**
|
@@ -1,5 +1,21 @@
|
|
1
1
|
import type { TextareaHTMLAttributes } from "react";
|
2
2
|
export interface TextAreaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
|
3
|
+
/**
|
4
|
+
* Whether the `TextArea` is required.
|
5
|
+
*/
|
6
|
+
required?: boolean;
|
7
|
+
/**
|
8
|
+
* The value of the `TextArea`.
|
9
|
+
*/
|
10
|
+
value?: string;
|
11
|
+
/**
|
12
|
+
* The placeholder of the `TextArea`.
|
13
|
+
*/
|
14
|
+
placeholder?: string;
|
15
|
+
/**
|
16
|
+
* Whether the `TextArea` is disabled.
|
17
|
+
*/
|
18
|
+
disabled?: boolean;
|
3
19
|
}
|
4
20
|
export declare type TextareaStatus = "default" | "validated" | "invalid";
|
5
21
|
/**
|
@@ -1,12 +1,60 @@
|
|
1
|
-
import type { HTMLAttributes, InputHTMLAttributes } from "react";
|
2
|
-
export declare type ToggleProps = Omit<HTMLAttributes<HTMLInputElement>, "children" | "onChange"> & Pick<InputHTMLAttributes<HTMLInputElement>, "
|
1
|
+
import type { ChangeEvent, HTMLAttributes, InputHTMLAttributes } from "react";
|
2
|
+
export declare type ToggleProps = Omit<HTMLAttributes<HTMLInputElement>, "children" | "onChange" | "defaultChecked"> & Pick<InputHTMLAttributes<HTMLInputElement>, "autoFocus"> & {
|
3
|
+
/**
|
4
|
+
* Whether the `Toggle` is decorative.
|
5
|
+
* Decorative toggles are not using an input element.
|
6
|
+
*/
|
3
7
|
decorative?: boolean;
|
8
|
+
/**
|
9
|
+
* The callback function that is triggered when the `Toggle` is clicked.
|
10
|
+
*/
|
11
|
+
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
12
|
+
/**
|
13
|
+
* Whether the `Toggle` is required.
|
14
|
+
*/
|
15
|
+
required?: boolean;
|
16
|
+
/**
|
17
|
+
* Whether the `Toggle` is disabled.
|
18
|
+
*/
|
19
|
+
disabled?: boolean;
|
20
|
+
/**
|
21
|
+
* Whether the `Toggle` is default checked.
|
22
|
+
*/
|
23
|
+
defaultChecked?: boolean;
|
24
|
+
/**
|
25
|
+
* Whether the `Toggle` is checked.
|
26
|
+
*/
|
27
|
+
checked?: boolean;
|
4
28
|
};
|
5
29
|
/**
|
6
30
|
* The `Toggle` component is used to view or switch between enabled or disabled states.
|
7
31
|
*
|
8
32
|
* See the [Toggle documentation page](https://satellite.algolia.com/components/controls/toggle) for more information.
|
9
33
|
*/
|
10
|
-
export declare const Toggle: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLInputElement>, "children" | "onChange"> & Pick<InputHTMLAttributes<HTMLInputElement>, "
|
34
|
+
export declare const Toggle: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLInputElement>, "children" | "defaultChecked" | "onChange"> & Pick<InputHTMLAttributes<HTMLInputElement>, "autoFocus"> & {
|
35
|
+
/**
|
36
|
+
* Whether the `Toggle` is decorative.
|
37
|
+
* Decorative toggles are not using an input element.
|
38
|
+
*/
|
11
39
|
decorative?: boolean | undefined;
|
40
|
+
/**
|
41
|
+
* The callback function that is triggered when the `Toggle` is clicked.
|
42
|
+
*/
|
43
|
+
onChange?: ((event: ChangeEvent<HTMLInputElement>) => void) | undefined;
|
44
|
+
/**
|
45
|
+
* Whether the `Toggle` is required.
|
46
|
+
*/
|
47
|
+
required?: boolean | undefined;
|
48
|
+
/**
|
49
|
+
* Whether the `Toggle` is disabled.
|
50
|
+
*/
|
51
|
+
disabled?: boolean | undefined;
|
52
|
+
/**
|
53
|
+
* Whether the `Toggle` is default checked.
|
54
|
+
*/
|
55
|
+
defaultChecked?: boolean | undefined;
|
56
|
+
/**
|
57
|
+
* Whether the `Toggle` is checked.
|
58
|
+
*/
|
59
|
+
checked?: boolean | undefined;
|
12
60
|
} & import("react").RefAttributes<HTMLInputElement>>;
|
package/dist/cjs/Fields/index.js
CHANGED
@@ -25,6 +25,17 @@ Object.keys(_Checkbox).forEach(function (key) {
|
|
25
25
|
}
|
26
26
|
});
|
27
27
|
});
|
28
|
+
var _DateInput = require("./DateInput");
|
29
|
+
Object.keys(_DateInput).forEach(function (key) {
|
30
|
+
if (key === "default" || key === "__esModule") return;
|
31
|
+
if (key in exports && exports[key] === _DateInput[key]) return;
|
32
|
+
Object.defineProperty(exports, key, {
|
33
|
+
enumerable: true,
|
34
|
+
get: function get() {
|
35
|
+
return _DateInput[key];
|
36
|
+
}
|
37
|
+
});
|
38
|
+
});
|
28
39
|
var _DatePicker = require("./DatePicker");
|
29
40
|
Object.keys(_DatePicker).forEach(function (key) {
|
30
41
|
if (key === "default" || key === "__esModule") return;
|
@@ -5,13 +5,15 @@ interface ClickAwayContextType {
|
|
5
5
|
}
|
6
6
|
export declare const useClickAwayContext: () => ClickAwayContextType | null;
|
7
7
|
export interface ClickAwayContainerProps {
|
8
|
-
/**
|
8
|
+
/**
|
9
|
+
* The element that should be registered in the ClickAway tree.
|
9
10
|
* To ensure proper tracking, the element should be tracked in a way that triggers a rerender (use callback refs!)
|
10
|
-
|
11
|
+
*/
|
11
12
|
element: HTMLElement | null;
|
12
|
-
/**
|
13
|
+
/**
|
14
|
+
* Will be called if a click away event (mousedown, touchstart, focusin)
|
13
15
|
* happens outside of the subtree tracked by this component instance
|
14
|
-
|
16
|
+
*/
|
15
17
|
onClickAway?(evt: Event): void;
|
16
18
|
children?: ReactNode;
|
17
19
|
}
|
@@ -2,9 +2,17 @@ import type { VFC } from "react";
|
|
2
2
|
import type { TooltipWrapperProps } from "../../Overlay";
|
3
3
|
import type { TooltipWrapperBaseProps } from "../../Overlay/Tooltip/types";
|
4
4
|
export declare type HelpUnderlineProps = {
|
5
|
-
/**
|
5
|
+
/**
|
6
|
+
* The class name of the `HelpUnderline`.
|
7
|
+
*/
|
6
8
|
className?: string;
|
9
|
+
/**
|
10
|
+
* The content of the `Tooltip`.
|
11
|
+
*/
|
7
12
|
tooltipContent: TooltipWrapperProps["content"];
|
13
|
+
/**
|
14
|
+
* The content of the `HelpUnderline`.
|
15
|
+
*/
|
8
16
|
children: string;
|
9
17
|
} & Omit<TooltipWrapperBaseProps, "children">;
|
10
18
|
/**
|
@@ -2,10 +2,23 @@ import type { VFC } from "react";
|
|
2
2
|
import type { IconComponentType } from "../../Icons";
|
3
3
|
import type { MedallionSize, MedallionVariant } from "./types";
|
4
4
|
export interface MedallionProps {
|
5
|
+
/**
|
6
|
+
* The icon of the `Medallion`.
|
7
|
+
*/
|
5
8
|
icon: IconComponentType;
|
9
|
+
/**
|
10
|
+
* The variant of the `Medallion`.
|
11
|
+
* @default accent
|
12
|
+
*/
|
6
13
|
variant?: MedallionVariant;
|
14
|
+
/**
|
15
|
+
* The size of the `Medallion`.
|
16
|
+
* @default default
|
17
|
+
*/
|
7
18
|
size?: MedallionSize;
|
8
|
-
/**
|
19
|
+
/**
|
20
|
+
* The class name of the `Medallion`.
|
21
|
+
*/
|
9
22
|
className?: string;
|
10
23
|
}
|
11
24
|
/**
|
@@ -9,17 +9,18 @@ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/hel
|
|
9
9
|
var _clsx = _interopRequireDefault(require("clsx"));
|
10
10
|
var _satellitePrefixer = _interopRequireDefault(require("../../styles/helpers/satellitePrefixer"));
|
11
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
12
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10;
|
12
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11;
|
13
13
|
var VARIANT_CLASSNAMES = {
|
14
14
|
grey: (0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["medallion-grey text-grey-600"]))),
|
15
|
-
pink: (0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["medallion-pink text-pink-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
15
|
+
pink: (0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["medallion-pink text-pink-700"]))),
|
16
|
+
purple: (0, _satellitePrefixer["default"])(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["medallion-purple text-purple-600"]))),
|
17
|
+
accent: (0, _satellitePrefixer["default"])(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["medallion-accent text-accent-600"]))),
|
18
|
+
blue: (0, _satellitePrefixer["default"])(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["medallion-blue text-blue-600"]))),
|
19
|
+
green: (0, _satellitePrefixer["default"])(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2["default"])(["medallion-green text-green-700"]))),
|
20
|
+
orange: (0, _satellitePrefixer["default"])(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2["default"])(["medallion-orange text-orange-800"]))),
|
21
|
+
red: (0, _satellitePrefixer["default"])(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2["default"])(["medallion-red text-red-600"]))),
|
21
22
|
// eslint-disable-next-line @algolia/stl/prefer-accent -- here we're definitely refering to the color itself
|
22
|
-
white: (0, _satellitePrefixer["default"])(
|
23
|
+
white: (0, _satellitePrefixer["default"])(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2["default"])(["medallion-white text-nebula-500"])))
|
23
24
|
};
|
24
25
|
|
25
26
|
/**
|
@@ -36,9 +37,9 @@ var Medallion = exports.Medallion = function Medallion(_ref) {
|
|
36
37
|
className = _ref.className;
|
37
38
|
var medallionClassName = VARIANT_CLASSNAMES[variant];
|
38
39
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
39
|
-
className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(
|
40
|
+
className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2["default"])(["medallion inline-flex items-center justify-center rounded-full ", ""])), size === "large" && "medallion-large"), medallionClassName, className),
|
40
41
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Icon, {
|
41
|
-
className: (0, _satellitePrefixer["default"])(
|
42
|
+
className: (0, _satellitePrefixer["default"])(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2["default"])(["p-1 ", ""])), size === "large" && "w-10 h-10")
|
42
43
|
})
|
43
44
|
});
|
44
45
|
};
|
@@ -8,7 +8,7 @@ var rgba = require("../../styles/rgba");
|
|
8
8
|
var medallionPlugin = plugin(function (_ref) {
|
9
9
|
var addComponents = _ref.addComponents,
|
10
10
|
theme = _ref.theme;
|
11
|
-
var colors = ["grey", "pink", "accent", "blue", "green", "orange", "red", "white"];
|
11
|
+
var colors = ["grey", "pink", "purple", "accent", "blue", "green", "orange", "red", "white"];
|
12
12
|
addComponents({
|
13
13
|
".medallion": {
|
14
14
|
height: "40px",
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export declare type MedallionVariant = "accent" | "grey" | "pink" | "blue" | "green" | "orange" | "red" | "white";
|
1
|
+
export declare type MedallionVariant = "accent" | "grey" | "pink" | "purple" | "blue" | "green" | "orange" | "red" | "white";
|
2
2
|
export declare type MedallionSize = "default" | "large";
|
@@ -1,8 +1,18 @@
|
|
1
1
|
import * as RadixSeparator from "@radix-ui/react-separator";
|
2
2
|
import type { VFC } from "react";
|
3
3
|
export interface SeparatorProps {
|
4
|
+
/**
|
5
|
+
* The class name of the `Separator`.
|
6
|
+
*/
|
4
7
|
className?: string;
|
8
|
+
/**
|
9
|
+
* Whether the `Separator` is interactive.
|
10
|
+
*/
|
5
11
|
interactive?: boolean;
|
12
|
+
/**
|
13
|
+
* The orientation of the `Separator`.
|
14
|
+
* @default horizontal
|
15
|
+
*/
|
6
16
|
orientation?: RadixSeparator.SeparatorProps["orientation"];
|
7
17
|
}
|
8
18
|
/**
|
@@ -1,6 +1,12 @@
|
|
1
|
-
import type { HTMLAttributes, VFC } from "react";
|
1
|
+
import type { HTMLAttributes, ReactNode, VFC } from "react";
|
2
2
|
export interface TextWrapProps extends HTMLAttributes<HTMLSpanElement> {
|
3
|
-
/**
|
3
|
+
/**
|
4
|
+
* The content of the `TextWrap`.
|
5
|
+
*/
|
6
|
+
children: ReactNode;
|
7
|
+
/**
|
8
|
+
* The max number of lines before the text is cut with an ellipsis.
|
9
|
+
*/
|
4
10
|
maxLines?: number;
|
5
11
|
}
|
6
12
|
/**
|
@@ -27,7 +27,7 @@ var SEPARATOR_ELEMENT = /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
27
27
|
"aria-hidden": "true",
|
28
28
|
children: "\u200B"
|
29
29
|
});
|
30
|
-
var SPLIT_REGEX = /([\
|
30
|
+
var SPLIT_REGEX = /((?:[\0-@\[-`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u036F\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482-\u0489\u0530\u0557\u0558\u055A-\u055F\u0589-\u05CF\u05EB-\u05EE\u05F3-\u061F\u064B-\u066D\u0670\u06D4\u06D6-\u06E4\u06E7-\u06ED\u06F0-\u06F9\u06FD\u06FE\u0700-\u070F\u0711\u0730-\u074C\u07A6-\u07B0\u07B2-\u07C9\u07EB-\u07F3\u07F6-\u07F9\u07FB-\u07FF\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u083F\u0859-\u085F\u086B-\u086F\u0888\u088F-\u089F\u08CA-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962-\u0970\u0981-\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA-\u09BC\u09BE-\u09CD\u09CF-\u09DB\u09DE\u09E2-\u09EF\u09F2-\u09FB\u09FD-\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A-\u0A58\u0A5D\u0A5F-\u0A71\u0A75-\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA-\u0ABC\u0ABE-\u0ACF\u0AD1-\u0ADF\u0AE2-\u0AF8\u0AFA-\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A-\u0B3C\u0B3E-\u0B5B\u0B5E\u0B62-\u0B70\u0B72-\u0B82\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BCF\u0BD1-\u0C04\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C3E-\u0C57\u0C5B\u0C5C\u0C5E\u0C5F\u0C62-\u0C7F\u0C81-\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA-\u0CBC\u0CBE-\u0CDC\u0CDF\u0CE2-\u0CF0\u0CF3-\u0D03\u0D0D\u0D11\u0D3B\u0D3C\u0D3E-\u0D4D\u0D4F-\u0D53\u0D57-\u0D5E\u0D62-\u0D79\u0D80-\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0E00\u0E31\u0E34-\u0E3F\u0E47-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EB1\u0EB4-\u0EBC\u0EBE\u0EBF\u0EC5\u0EC7-\u0EDB\u0EE0-\u0EFF\u0F01-\u0F3F\u0F48\u0F6D-\u0F87\u0F8D-\u0FFF\u102B-\u103E\u1040-\u104F\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16F0\u16F9-\u16FF\u1712-\u171E\u1732-\u173F\u1752-\u175F\u176D\u1771-\u177F\u17B4-\u17D6\u17D8-\u17DB\u17DD-\u181F\u1879-\u187F\u1885\u1886\u18A9\u18AB-\u18AF\u18F6-\u18FF\u191F-\u194F\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19FF\u1A17-\u1A1F\u1A55-\u1AA6\u1AA8-\u1B04\u1B34-\u1B44\u1B4D-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BFF\u1C24-\u1C4C\u1C50-\u1C59\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1CFB-\u1CFF\u1DC0-\u1DFF\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u2182\u2185-\u2BFF\u2CE5-\u2CEA\u2CEF-\u2CF1\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7F\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF-\u2E2E\u2E30-\u3004\u3007-\u3030\u3036-\u303A\u303D-\u3040\u3097-\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA620-\uA629\uA62C-\uA63F\uA66F-\uA67E\uA69E\uA69F\uA6E6-\uA716\uA720\uA721\uA789\uA78A\uA7CB-\uA7CF\uA7D2\uA7D4\uA7DA-\uA7F1\uA802\uA806\uA80B\uA823-\uA83F\uA874-\uA881\uA8B4-\uA8F1\uA8F8-\uA8FA\uA8FC\uA8FF-\uA909\uA926-\uA92F\uA947-\uA95F\uA97D-\uA983\uA9B3-\uA9CE\uA9D0-\uA9DF\uA9E5\uA9F0-\uA9F9\uA9FF\uAA29-\uAA3F\uAA43\uAA4C-\uAA5F\uAA77-\uAA79\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAC3-\uAADA\uAADE\uAADF\uAAEB-\uAAF1\uAAF5-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABE3-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB1E\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFE6F\uFE75\uFEFD-\uFF20\uFF3B-\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEFF\uDF20-\uDF2C\uDF41\uDF4A-\uDF4F\uDF76-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0-\uDFFF]|\uD801[\uDC9E-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDD6F\uDD7B\uDD8B\uDD93\uDD96\uDDA2\uDDB2\uDDBA\uDDBD-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDF7F\uDF86\uDFB1\uDFBB-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE01-\uDE0F\uDE14\uDE18\uDE36-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE5-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD24-\uDE7F\uDEAA-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF46-\uDF6F\uDF82-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC00-\uDC02\uDC38-\uDC70\uDC73\uDC74\uDC76-\uDC82\uDCB0-\uDCCF\uDCE9-\uDD02\uDD27-\uDD43\uDD45\uDD46\uDD48-\uDD4F\uDD73-\uDD75\uDD77-\uDD82\uDDB3-\uDDC0\uDDC5-\uDDD9\uDDDB\uDDDD-\uDDFF\uDE12\uDE2C-\uDE3E\uDE41-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEDF-\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A-\uDF3C\uDF3E-\uDF4F\uDF51-\uDF5C\uDF62-\uDFFF]|\uD805[\uDC35-\uDC46\uDC4B-\uDC5E\uDC62-\uDC7F\uDCB0-\uDCC3\uDCC6\uDCC8-\uDD7F\uDDAF-\uDDD7\uDDDC-\uDDFF\uDE30-\uDE43\uDE45-\uDE7F\uDEAB-\uDEB7\uDEB9-\uDEFF\uDF1B-\uDF3F\uDF47-\uDFFF]|\uD806[\uDC2C-\uDC9F\uDCE0-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD30-\uDD3E\uDD40\uDD42-\uDD9F\uDDA8\uDDA9\uDDD1-\uDDE0\uDDE2\uDDE4-\uDDFF\uDE01-\uDE0A\uDE33-\uDE39\uDE3B-\uDE4F\uDE51-\uDE5B\uDE8A-\uDE9C\uDE9E-\uDEAF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC2F-\uDC3F\uDC41-\uDC71\uDC90-\uDCFF\uDD07\uDD0A\uDD31-\uDD45\uDD47-\uDD5F\uDD66\uDD69\uDD8A-\uDD97\uDD99-\uDEDF\uDEF3-\uDF01\uDF03\uDF11\uDF34-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC00-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80E-\uD810\uD812-\uD819\uD824-\uD82A\uD82D\uD82E\uD830-\uD834\uD836\uD83C-\uD83F\uD87B-\uD87D\uD87F\uD889-\uDBFF][\uDC00-\uDFFF]|\uD80B[\uDC00-\uDF8F\uDFF1-\uDFFF]|\uD80D[\uDC30-\uDC40\uDC47-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F-\uDE6F\uDEBF-\uDECF\uDEEE-\uDEFF\uDF30-\uDF3F\uDF44-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4F\uDF51-\uDF92\uDFA0-\uDFDF\uDFE2\uDFE4-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82B[\uDC00-\uDFEF\uDFF4\uDFFC\uDFFF]|\uD82C[\uDD23-\uDD31\uDD33-\uDD4F\uDD53\uDD54\uDD56-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC-\uDFFF]|\uD837[\uDC00-\uDEFF\uDF1F-\uDF24\uDF2B-\uDFFF]|\uD838[\uDC00-\uDC2F\uDC6E-\uDCFF\uDD2D-\uDD36\uDD3E-\uDD4D\uDD4F-\uDE8F\uDEAE-\uDEBF\uDEEC-\uDFFF]|\uD839[\uDC00-\uDCCF\uDCEC-\uDFDF\uDFE7\uDFEC\uDFEF\uDFFF]|\uD83A[\uDCC5-\uDCFF\uDD44-\uDD4A\uDD4C-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD869[\uDEE0-\uDEFF]|\uD86D[\uDF3A-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDF4F]|\uD888[\uDFB0-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)/g;
|
31
31
|
var recursivelyApplyWhiteSpace = function recursivelyApplyWhiteSpace(children) {
|
32
32
|
return _react.Children.map(children, function (child) {
|
33
33
|
return /*#__PURE__*/(0, _react.isValidElement)(child) ? /*#__PURE__*/(0, _react.cloneElement)(child, _objectSpread(_objectSpread({}, child.props), {}, {
|
@@ -1,8 +1,17 @@
|
|
1
1
|
import type { VFC } from "react";
|
2
2
|
export interface UserContentProps {
|
3
|
+
/**
|
4
|
+
* Whether to apply the styled content class to the `UserContent`.
|
5
|
+
* @default true
|
6
|
+
*/
|
3
7
|
styled?: boolean;
|
4
|
-
/**
|
8
|
+
/**
|
9
|
+
* Additional classes to apply to the `UserContent`.
|
10
|
+
*/
|
5
11
|
className?: string;
|
12
|
+
/**
|
13
|
+
* The content of the `UserContent`.
|
14
|
+
*/
|
6
15
|
content?: string;
|
7
16
|
}
|
8
17
|
/**
|
@@ -17,4 +17,4 @@ export { QueryBreakdownIcon } from "./QueryBreakdownIcon";
|
|
17
17
|
export { BulbIcon } from "./BulbIcon";
|
18
18
|
export { TestingIcon } from "./TestingIcon";
|
19
19
|
export { RocketIcon } from "./RocketIcon";
|
20
|
-
export { ActivityIcon, AirplayIcon, AlertCircleIcon, AlertOctagonIcon, AlertTriangleIcon, AlignCenterIcon, AlignJustifyIcon, AlignLeftIcon, AlignRightIcon, AnchorIcon, ApertureIcon, ArchiveIcon, ArrowDownCircleIcon, ArrowDownIcon, ArrowDownLeftIcon, ArrowDownRightIcon, ArrowLeftCircleIcon, ArrowLeftIcon, ArrowRightCircleIcon, ArrowRightIcon, ArrowUpCircleIcon, ArrowUpIcon, ArrowUpLeftIcon, ArrowUpRightIcon, AtSignIcon, AwardIcon, BanIcon, BarChart2Icon, BarChartIcon, BatteryChargingIcon, BatteryIcon, BellIcon, BellOffIcon, BluetoothIcon, BoldIcon, BookIcon, BookmarkIcon, BookOpenIcon, BoxIcon, BriefcaseIcon, CalendarIcon, CameraIcon, CameraOffIcon, CastIcon, CheckCircleIcon, CheckIcon, CheckSquareIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronsDownIcon, ChevronsLeftIcon, ChevronsRightIcon, ChevronsUpIcon, ChevronUpIcon, ChromeIcon, CircleIcon, ClipboardIcon, ClockIcon, CloudDrizzleIcon, CloudIcon, CloudLightningIcon, CloudOffIcon, CloudRainIcon, CloudSnowIcon, CodeIcon, CodepenIcon, CodesandboxIcon, CoffeeIcon, ColumnsIcon, CommandIcon, CompassIcon, CopyIcon, CornerDownLeftIcon, CornerDownRightIcon, CornerLeftDownIcon, CornerLeftUpIcon, CornerRightDownIcon, CornerRightUpIcon, CornerUpLeftIcon, CornerUpRightIcon, CpuIcon, CreditCardIcon, CropIcon, CrosshairIcon, DatabaseIcon, DeleteIcon, DiscIcon, DivideCircleIcon, DivideIcon, DivideSquareIcon, DollarSignIcon, DownloadCloudIcon, DownloadIcon, DribbbleIcon, DropletIcon, Edit2Icon, Edit3Icon, EditIcon, ExternalLinkIcon, EyeIcon, EyeOffIcon, FacebookIcon, FastForwardIcon, FeatherIcon, FigmaIcon, FileIcon, FileMinusIcon, FilePlusIcon, FileSearchIcon, FileTextIcon, FilmIcon, FilterIcon, FlagIcon, FlaskConicalIcon, FolderIcon, FolderMinusIcon, FolderPlusIcon, FramerIcon, FrownIcon, GiftIcon, GitBranchIcon, GitCommitIcon, GithubIcon, GitlabIcon, GitMergeIcon, GitPullRequestIcon, GlobeIcon, HardDriveIcon, HashIcon, HeadphonesIcon, HeartIcon, HelpCircleIcon, HexagonIcon, HomeIcon, ImageIcon, ImageOffIcon, InboxIcon, InfoIcon, InstagramIcon, ItalicIcon, KeyIcon, Landmark, LayersIcon, LayoutGridIcon, LayoutIcon, LifeBuoyIcon, Link2Icon, LinkedinIcon, LinkIcon, ListIcon, LoaderIcon, LockIcon, LogInIcon, LogOutIcon, MailIcon, MapIcon, MapPinIcon, Maximize2Icon, MaximizeIcon, MehIcon, MenuIcon, MergeIcon, MessageCircleIcon, MessageSquareIcon, MicIcon, MicOffIcon, Minimize2Icon, MinimizeIcon, MinusCircleIcon, MinusIcon, MinusSquareIcon, MonitorIcon, MoonIcon, MoreHorizontalIcon, MoreVerticalIcon, MousePointerIcon, MoveIcon, MusicIcon, Navigation2Icon, NavigationIcon, OctagonIcon, PackageIcon, PaperclipIcon, PauseCircleIcon, PauseIcon, PenToolIcon, PercentIcon, PhoneCallIcon, PhoneForwardedIcon, PhoneIcon, PhoneIncomingIcon, PhoneMissedIcon, PhoneOffIcon, PhoneOutgoingIcon, PieChartIcon, PlayCircleIcon, PlayIcon, PlusCircleIcon, PlusIcon, PlusSquareIcon, PocketIcon, PowerIcon, PrinterIcon, RadioIcon, RefreshCcwIcon, RefreshCwIcon, RepeatIcon, RewindIcon, RotateCcwIcon, RotateCwIcon, RssIcon, SaveIcon, ScissorsIcon, SearchIcon, SearchXIcon, SendIcon, ServerCogIcon, ServerCrashIcon, ServerIcon, SettingsIcon, Share2Icon, ShareIcon, ShieldIcon, ShieldOffIcon, ShoppingBagIcon, ShoppingCartIcon, ShuffleIcon, SidebarIcon, SkipBackIcon, SkipForwardIcon, SlackIcon, SlidersIcon, SmartphoneIcon, SmileIcon, SpeakerIcon, SquareIcon, StarIcon, StopCircleIcon, SunIcon, SunriseIcon, SunsetIcon, TableIcon, TabletIcon, TagIcon, TargetIcon, TerminalIcon, ThermometerIcon, ThumbsDownIcon, ThumbsUpIcon, ToggleLeftIcon, ToggleRightIcon, Trash2Icon, TrashIcon, TrelloIcon, TrendingDownIcon, TrendingUpIcon, TriangleIcon, TruckIcon, TvIcon, TwitchIcon, TwitterIcon, TypeIcon, UmbrellaIcon, UnderlineIcon, UnlockIcon, UploadCloudIcon, UploadIcon, UserCheckIcon, UserIcon, UserMinusIcon, UserPlusIcon, UsersIcon, UserXIcon, VideoIcon, VideoOffIcon, VoicemailIcon, Volume1Icon, Volume2Icon, VolumeIcon, VolumeXIcon, WatchIcon, WifiIcon, WifiOffIcon, WindIcon, WrenchIcon, XCircleIcon, XIcon, XOctagonIcon, XSquareIcon, YoutubeIcon, ZapIcon, ZapOffIcon, ZoomInIcon, ZoomOutIcon, } from "lucide-react";
|
20
|
+
export { ActivityIcon, AirplayIcon, AlertCircleIcon, AlertOctagonIcon, AlertTriangleIcon, AlignCenterIcon, AlignJustifyIcon, AlignLeftIcon, AlignRightIcon, AnchorIcon, ApertureIcon, ArchiveIcon, ArrowDownCircleIcon, ArrowDownIcon, ArrowDownLeftIcon, ArrowDownRightIcon, ArrowLeftCircleIcon, ArrowLeftIcon, ArrowRightCircleIcon, ArrowRightIcon, ArrowUpCircleIcon, ArrowUpIcon, ArrowUpLeftIcon, ArrowUpRightIcon, AtSignIcon, AwardIcon, BanIcon, BarChart2Icon, BarChartIcon, BatteryChargingIcon, BatteryIcon, BellIcon, BellOffIcon, BlocksIcon, BluetoothIcon, BoldIcon, BookIcon, BookmarkIcon, BookOpenIcon, BoxIcon, BriefcaseIcon, CalendarIcon, CameraIcon, CameraOffIcon, CastIcon, CheckCircleIcon, CheckIcon, CheckSquareIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronsDownIcon, ChevronsLeftIcon, ChevronsRightIcon, ChevronsUpIcon, ChevronUpIcon, ChromeIcon, CircleIcon, ClipboardIcon, ClockIcon, CloudDrizzleIcon, CloudIcon, CloudLightningIcon, CloudOffIcon, CloudRainIcon, CloudSnowIcon, CodeIcon, CodepenIcon, CodesandboxIcon, CoffeeIcon, ColumnsIcon, CommandIcon, CompassIcon, CopyIcon, CornerDownLeftIcon, CornerDownRightIcon, CornerLeftDownIcon, CornerLeftUpIcon, CornerRightDownIcon, CornerRightUpIcon, CornerUpLeftIcon, CornerUpRightIcon, CpuIcon, CreditCardIcon, CropIcon, CrosshairIcon, DatabaseIcon, DeleteIcon, DiscIcon, DivideCircleIcon, DivideIcon, DivideSquareIcon, DollarSignIcon, DownloadCloudIcon, DownloadIcon, DribbbleIcon, DropletIcon, Edit2Icon, Edit3Icon, EditIcon, ExternalLinkIcon, EyeIcon, EyeOffIcon, FacebookIcon, FastForwardIcon, FeatherIcon, FigmaIcon, FileIcon, FileMinusIcon, FilePlusIcon, FileSearchIcon, FileTextIcon, FilmIcon, FilterIcon, FlagIcon, FlaskConicalIcon, FolderIcon, FolderMinusIcon, FolderPlusIcon, FramerIcon, FrownIcon, GiftIcon, GitBranchIcon, GitCommitIcon, GithubIcon, GitlabIcon, GitMergeIcon, GitPullRequestIcon, GlobeIcon, HardDriveIcon, HashIcon, HeadphonesIcon, HeartIcon, HelpCircleIcon, HexagonIcon, HomeIcon, ImageIcon, ImageOffIcon, InboxIcon, InfoIcon, InstagramIcon, ItalicIcon, KeyIcon, Landmark, LayersIcon, LayoutGridIcon, LayoutIcon, LifeBuoyIcon, Link2Icon, LinkedinIcon, LinkIcon, ListIcon, LoaderIcon, LockIcon, LogInIcon, LogOutIcon, MailIcon, MapIcon, MapPinIcon, Maximize2Icon, MaximizeIcon, MehIcon, MenuIcon, MergeIcon, MessageCircleIcon, MessageSquareIcon, MicIcon, MicOffIcon, Minimize2Icon, MinimizeIcon, MinusCircleIcon, MinusIcon, MinusSquareIcon, MonitorIcon, MoonIcon, MoreHorizontalIcon, MoreVerticalIcon, MousePointerIcon, MoveIcon, MusicIcon, Navigation2Icon, NavigationIcon, OctagonIcon, PackageIcon, PaperclipIcon, PauseCircleIcon, PauseIcon, PenToolIcon, PercentIcon, PhoneCallIcon, PhoneForwardedIcon, PhoneIcon, PhoneIncomingIcon, PhoneMissedIcon, PhoneOffIcon, PhoneOutgoingIcon, PieChartIcon, PlayCircleIcon, PlayIcon, PlusCircleIcon, PlusIcon, PlusSquareIcon, PocketIcon, PowerIcon, PrinterIcon, RadioIcon, RefreshCcwIcon, RefreshCwIcon, RepeatIcon, RewindIcon, RotateCcwIcon, RotateCwIcon, RssIcon, SaveIcon, ScissorsIcon, SearchIcon, SearchXIcon, SendIcon, ServerCogIcon, ServerCrashIcon, ServerIcon, SettingsIcon, Share2Icon, ShareIcon, ShieldIcon, ShieldOffIcon, ShoppingBagIcon, ShoppingCartIcon, ShuffleIcon, SidebarIcon, SkipBackIcon, SkipForwardIcon, SlackIcon, SlidersIcon, SmartphoneIcon, SmileIcon, SpeakerIcon, SquareIcon, StarIcon, StopCircleIcon, SunIcon, SunriseIcon, SunsetIcon, TableIcon, TabletIcon, TagIcon, TargetIcon, TerminalIcon, ThermometerIcon, ThumbsDownIcon, ThumbsUpIcon, ToggleLeftIcon, ToggleRightIcon, Trash2Icon, TrashIcon, TrelloIcon, TrendingDownIcon, TrendingUpIcon, TriangleIcon, TruckIcon, TvIcon, TwitchIcon, TwitterIcon, TypeIcon, UmbrellaIcon, UnderlineIcon, UnlockIcon, UploadCloudIcon, UploadIcon, UserCheckIcon, UserIcon, UserMinusIcon, UserPlusIcon, UsersIcon, UserXIcon, VideoIcon, VideoOffIcon, VoicemailIcon, Volume1Icon, Volume2Icon, VolumeIcon, VolumeXIcon, WatchIcon, WifiIcon, WifiOffIcon, WindIcon, WrenchIcon, XCircleIcon, XIcon, XOctagonIcon, XSquareIcon, YoutubeIcon, ZapIcon, ZapOffIcon, ZoomInIcon, ZoomOutIcon, } from "lucide-react";
|
package/dist/cjs/Icons/index.js
CHANGED
@@ -213,6 +213,12 @@ Object.defineProperty(exports, "BellOffIcon", {
|
|
213
213
|
return _lucideReact.BellOffIcon;
|
214
214
|
}
|
215
215
|
});
|
216
|
+
Object.defineProperty(exports, "BlocksIcon", {
|
217
|
+
enumerable: true,
|
218
|
+
get: function get() {
|
219
|
+
return _lucideReact.BlocksIcon;
|
220
|
+
}
|
221
|
+
});
|
216
222
|
Object.defineProperty(exports, "BluetoothIcon", {
|
217
223
|
enumerable: true,
|
218
224
|
get: function get() {
|
@@ -9,9 +9,13 @@ interface BaseBadgeProps extends HTMLAttributes<HTMLSpanElement> {
|
|
9
9
|
}
|
10
10
|
declare type BadgeContentProps = {
|
11
11
|
children: ReactNode;
|
12
|
-
/**
|
12
|
+
/**
|
13
|
+
* An additional value to accompany the `Badge`
|
14
|
+
*/
|
13
15
|
value: ReactNode;
|
14
|
-
/**
|
16
|
+
/**
|
17
|
+
* Left aligned icon
|
18
|
+
*/
|
15
19
|
icon: IconComponentType;
|
16
20
|
};
|
17
21
|
export declare type BadgeProps = BaseBadgeProps & AtLeastOne<BadgeContentProps>;
|
@@ -20,19 +20,28 @@ var tagPlugin = plugin(function (_ref) {
|
|
20
20
|
display: "inline-flex",
|
21
21
|
alignItems: "center",
|
22
22
|
height: "100%",
|
23
|
-
borderRadius: theme("borderRadius.DEFAULT"),
|
24
23
|
paddingLeft: theme("spacing.2"),
|
25
24
|
paddingRight: theme("spacing.2"),
|
26
25
|
marginLeft: "-".concat(theme("spacing.2")),
|
27
|
-
columnGap: theme("spacing.2")
|
26
|
+
columnGap: theme("spacing.2"),
|
27
|
+
"&:focus-visible": {
|
28
|
+
borderRadius: theme("borderRadius.DEFAULT")
|
29
|
+
},
|
30
|
+
"&:has(+ .tag-close-button):focus-visible": {
|
31
|
+
borderTopRightRadius: "0px",
|
32
|
+
borderBottomRightRadius: "0px"
|
33
|
+
}
|
28
34
|
},
|
29
35
|
".tag-close-button": {
|
30
36
|
height: "100%",
|
31
|
-
borderRadius: theme("borderRadius.DEFAULT"),
|
32
37
|
paddingLeft: theme("spacing.1"),
|
33
38
|
paddingRight: theme("spacing.1"),
|
34
39
|
marginRight: "-".concat(theme("spacing.2")),
|
35
|
-
borderLeft: "1px solid transparent"
|
40
|
+
borderLeft: "1px solid transparent",
|
41
|
+
"&:focus-visible": {
|
42
|
+
borderTopRightRadius: theme("borderRadius.DEFAULT"),
|
43
|
+
borderBottomRightRadius: theme("borderRadius.DEFAULT")
|
44
|
+
}
|
36
45
|
}
|
37
46
|
});
|
38
47
|
});
|