@nation-a/ui 0.9.0 → 0.9.2
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/index.cjs +258 -294
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +258 -294
- package/dist/index.js.map +1 -1
- package/dist/styled-system/styles.css +210 -76
- package/dist/styled-system/tokens/index.mjs +76 -16
- package/dist/styled-system/tokens/tokens.d.ts +3 -3
- package/dist/styled-system/types/prop-type.d.ts +1 -1
- package/dist/types/components/BottomSheet/BottomSheet.stories.d.ts +6 -0
- package/dist/types/components/Button/button.recipe.d.ts +2 -1
- package/dist/types/components/Dialog/dialog.recipe.d.ts +2 -1
- package/dist/types/components/IconButton/icon-button.recipe.d.ts +2 -1
- package/dist/types/components/Input/index.d.ts +4 -17
- package/dist/types/components/Input/input.recipe.d.ts +74 -52
- package/dist/types/components/Navigation/navigation.recipe.d.ts +2 -1
- package/dist/types/components/Spinner/index.d.ts +273 -5
- package/dist/types/components/Spinner/spinner.recipe.d.ts +2 -1
- package/dist/types/components/Tabs/Tabs.stories.d.ts +10 -0
- package/dist/types/components/Tabs/index.d.ts +26 -0
- package/dist/types/components/Tabs/tabs.recipe.d.ts +67 -0
- package/dist/types/components/Tag/index.d.ts +2 -1
- package/dist/types/components/Tag/tag.recipe.d.ts +2 -1
- package/dist/types/components/Text/index.d.ts +273 -1
- package/dist/types/components/Text/text.recipe.d.ts +2 -1
- package/dist/types/components/TextArea/index.d.ts +4 -13
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -4116,17 +4116,17 @@ const spinnerRecipe = cva({
|
|
|
4116
4116
|
}
|
|
4117
4117
|
});
|
|
4118
4118
|
const Spinner = React.forwardRef((props, ref) => {
|
|
4119
|
-
const { color, ...rest } = props;
|
|
4120
4119
|
const StyledSpinner = styled(ark.div, spinnerRecipe);
|
|
4121
4120
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4122
4121
|
StyledSpinner,
|
|
4123
4122
|
{
|
|
4124
4123
|
ref,
|
|
4125
|
-
...
|
|
4124
|
+
...props,
|
|
4126
4125
|
css: {
|
|
4127
4126
|
borderColor: "inherit",
|
|
4128
4127
|
borderBottomColor: "transparent",
|
|
4129
|
-
borderLeftColor: "transparent"
|
|
4128
|
+
borderLeftColor: "transparent",
|
|
4129
|
+
...props.css
|
|
4130
4130
|
}
|
|
4131
4131
|
}
|
|
4132
4132
|
);
|
|
@@ -4744,15 +4744,12 @@ const dialogRecipe = sva({
|
|
|
4744
4744
|
slots: [...anatomy$1.keys(), "header", "footer", "body"],
|
|
4745
4745
|
base: {
|
|
4746
4746
|
backdrop: {
|
|
4747
|
-
backdropFilter: "blur(
|
|
4748
|
-
background:
|
|
4749
|
-
_light: "white.100A",
|
|
4750
|
-
_dark: "black.100A"
|
|
4751
|
-
},
|
|
4747
|
+
backdropFilter: "blur(3px)",
|
|
4748
|
+
background: "shadow.overlay",
|
|
4752
4749
|
height: "100vh",
|
|
4753
|
-
left: "0",
|
|
4754
4750
|
position: "fixed",
|
|
4755
4751
|
top: "0",
|
|
4752
|
+
left: "0",
|
|
4756
4753
|
width: "100vw",
|
|
4757
4754
|
zIndex: "overlay",
|
|
4758
4755
|
_open: {
|
|
@@ -4832,7 +4829,7 @@ const Backdrop$1 = withContext$1(DialogBackdrop, "backdrop");
|
|
|
4832
4829
|
const Trigger$1 = withContext$1(DialogTrigger, "trigger");
|
|
4833
4830
|
const Content = withContext$1(DialogContent, "content");
|
|
4834
4831
|
const Title = withContext$1(DialogTitle, "title");
|
|
4835
|
-
const Description
|
|
4832
|
+
const Description = withContext$1(DialogDescription, "description");
|
|
4836
4833
|
const Positioner = withContext$1(DialogPositioner, "positioner");
|
|
4837
4834
|
const Header = withContext$1(ark.header, "header");
|
|
4838
4835
|
const Footer = withContext$1(
|
|
@@ -4861,7 +4858,7 @@ const Dialog = {
|
|
|
4861
4858
|
Trigger: Trigger$1,
|
|
4862
4859
|
Content,
|
|
4863
4860
|
Title,
|
|
4864
|
-
Description
|
|
4861
|
+
Description,
|
|
4865
4862
|
Positioner,
|
|
4866
4863
|
Header,
|
|
4867
4864
|
Footer,
|
|
@@ -8916,9 +8913,7 @@ const Tag = React.forwardRef(({ imageSrc, text, onDeleteClick, ...rest }, ref) =
|
|
|
8916
8913
|
styled.img,
|
|
8917
8914
|
{
|
|
8918
8915
|
src: imageSrc,
|
|
8919
|
-
width: 8,
|
|
8920
|
-
height: 8,
|
|
8921
|
-
className: css$1({ borderRadius: "full", overflow: "hidden" }),
|
|
8916
|
+
className: css$1({ borderRadius: "full", overflow: "hidden", width: 8, height: 8 }),
|
|
8922
8917
|
alt: "avatar thumbnail"
|
|
8923
8918
|
}
|
|
8924
8919
|
) : null,
|
|
@@ -8927,186 +8922,186 @@ const Tag = React.forwardRef(({ imageSrc, text, onDeleteClick, ...rest }, ref) =
|
|
|
8927
8922
|
] });
|
|
8928
8923
|
});
|
|
8929
8924
|
Tag.displayName = "Tag";
|
|
8930
|
-
const inputRecipe =
|
|
8925
|
+
const inputRecipe = sva({
|
|
8926
|
+
className: "input",
|
|
8927
|
+
slots: ["inputContainer", "requiredStar", "description", "label", "textLengthIndicator"],
|
|
8931
8928
|
base: {
|
|
8932
|
-
|
|
8933
|
-
|
|
8934
|
-
|
|
8935
|
-
|
|
8936
|
-
|
|
8937
|
-
|
|
8938
|
-
|
|
8939
|
-
|
|
8940
|
-
|
|
8941
|
-
|
|
8942
|
-
|
|
8943
|
-
|
|
8944
|
-
p: 2,
|
|
8945
|
-
"& textarea, & input": {
|
|
8929
|
+
inputContainer: {
|
|
8930
|
+
display: "flex",
|
|
8931
|
+
flexDirection: "column",
|
|
8932
|
+
alignItems: "center",
|
|
8933
|
+
justifyContent: "center",
|
|
8934
|
+
width: "100%",
|
|
8935
|
+
textStyle: "body.md",
|
|
8936
|
+
cursor: "text",
|
|
8937
|
+
color: "content.neutral.bold",
|
|
8938
|
+
gap: 1,
|
|
8939
|
+
borderStyle: "solid",
|
|
8940
|
+
border: 1,
|
|
8946
8941
|
outline: "none",
|
|
8942
|
+
p: 2,
|
|
8943
|
+
"& input, & textarea": {
|
|
8944
|
+
outline: "none",
|
|
8945
|
+
width: "100%",
|
|
8946
|
+
height: "100%"
|
|
8947
|
+
},
|
|
8948
|
+
_groupDisabled: {
|
|
8949
|
+
cursor: "not-allowed",
|
|
8950
|
+
color: "content.neutral.disabled"
|
|
8951
|
+
}
|
|
8952
|
+
},
|
|
8953
|
+
requiredStar: {
|
|
8954
|
+
color: "content.danger.default",
|
|
8955
|
+
paddingLeft: 1
|
|
8956
|
+
},
|
|
8957
|
+
description: {
|
|
8958
|
+
textStyle: "label.sm",
|
|
8959
|
+
color: "content.neutral.subtle",
|
|
8960
|
+
paddingLeft: 1,
|
|
8947
8961
|
width: "100%",
|
|
8948
|
-
|
|
8962
|
+
textAlign: "start"
|
|
8963
|
+
},
|
|
8964
|
+
label: {
|
|
8965
|
+
textStyle: "label.sm",
|
|
8966
|
+
textAlign: "start",
|
|
8967
|
+
width: "100%",
|
|
8968
|
+
display: "inline-block"
|
|
8969
|
+
},
|
|
8970
|
+
textLengthIndicator: {
|
|
8971
|
+
display: "inline-block",
|
|
8972
|
+
width: "100%",
|
|
8973
|
+
textAlign: "end",
|
|
8974
|
+
paddingRight: 1,
|
|
8975
|
+
marginTop: -0.5,
|
|
8976
|
+
textStyle: "label.sm",
|
|
8977
|
+
color: "content.neutral.subtlest",
|
|
8978
|
+
_groupDisabled: { color: "content.neutral.disabled" }
|
|
8949
8979
|
}
|
|
8950
8980
|
},
|
|
8951
8981
|
variants: {
|
|
8952
8982
|
isTextArea: {
|
|
8953
8983
|
true: {
|
|
8954
|
-
|
|
8955
|
-
|
|
8956
|
-
|
|
8957
|
-
|
|
8958
|
-
|
|
8959
|
-
|
|
8984
|
+
inputContainer: {
|
|
8985
|
+
minHeight: "56px",
|
|
8986
|
+
"& textarea": {
|
|
8987
|
+
background: "transparent",
|
|
8988
|
+
resize: "none",
|
|
8989
|
+
overflowY: "auto"
|
|
8990
|
+
}
|
|
8960
8991
|
}
|
|
8961
8992
|
},
|
|
8962
8993
|
false: {
|
|
8963
|
-
|
|
8964
|
-
|
|
8994
|
+
inputContainer: {
|
|
8995
|
+
minHeight: "48px",
|
|
8996
|
+
maxHeight: "60px"
|
|
8997
|
+
}
|
|
8965
8998
|
}
|
|
8966
8999
|
},
|
|
8967
9000
|
variant: {
|
|
8968
9001
|
solid: {
|
|
8969
|
-
|
|
9002
|
+
inputContainer: {
|
|
9003
|
+
borderColor: "transparent",
|
|
9004
|
+
_focusWithin: {
|
|
9005
|
+
borderColor: "border.neutral.default"
|
|
9006
|
+
}
|
|
9007
|
+
}
|
|
8970
9008
|
},
|
|
8971
9009
|
line: {
|
|
8972
|
-
|
|
9010
|
+
inputContainer: {
|
|
9011
|
+
background: "transparent",
|
|
9012
|
+
border: 1,
|
|
9013
|
+
borderColor: "border.neutral.subtle",
|
|
9014
|
+
_focusWithin: {
|
|
9015
|
+
borderColor: "border.neutral.default"
|
|
9016
|
+
},
|
|
9017
|
+
_groupDisabled: {
|
|
9018
|
+
borderColor: "border.neutral.disabled"
|
|
9019
|
+
}
|
|
9020
|
+
}
|
|
8973
9021
|
}
|
|
8974
9022
|
},
|
|
8975
9023
|
color: {
|
|
8976
9024
|
alpha: {
|
|
8977
|
-
|
|
8978
|
-
|
|
9025
|
+
inputContainer: {
|
|
9026
|
+
_placeholder: {
|
|
9027
|
+
color: "content.static.white.subtlest",
|
|
9028
|
+
_groupDisabled: {
|
|
9029
|
+
color: "content.static.white.disabled"
|
|
9030
|
+
}
|
|
9031
|
+
}
|
|
9032
|
+
},
|
|
9033
|
+
label: {
|
|
9034
|
+
color: "content.neutral.default",
|
|
9035
|
+
_groupDisabled: {
|
|
9036
|
+
color: "content.neutral.disabled"
|
|
9037
|
+
}
|
|
8979
9038
|
}
|
|
8980
9039
|
},
|
|
8981
9040
|
neutral: {
|
|
8982
|
-
|
|
8983
|
-
|
|
9041
|
+
inputContainer: {
|
|
9042
|
+
_placeholder: {
|
|
9043
|
+
color: "content.neutral.subtlest",
|
|
9044
|
+
_groupDisabled: {
|
|
9045
|
+
color: "content.neutral.disabled"
|
|
9046
|
+
}
|
|
9047
|
+
}
|
|
9048
|
+
},
|
|
9049
|
+
label: {
|
|
9050
|
+
color: "content.neutral.subtle",
|
|
9051
|
+
_groupDisabled: {
|
|
9052
|
+
color: "content.neutral.disabled"
|
|
9053
|
+
}
|
|
8984
9054
|
}
|
|
8985
9055
|
}
|
|
8986
9056
|
},
|
|
8987
9057
|
radius: {
|
|
8988
9058
|
md: {
|
|
8989
|
-
|
|
8990
|
-
|
|
9059
|
+
inputContainer: {
|
|
9060
|
+
borderRadius: 8,
|
|
9061
|
+
px: 2
|
|
9062
|
+
}
|
|
8991
9063
|
},
|
|
8992
9064
|
lg: {
|
|
8993
|
-
|
|
8994
|
-
|
|
9065
|
+
inputContainer: {
|
|
9066
|
+
borderRadius: 16,
|
|
9067
|
+
px: 2
|
|
9068
|
+
}
|
|
8995
9069
|
},
|
|
8996
9070
|
full: {
|
|
8997
|
-
|
|
8998
|
-
|
|
9071
|
+
inputContainer: {
|
|
9072
|
+
borderRadius: 9999,
|
|
9073
|
+
px: 4
|
|
9074
|
+
}
|
|
8999
9075
|
}
|
|
9000
9076
|
},
|
|
9001
|
-
|
|
9002
|
-
|
|
9003
|
-
|
|
9004
|
-
|
|
9005
|
-
|
|
9006
|
-
selected: {
|
|
9007
|
-
color: "content.neutral.bold"
|
|
9008
|
-
},
|
|
9009
|
-
disabled: {
|
|
9010
|
-
color: "content.neutral.disabled"
|
|
9077
|
+
disabled: {
|
|
9078
|
+
true: {
|
|
9079
|
+
inputContainer: {
|
|
9080
|
+
_groupDisabled: {}
|
|
9081
|
+
}
|
|
9011
9082
|
}
|
|
9012
9083
|
}
|
|
9013
9084
|
},
|
|
9014
9085
|
compoundVariants: [
|
|
9015
|
-
{
|
|
9016
|
-
color: "alpha",
|
|
9017
|
-
state: "disabled",
|
|
9018
|
-
css: {
|
|
9019
|
-
"&::placeholder": {
|
|
9020
|
-
color: "content.static.white.disabled"
|
|
9021
|
-
}
|
|
9022
|
-
}
|
|
9023
|
-
},
|
|
9024
|
-
{
|
|
9025
|
-
color: "neutral",
|
|
9026
|
-
state: "disabled",
|
|
9027
|
-
css: {
|
|
9028
|
-
"&::placeholder": {
|
|
9029
|
-
color: "content.neutral.disabled"
|
|
9030
|
-
}
|
|
9031
|
-
}
|
|
9032
|
-
},
|
|
9033
|
-
{
|
|
9034
|
-
variant: "solid",
|
|
9035
|
-
color: "alpha",
|
|
9036
|
-
state: "default",
|
|
9037
|
-
css: {
|
|
9038
|
-
background: "black.500A"
|
|
9039
|
-
}
|
|
9040
|
-
},
|
|
9041
|
-
{
|
|
9042
|
-
variant: "solid",
|
|
9043
|
-
color: "alpha",
|
|
9044
|
-
state: "selected",
|
|
9045
|
-
css: {
|
|
9046
|
-
background: "black.500A",
|
|
9047
|
-
border: 1,
|
|
9048
|
-
borderColor: "border.neutral.default"
|
|
9049
|
-
}
|
|
9050
|
-
},
|
|
9051
9086
|
{
|
|
9052
9087
|
variant: "solid",
|
|
9053
9088
|
color: "alpha",
|
|
9054
|
-
state: "disabled",
|
|
9055
|
-
css: {
|
|
9056
|
-
background: "black.500A"
|
|
9057
|
-
}
|
|
9058
|
-
},
|
|
9059
|
-
{
|
|
9060
|
-
variant: "solid",
|
|
9061
|
-
color: "neutral",
|
|
9062
|
-
state: "default",
|
|
9063
|
-
css: {
|
|
9064
|
-
background: "background.neutral.default"
|
|
9065
|
-
}
|
|
9066
|
-
},
|
|
9067
|
-
{
|
|
9068
|
-
variant: "solid",
|
|
9069
|
-
color: "neutral",
|
|
9070
|
-
state: "selected",
|
|
9071
9089
|
css: {
|
|
9072
|
-
|
|
9073
|
-
|
|
9074
|
-
|
|
9090
|
+
inputContainer: {
|
|
9091
|
+
background: "black.500A"
|
|
9092
|
+
}
|
|
9075
9093
|
}
|
|
9076
9094
|
},
|
|
9077
9095
|
{
|
|
9078
9096
|
variant: "solid",
|
|
9079
9097
|
color: "neutral",
|
|
9080
|
-
state: "disabled",
|
|
9081
9098
|
css: {
|
|
9082
|
-
|
|
9083
|
-
|
|
9084
|
-
|
|
9085
|
-
|
|
9086
|
-
|
|
9087
|
-
|
|
9088
|
-
css: {
|
|
9089
|
-
background: "transparent",
|
|
9090
|
-
border: 1,
|
|
9091
|
-
borderColor: "border.neutral.subtle"
|
|
9092
|
-
}
|
|
9093
|
-
},
|
|
9094
|
-
{
|
|
9095
|
-
variant: "line",
|
|
9096
|
-
state: "selected",
|
|
9097
|
-
css: {
|
|
9098
|
-
background: "transparent",
|
|
9099
|
-
border: 1,
|
|
9100
|
-
borderColor: "border.neutral.default"
|
|
9101
|
-
}
|
|
9102
|
-
},
|
|
9103
|
-
{
|
|
9104
|
-
variant: "line",
|
|
9105
|
-
state: "disabled",
|
|
9106
|
-
css: {
|
|
9107
|
-
background: "transparent",
|
|
9108
|
-
border: 1,
|
|
9109
|
-
borderColor: "border.neutral.disabled"
|
|
9099
|
+
inputContainer: {
|
|
9100
|
+
background: "background.neutral.default",
|
|
9101
|
+
_groupDisabled: {
|
|
9102
|
+
background: "background.neutral.disabled"
|
|
9103
|
+
}
|
|
9104
|
+
}
|
|
9110
9105
|
}
|
|
9111
9106
|
}
|
|
9112
9107
|
],
|
|
@@ -9114,114 +9109,75 @@ const inputRecipe = cva({
|
|
|
9114
9109
|
isTextArea: false,
|
|
9115
9110
|
variant: "solid",
|
|
9116
9111
|
color: "neutral",
|
|
9117
|
-
state: "default",
|
|
9118
9112
|
radius: "md"
|
|
9119
9113
|
}
|
|
9120
9114
|
});
|
|
9121
|
-
const
|
|
9122
|
-
|
|
9123
|
-
|
|
9124
|
-
|
|
9125
|
-
|
|
9126
|
-
|
|
9127
|
-
|
|
9128
|
-
|
|
9129
|
-
|
|
9130
|
-
|
|
9131
|
-
|
|
9132
|
-
|
|
9133
|
-
|
|
9134
|
-
|
|
9135
|
-
|
|
9136
|
-
|
|
9115
|
+
const Input = React.forwardRef(
|
|
9116
|
+
({
|
|
9117
|
+
required,
|
|
9118
|
+
disabled,
|
|
9119
|
+
label,
|
|
9120
|
+
description,
|
|
9121
|
+
labelPosition = "outside",
|
|
9122
|
+
textLimit,
|
|
9123
|
+
variant,
|
|
9124
|
+
color,
|
|
9125
|
+
radius,
|
|
9126
|
+
onChange,
|
|
9127
|
+
className,
|
|
9128
|
+
css: css2,
|
|
9129
|
+
...rest
|
|
9130
|
+
}, ref) => {
|
|
9131
|
+
const recipe = inputRecipe({
|
|
9132
|
+
variant,
|
|
9133
|
+
color,
|
|
9134
|
+
radius
|
|
9135
|
+
});
|
|
9136
|
+
const innerRef = React.useRef(null);
|
|
9137
|
+
const inputRef = ref || innerRef;
|
|
9138
|
+
const handleInputChange = React.useCallback(
|
|
9139
|
+
(e) => {
|
|
9140
|
+
if (disabled) return;
|
|
9141
|
+
const { value } = e.target;
|
|
9142
|
+
e.target.value = value.slice(0, textLimit);
|
|
9143
|
+
onChange == null ? void 0 : onChange(e);
|
|
9137
9144
|
},
|
|
9138
|
-
|
|
9139
|
-
|
|
9140
|
-
|
|
9141
|
-
|
|
9142
|
-
|
|
9143
|
-
|
|
9144
|
-
lg: {},
|
|
9145
|
-
full: {}
|
|
9146
|
-
}
|
|
9147
|
-
},
|
|
9148
|
-
compoundVariants: [
|
|
9149
|
-
{
|
|
9150
|
-
state: "disabled",
|
|
9151
|
-
css: {
|
|
9152
|
-
color: "content.neutral.disabled"
|
|
9145
|
+
[disabled, onChange, textLimit]
|
|
9146
|
+
);
|
|
9147
|
+
const handleContainerClick = React.useCallback(() => {
|
|
9148
|
+
if (disabled) return;
|
|
9149
|
+
if (inputRef.current) {
|
|
9150
|
+
inputRef.current.focus();
|
|
9153
9151
|
}
|
|
9154
|
-
}
|
|
9155
|
-
|
|
9156
|
-
|
|
9157
|
-
|
|
9158
|
-
|
|
9159
|
-
|
|
9152
|
+
}, [disabled, inputRef]);
|
|
9153
|
+
const RequiredStar = React.useCallback(
|
|
9154
|
+
() => /* @__PURE__ */ jsxRuntime.jsx("span", { className: recipe.requiredStar, "aria-hidden": "true", children: "*" }),
|
|
9155
|
+
[recipe.requiredStar]
|
|
9156
|
+
);
|
|
9157
|
+
const Description2 = React.useCallback(
|
|
9158
|
+
({ children }) => /* @__PURE__ */ jsxRuntime.jsx("span", { className: recipe.description, children }),
|
|
9159
|
+
[recipe.description]
|
|
9160
|
+
);
|
|
9161
|
+
const Label = React.useCallback(
|
|
9162
|
+
({ visible, children }) => {
|
|
9163
|
+
return visible ? /* @__PURE__ */ jsxRuntime.jsxs("label", { className: recipe.label, children: [
|
|
9164
|
+
children,
|
|
9165
|
+
required && /* @__PURE__ */ jsxRuntime.jsx(RequiredStar, {})
|
|
9166
|
+
] }) : null;
|
|
9167
|
+
},
|
|
9168
|
+
[recipe.label, required, RequiredStar]
|
|
9169
|
+
);
|
|
9170
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(VStack2, { gap: 1, className: "group", "data-disabled": disabled || void 0, children: [
|
|
9171
|
+
/* @__PURE__ */ jsxRuntime.jsx(Label, { visible: !!(label && labelPosition === "outside"), children: label }),
|
|
9172
|
+
/* @__PURE__ */ jsxRuntime.jsxs(Stack2, { gap: 1, className: cx(recipe.inputContainer, className), onClick: handleContainerClick, css: css2, children: [
|
|
9173
|
+
/* @__PURE__ */ jsxRuntime.jsx(Label, { visible: !!(label && labelPosition === "inside"), children: label }),
|
|
9174
|
+
/* @__PURE__ */ jsxRuntime.jsx(styled.input, { ref: inputRef, disabled, onChange: handleInputChange, ...rest })
|
|
9175
|
+
] }),
|
|
9176
|
+
description && /* @__PURE__ */ jsxRuntime.jsx(Description2, { children: description })
|
|
9177
|
+
] });
|
|
9160
9178
|
}
|
|
9161
|
-
|
|
9162
|
-
const StyledInputWrapper = styled(ark.div, inputRecipe);
|
|
9163
|
-
const StyledLabel$1 = styled(ark.label, labelRecipe);
|
|
9164
|
-
const RequiredStar = () => /* @__PURE__ */ jsxRuntime.jsx(ark.span, { className: css$1({ color: "content.danger.default", paddingLeft: 1 }), children: "*" });
|
|
9165
|
-
const Description = ({ children }) => /* @__PURE__ */ jsxRuntime.jsx(ark.span, { className: css$1({ textStyle: "label.sm", color: "content.neutral.subtle", paddingLeft: 1, width: "100%", textAlign: "start" }), children });
|
|
9166
|
-
const Input = React.forwardRef(({ value, required, disabled, label, description, labelPosition = "outside", textLimit, variant, color, radius, onChange, className, ...rest }, ref) => {
|
|
9167
|
-
const [state, setState] = React.useState(disabled ? "disabled" : "default");
|
|
9168
|
-
React.useEffect(() => {
|
|
9169
|
-
setState(disabled ? "disabled" : "default");
|
|
9170
|
-
}, [disabled]);
|
|
9171
|
-
const handleInputChange = (e) => {
|
|
9172
|
-
if (disabled) return;
|
|
9173
|
-
const value2 = e.target.value;
|
|
9174
|
-
if (textLimit && value2.length > textLimit) return;
|
|
9175
|
-
setState(value2 ? "selected" : "default");
|
|
9176
|
-
onChange == null ? void 0 : onChange(e);
|
|
9177
|
-
};
|
|
9178
|
-
const Label = ({ visible, children }) => {
|
|
9179
|
-
console.log("color", color);
|
|
9180
|
-
return visible ? /* @__PURE__ */ jsxRuntime.jsxs(StyledLabel$1, { state, color, radius, children: [
|
|
9181
|
-
children,
|
|
9182
|
-
required && /* @__PURE__ */ jsxRuntime.jsx(RequiredStar, {})
|
|
9183
|
-
] }) : null;
|
|
9184
|
-
};
|
|
9185
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(VStack$1, { gap: 1, children: [
|
|
9186
|
-
/* @__PURE__ */ jsxRuntime.jsx(Label, { visible: !!(label && labelPosition === "outside"), children: label }),
|
|
9187
|
-
/* @__PURE__ */ jsxRuntime.jsxs(StyledInputWrapper, { state, variant, color, radius, className: cx(css$1({ display: "flex", flexDirection: "column", gap: 1 }), className), children: [
|
|
9188
|
-
/* @__PURE__ */ jsxRuntime.jsx(Label, { visible: !!(label && labelPosition === "inside"), children: label }),
|
|
9189
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
9190
|
-
"input",
|
|
9191
|
-
{
|
|
9192
|
-
value,
|
|
9193
|
-
disabled,
|
|
9194
|
-
onFocus: () => !disabled && setState("selected"),
|
|
9195
|
-
onBlur: () => !disabled && setState("default"),
|
|
9196
|
-
onChange: handleInputChange,
|
|
9197
|
-
ref,
|
|
9198
|
-
...rest
|
|
9199
|
-
}
|
|
9200
|
-
)
|
|
9201
|
-
] }),
|
|
9202
|
-
description && /* @__PURE__ */ jsxRuntime.jsx(Description, { children: description })
|
|
9203
|
-
] });
|
|
9204
|
-
});
|
|
9179
|
+
);
|
|
9205
9180
|
Input.displayName = "Input";
|
|
9206
|
-
const StyledTextAreaWrapper = styled(ark.div, inputRecipe);
|
|
9207
|
-
const StyledLabel = styled(ark.label, labelRecipe);
|
|
9208
|
-
const TextLengthIndicator = ({ count, limit, disabled }) => {
|
|
9209
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
9210
|
-
ark.span,
|
|
9211
|
-
{
|
|
9212
|
-
className: css$1({
|
|
9213
|
-
display: "inline-block",
|
|
9214
|
-
width: "100%",
|
|
9215
|
-
textAlign: "end",
|
|
9216
|
-
paddingRight: 1,
|
|
9217
|
-
marginTop: -0.5,
|
|
9218
|
-
textStyle: "label.sm",
|
|
9219
|
-
color: disabled ? "content.neutral.disabled" : "content.neutral.subtlest"
|
|
9220
|
-
}),
|
|
9221
|
-
children: `${count}${limit ? ` / ${limit}` : ""}`
|
|
9222
|
-
}
|
|
9223
|
-
);
|
|
9224
|
-
};
|
|
9225
9181
|
const Textarea = React.forwardRef(
|
|
9226
9182
|
({
|
|
9227
9183
|
value,
|
|
@@ -9232,62 +9188,70 @@ const Textarea = React.forwardRef(
|
|
|
9232
9188
|
labelPosition = "outside",
|
|
9233
9189
|
textLimit,
|
|
9234
9190
|
showTextCount = false,
|
|
9235
|
-
isTextArea,
|
|
9236
9191
|
color,
|
|
9237
9192
|
radius,
|
|
9238
9193
|
variant,
|
|
9239
9194
|
onChange,
|
|
9240
9195
|
className,
|
|
9196
|
+
css: css2,
|
|
9241
9197
|
...rest
|
|
9242
9198
|
}, ref) => {
|
|
9243
|
-
const [
|
|
9244
|
-
|
|
9245
|
-
|
|
9246
|
-
|
|
9247
|
-
|
|
9199
|
+
const [count, setCount] = React.useState((value == null ? void 0 : value.toString().length) || 0);
|
|
9200
|
+
const recipe = inputRecipe({
|
|
9201
|
+
variant,
|
|
9202
|
+
color,
|
|
9203
|
+
radius,
|
|
9204
|
+
isTextArea: true
|
|
9205
|
+
});
|
|
9206
|
+
const innerRef = React.useRef(null);
|
|
9207
|
+
const inputRef = ref || innerRef;
|
|
9208
|
+
const handleTextareaChange = React.useCallback(
|
|
9209
|
+
(e) => {
|
|
9210
|
+
if (disabled) return;
|
|
9211
|
+
const { value: value2 } = e.target;
|
|
9212
|
+
e.target.value = value2.slice(0, textLimit);
|
|
9213
|
+
onChange == null ? void 0 : onChange(e);
|
|
9214
|
+
if (showTextCount) setCount(value2.length);
|
|
9215
|
+
},
|
|
9216
|
+
[disabled, onChange, textLimit, showTextCount]
|
|
9217
|
+
);
|
|
9218
|
+
const handleContainerClick = React.useCallback(() => {
|
|
9248
9219
|
if (disabled) return;
|
|
9249
|
-
|
|
9250
|
-
|
|
9251
|
-
|
|
9252
|
-
|
|
9253
|
-
|
|
9254
|
-
|
|
9255
|
-
|
|
9256
|
-
|
|
9257
|
-
|
|
9258
|
-
|
|
9259
|
-
]
|
|
9260
|
-
|
|
9261
|
-
|
|
9220
|
+
if (inputRef.current) {
|
|
9221
|
+
inputRef.current.focus();
|
|
9222
|
+
}
|
|
9223
|
+
}, [disabled, inputRef]);
|
|
9224
|
+
const RequiredStar = React.useCallback(
|
|
9225
|
+
() => /* @__PURE__ */ jsxRuntime.jsx("span", { className: recipe.requiredStar, "aria-hidden": "true", children: "*" }),
|
|
9226
|
+
[recipe.requiredStar]
|
|
9227
|
+
);
|
|
9228
|
+
const Description2 = React.useCallback(
|
|
9229
|
+
({ children }) => /* @__PURE__ */ jsxRuntime.jsx("span", { className: recipe.description, children }),
|
|
9230
|
+
[recipe.description]
|
|
9231
|
+
);
|
|
9232
|
+
const Label = React.useCallback(
|
|
9233
|
+
({ visible, children }) => {
|
|
9234
|
+
return visible ? /* @__PURE__ */ jsxRuntime.jsxs("label", { className: recipe.label, children: [
|
|
9235
|
+
children,
|
|
9236
|
+
required && /* @__PURE__ */ jsxRuntime.jsx(RequiredStar, {})
|
|
9237
|
+
] }) : null;
|
|
9238
|
+
},
|
|
9239
|
+
[recipe.label, required, RequiredStar]
|
|
9240
|
+
);
|
|
9241
|
+
const TextLengthIndicator = React.useCallback(
|
|
9242
|
+
({ count: count2, limit }) => {
|
|
9243
|
+
return /* @__PURE__ */ jsxRuntime.jsx("span", { className: recipe.textLengthIndicator, children: `${count2}${limit ? ` / ${limit}` : ""}` });
|
|
9244
|
+
},
|
|
9245
|
+
[recipe.textLengthIndicator]
|
|
9246
|
+
);
|
|
9247
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(VStack2, { gap: 1, className: "group", "data-disabled": disabled || void 0, children: [
|
|
9262
9248
|
/* @__PURE__ */ jsxRuntime.jsx(Label, { visible: !!(label && labelPosition === "outside"), children: label }),
|
|
9263
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
9264
|
-
|
|
9265
|
-
{
|
|
9266
|
-
|
|
9267
|
-
|
|
9268
|
-
|
|
9269
|
-
radius,
|
|
9270
|
-
variant,
|
|
9271
|
-
className: cx(css$1({ position: "relative", display: "flex", flexDirection: "column", gap: 1 }), className),
|
|
9272
|
-
children: [
|
|
9273
|
-
/* @__PURE__ */ jsxRuntime.jsx(Label, { visible: !!(label && labelPosition === "inside"), children: label }),
|
|
9274
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
9275
|
-
"textarea",
|
|
9276
|
-
{
|
|
9277
|
-
value,
|
|
9278
|
-
disabled,
|
|
9279
|
-
onChange: handleTextareaChange,
|
|
9280
|
-
onFocus: () => !disabled && setState("selected"),
|
|
9281
|
-
onBlur: () => !disabled && setState("default"),
|
|
9282
|
-
ref,
|
|
9283
|
-
...rest
|
|
9284
|
-
}
|
|
9285
|
-
),
|
|
9286
|
-
showTextCount && /* @__PURE__ */ jsxRuntime.jsx(TextLengthIndicator, { count: value.length, limit: textLimit, disabled })
|
|
9287
|
-
]
|
|
9288
|
-
}
|
|
9289
|
-
),
|
|
9290
|
-
description && /* @__PURE__ */ jsxRuntime.jsx(Description, { children: description })
|
|
9249
|
+
/* @__PURE__ */ jsxRuntime.jsxs(Stack2, { gap: 1, className: cx(recipe.inputContainer, className), onClick: handleContainerClick, css: css2, children: [
|
|
9250
|
+
/* @__PURE__ */ jsxRuntime.jsx(Label, { visible: !!(label && labelPosition === "inside"), children: label }),
|
|
9251
|
+
/* @__PURE__ */ jsxRuntime.jsx("textarea", { ref: inputRef, value, disabled, onChange: handleTextareaChange, ...rest }),
|
|
9252
|
+
showTextCount && /* @__PURE__ */ jsxRuntime.jsx(TextLengthIndicator, { count, limit: textLimit })
|
|
9253
|
+
] }),
|
|
9254
|
+
description && /* @__PURE__ */ jsxRuntime.jsx(Description2, { children: description })
|
|
9291
9255
|
] });
|
|
9292
9256
|
}
|
|
9293
9257
|
);
|
|
@@ -9376,7 +9340,7 @@ const keyframes = defineKeyframes({
|
|
|
9376
9340
|
"100%": { transform: "rotate(360deg)" }
|
|
9377
9341
|
}
|
|
9378
9342
|
});
|
|
9379
|
-
var m = { colors: { content: { neutral: { bold: { value: { base: "{colors.neutral.0}", _dark: "{colors.neutral.1100}" } }, default: { value: { base: "{colors.neutral.300}", _dark: "{colors.neutral.1000}" } }, subtle: { value: { base: "{colors.neutral.600}", _dark: "{colors.neutral.900}" } }, subtlest: { value: { base: "{colors.neutral.900}", _dark: "{colors.neutral.500}" } }, disabled: { value: { base: "{colors.neutral.800}", _dark: "{colors.neutral.600}" } }, default_inverse: { value: { base: "{colors.neutral.1100}", _dark: "{colors.neutral.0}" } } }, neuroidPrimary: { default: { value: { base: "{colors.purple.500}", _dark: "{colors.purple.400}" } }, default_inverse: { value: { base: "{colors.purple.800}", _dark: "{colors.purple.800}" } } }, danger: { default: { value: { base: "{colors.red.600}", _dark: "{colors.red.400}" } } }, warning: { default: { value: { base: "{colors.orange.600}", _dark: "{colors.orange.400}" } } }, success: { default: { value: { base: "{colors.green.600}", _dark: "{colors.green.400}" } } }, informative: { default: { value: { base: "{colors.blue.600}", _dark: "{colors.blue.400}" } } }, zoltarinaPrimary: { default: { value: { base: "{colors.ohre.800}", _dark: "{colors.ohre.400}" } }, defult_inverse: { value: { base: "{colors.ohre.1000}", _dark: "{colors.ohre.1000}" } } }, heydPrimary: { default: { value: { base: "{colors.cyan.800}", _dark: "{colors.cyan.400}" } }, defult_inverse: { value: { base: "{colors.cyan.1000}", _dark: "{colors.cyan.1000}" } } }, static: { white: { bold: { value: { base: "{colors.neutral.1200}", _dark: "{colors.neutral.1200}" } }, default: { value: { base: "{colors.neutral.1050}", _dark: "{colors.neutral.1050}" } }, subtle: { value: { base: "{colors.neutral.1000}", _dark: "{colors.neutral.1000}" } }, subtlest: { value: { base: "{colors.neutral.900}", _dark: "{colors.neutral.900}" } }, disabled: { value: { base: "{colors.neutral.800}", _dark: "{colors.neutral.800}" } } }, black: { bold: { value: { base: "{colors.neutral.0}", _dark: "{colors.neutral.0}" } }, default: { value: { base: "{colors.neutral.200}", _dark: "{colors.neutral.200}" } }, subtle: { value: { base: "{colors.neutral.400}", _dark: "{colors.neutral.400}" } }, subtlest: { value: { base: "{colors.neutral.600}", _dark: "{colors.neutral.600}" } }, disabled: { value: { base: "{colors.neutral.800}", _dark: "{colors.neutral.800}" } } } }, heybeePrimary: { default: { value: { base: "{colors.yellow.800}", _dark: "{colors.yellow.500}" } }, default_inverse: { value: { base: "{colors.yellow.1000}", _dark: "{colors.yellow.1000}" } } } }, background: { neutral: { default: { value: { base: "{colors.neutral.1050}", _dark: "{colors.neutral.200}" } }, selected: { value: { base: "{colors.neutral.1000}", _dark: "{colors.neutral.300}" } }, disabled: { value: { base: "{colors.neutral.1000}", _dark: "{colors.neutral.400}" } } }, neuroidPrimary: { default: { value: { base: "{colors.purple.300}", _dark: "{colors.purple.600}" } }, selected: { value: { base: "{colors.purple.400}", _dark: "{colors.purple.700}" } } }, neuroidSecondary: { default: { value: { base: "{colors.purple.200}", _dark: "{colors.purple.300}" } }, selected: { value: { base: "{colors.purple.300}", _dark: "{colors.purple.400}" } } }, danger: { default: { value: { base: "{colors.red.300}", _dark: "{colors.red.700}" } }, selected: { value: { base: "{colors.red.400}", _dark: "{colors.red.800}" } } }, warning: { default: { value: { base: "{colors.orange.300}", _dark: "{colors.orange.700}" } }, selected: { value: { base: "{colors.orange.400}", _dark: "{colors.orange.800}" } } }, success: { default: { value: { base: "{colors.green.300}", _dark: "{colors.green.700}" } }, selected: { value: { base: "{colors.green.400}", _dark: "{colors.green.800}" } } }, informative: { default: { value: { base: "{colors.blue.300}", _dark: "{colors.blue.700}" } }, selected: { value: { base: "{colors.blue.400}", _dark: "{colors.blue.800}" } } }, zoltarinaPrimary: { default: { value: { base: "{colors.ohre.400}", _dark: "{colors.ohre.400}" } }, selected: { value: { base: "{colors.ohre.500}", _dark: "{colors.ohre.500}" } } }, zoltarinaSecondary: { default: { value: { base: "{colors.ohre.200}", _dark: "{colors.ohre.200}" } }, selected: { value: { base: "{colors.ohre.300}", _dark: "{colors.ohre.300}" } } }, heydPrimary: { default: { value: { base: "{colors.cyan.500}", _dark: "{colors.cyan.500}" } }, selected: { value: { base: "{colors.cyan.600}", _dark: "{colors.cyan.600}" } } }, heydSecondary: { default: { value: { base: "{colors.cyan.200}", _dark: "{colors.cyan.200}" } }, selected: { value: { base: "{colors.cyan.300}", _dark: "{colors.cyan.300}" } } }, static: { whiteAlpha: { bold: { value: { base: "{colors.white.700A}", _dark: "{colors.white.700A}" } }, default: { value: { base: "{colors.white.500A}", _dark: "{colors.white.500A}" } }, selected: { value: { base: "{colors.white.600A}", _dark: "{colors.white.600A}" } }, disabled: { value: { base: "{colors.white.500A}", _dark: "{colors.white.500A}" } } }, blackAlpha: { bold: { value: { base: "{colors.black.700A}", _dark: "{colors.black.700A}" } }, default: { value: { base: "{colors.black.500A}", _dark: "{colors.black.500A}" } }, selected: { value: { base: "{colors.black.600A}", _dark: "{colors.black.600A}" } }, disabled: { value: { base: "{colors.black.500A}", _dark: "{colors.black.500A}" } } } }, heybeePrimary: { default: { value: { base: "{colors.yellow.500}", _dark: "{colors.yellow.500}" } }, selected: { value: { base: "{colors.yellow.600}", _dark: "{colors.yellow.600}" } } } }, surface: { base: { value: { base: "{colors.neutral.1100}", _dark: "{colors.neutral.0}" } }, layer_1: { value: { base: "{colors.neutral.1100}", _dark: "{colors.neutral.100}" } }, layer_2: { value: { base: "{colors.neutral.1050}", _dark: "{colors.neutral.200}" } } }, shadow: { overlay: { value: { base: "{colors.black.100A}", _dark: "{colors.black.400A}" } }, raised: { value: { base: "{colors.black.400A}", _dark: "{colors.black.600A}" } } }, scrim: { default: { value: { base: "{colors.black.600A}", _dark: "{colors.black.600A}" } } }, skeleton: { default: { value: { base: "{colors.neutral.800}", _dark: "{colors.neutral.100}" } }, subtle: { value: { base: "{colors.neutral.700}", _dark: "{colors.neutral.200}" } } }, border: { neutral: { default: { value: { base: "{colors.neutral.700}", _dark: "{colors.neutral.400}" } }, subtle: { value: { base: "{colors.neutral.900}", _dark: "{colors.neutral.300}" } }, disabled: { value: { base: "{colors.neutral.1000}", _dark: "{colors.neutral.200}" } } }, neuroidPrimary: { default: { value: { base: "{colors.purple.500}", _dark: "{colors.purple.400}" } } }, danger: { default: { value: { base: "{colors.red.500}", _dark: "{colors.red.400}" } } }, warning: { default: { value: { base: "{colors.orange.500}", _dark: "{colors.orange.400}" } } }, success: { default: { value: { base: "{colors.green.500}", _dark: "{colors.green.400}" } } }, informative: { default: { value: { base: "{colors.blue.500}", _dark: "{colors.blue.400}" } } }, zoltarinaPrimary: { default: { value: { base: "{colors.ohre.800}", _dark: "{colors.ohre.400}" } } }, heydPrimary: { default: { value: { base: "{colors.cyan.800}", _dark: "{colors.cyan.400}" } } }, heybeePrimary: { default: { value: { base: "{colors.yellow.800}", _dark: "{colors.yellow.500}" } } } } }, shadows: { raised: { value: "0px 1px 3px 0px {colors.shadow.raised}" }, overlay: { value: "0px 20px 25px -5px {colors.shadow.overlay}" } } }, v = { colors: { neutral: { 0: { value: "#080A0E" }, 100: { value: "#101216" }, 200: { value: "#181A1E" }, 300: { value: "#282A2E" }, 400: { value: "#383A3E" }, 500: { value: "#505256" }, 600: { value: "#64666A" }, 700: { value: "#787A7E" }, 800: { value: "#A0A2A6" }, 900: { value: "#B4B6BA" }, 1e3: { value: "#F2F4F8" }, 1050: { value: "#EDEEF1" }, 1100: { value: "#FAFCFF" }, 1200: { value: "#F8F9FF" } }, black: { "700A": { value: "rgba(0,0,0,0.8)" }, "600A": { value: "rgba(0,0,0,0.6)" }, "500A": { value: "rgba(0,0,0,0.4)" }, "400A": { value: "rgba(0,0,0,0.32)" }, "300A": { value: "rgba(0,0,0,0.2)" }, "200A": { value: "rgba(0,0,0,0.12)" }, "100A": { value: "rgba(0,0,0,0.08)" } }, white: { "700A": { value: "rgba(255,255,255,0.8)" }, "600A": { value: "rgba(255,255,255,0.6)" }, "500A": { value: "rgba(255,255,255,0.4)" }, "400A": { value: "rgba(255,255,255,0.32)" }, "300A": { value: "rgba(255,255,255,0.2)" }, "200A": { value: "rgba(255,255,255,0.12)" }, "100A": { value: "rgba(255,255,255,0.08)" } }, red: { 100: { value: "#ffeceb" }, 200: { value: "#ffd5d2" }, 300: { value: "#fd9891" }, 400: { value: "#f87168" }, 500: { value: "#f15b50" }, 600: { value: "#e2483d" }, 700: { value: "#c9372c" }, 800: { value: "#87241c" }, 900: { value: "#5d1f1a" }, 1e3: { value: "#42221f" } }, orange: { 100: { value: "#fff5eb" }, 200: { value: "#ffe9d2" }, 300: { value: "#fdc991" }, 400: { value: "#f8b268" }, 500: { value: "#f1a350" }, 600: { value: "#e2923d" }, 700: { value: "#c97d2c" }, 800: { value: "#87531c" }, 900: { value: "#5d3d1a" }, 1e3: { value: "#42311f" } }, blue: { 100: { value: "#ebf2ff" }, 200: { value: "#d2e1ff" }, 300: { value: "#91b5fd" }, 400: { value: "#6898f8" }, 500: { value: "#5086f1" }, 600: { value: "#3d74e2" }, 700: { value: "#2c60c9" }, 800: { value: "#1c4087" }, 900: { value: "#1a305d" }, 1e3: { value: "#1f2b42" } }, green: { 100: { value: "#ebfff5" }, 200: { value: "#9cfccc" }, 300: { value: "#47EB99" }, 400: { value: "#26d980" }, 500: { value: "#14b866" }, 600: { value: "#10934c" }, 700: { value: "#147042" }, 800: { value: "#125433" }, 900: { value: "#104129" }, 1e3: { value: "#0b2819" } }, purple: { 100: { value: "#f3ebff" }, 200: { value: "#e9ddfd" }, 300: { value: "#cbacfb" }, 400: { value: "#ac7cf8" }, 500: { value: "#8d4bf6" }, 600: { value: "#6d19f5" }, 700: { value: "#570ad1" }, 800: { value: "#4308a0" }, 900: { value: "#2f0670" }, 1e3: { value: "#1a033f" } }, ohre: { 100: { value: "#FFF8F1" }, 200: { value: "#FFE6C8" }, 300: { value: "#FFD3A0" }, 400: { value: "#FFC077" }, 500: { value: "#E2A763" }, 600: { value: "#C58F50" }, 700: { value: "#A8773F" }, 800: { value: "#8A6030" }, 900: { value: "#6D4B22" }, 1e3: { value: "#503617" } }, cyan: { 100: { value: "#ecffff" }, 200: { value: "#c1feff" }, 300: { value: "#96feff" }, 400: { value: "#6bfdff" }, 500: { value: "#3df1f3" }, 600: { value: "#2acfd1" }, 700: { value: "#1aadaf" }, 800: { value: "#0e8c8d" }, 900: { value: "#056a6b" }, 1e3: { value: "#004849" } }, yellow: { 100: { value: "#FFFBED" }, 200: { value: "#FFF3C5" }, 300: { value: "#FFEB9D" }, 400: { value: "#FFE375" }, 500: { value: "#FFDB4D" }, 600: { value: "#DDBC38" }, 700: { value: "#BB9D27" }, 800: { value: "#997F19" }, 900: { value: "#77620E" }, 1e3: { value: "#554506" } } }, borderWidths: { none: { value: "0px" }, sm: { value: "1px" }, md: { value: "2px" }, lg: { value: "4px" } }, spacing: { 0: { value: "0rem" }, 1: { value: "0.25rem" }, 2: { value: "0.5rem" }, 3: { value: "0.75rem" }, 4: { value: "1rem" }, 6: { value: "1.5rem" }, 8: { value: "2rem" }, 12: { value: "3rem" }, 20: { value: "5rem" }, 30: { value: "7.5rem" }, 56: { value: "14rem" }, 72: { value: "18rem" }, 98: { value: "24rem" }, 128: { value: "32rem" }, 160: { value: "40rem" } }, radii: { none: { value: "0px" }, xs: { value: "2px" }, sm: { value: "4px" }, md: { value: "8px" }, lg: { value: "16px" }, full: { value: "9999px" } }, fontSizes: { xs: { value: "0.75rem" }, sm: { value: "0.875rem" }, md: { value: "1rem" }, lg: { value: "1.25rem" }, xl: { value: "1.5rem" }, "2xl": { value: "2rem" }, "3xl": { value: "2.5rem" }, "4xl": { value: "3rem" } }, letterSpacings: { xs: { value: "-1.5px" }, sm: { value: "-1.2px" }, md: { value: "-1px" }, lg: { value: "-0.8px" }, xl: { value: "-0.6px" }, "2xl": { value: "-0.4px" }, "3xl": { value: "-0.2px" } }, lineHeights: { md: { value: "1rem" }, lg: { value: "1.25rem" }, xl: { value: "1.5rem" }, "2xl": { value: "1.75rem" }, "3xl": { value: "2.25rem" }, "4xl": { value: "2.75rem" }, "5xl": { value: "3rem" } }, fontWeights: { regular: { value: "400" }, medium: { value: "500" }, semibold: { value: "600" }, bold: { value: "700" }, regularItalic: { value: "Italic" }, mediumItalic: { value: "Medium Italic" } }, fonts: { inter: { value: "Inter" }, notoSans: { value: "Noto Sans" } } }, $ = { body: { md: { value: { fontFamily: "notoSans", fontWeight: "regular", fontSize: "sm", lineHeight: "lg", letterSpacing: "3xl" } }, lg: { value: { fontFamily: "notoSans", fontWeight: "regular", fontSize: "md", lineHeight: "xl", letterSpacing: "3xl" } }, sm: { value: { fontSize: "xs", fontWeight: "regular", fontFamily: "notoSans", lineHeight: "md", letterSpacing: "3xl" } } }, label: { sm: { value: { fontFamily: "notoSans", fontWeight: "medium", fontSize: "xs", lineHeight: "md", letterSpacing: "3xl" } }, md: { value: { fontFamily: "notoSans", fontWeight: "medium", fontSize: "sm", lineHeight: "lg", letterSpacing: "3xl" } } }, title: { sm: { value: { fontFamily: "notoSans", fontWeight: "medium", fontSize: "sm", lineHeight: "lg", letterSpacing: "2xl" } }, md: { value: { fontFamily: "notoSans", fontWeight: "medium", fontSize: "md", lineHeight: "xl", letterSpacing: "xl" } }, lg: { value: { fontFamily: "notoSans", fontWeight: "semibold", fontSize: "lg", lineHeight: "2xl", letterSpacing: "xl" } } }, headline: { sm: { value: { fontFamily: "inter", fontWeight: "semibold", fontSize: "xl", lineHeight: "2xl", letterSpacing: "lg" } }, md: { value: { fontFamily: "inter", fontWeight: "bold", fontSize: "2xl", lineHeight: "3xl", letterSpacing: "md" } } }, display: { md: { value: { fontFamily: "inter", fontWeight: "bold", fontSize: "3xl", lineHeight: "4xl", letterSpacing: "sm" } }, lg: { value: { fontFamily: "inter", fontWeight: "bold", fontSize: "4xl", lineHeight: "5xl", letterSpacing: "xs" } } } }, g = { semantic: m, primitive: v, textStyles: $ };
|
|
9343
|
+
var m = { colors: { content: { neutral: { bold: { value: { base: "{colors.neutral.0}", _dark: "{colors.neutral.1100}" } }, default: { value: { base: "{colors.neutral.300}", _dark: "{colors.neutral.1000}" } }, subtle: { value: { base: "{colors.neutral.600}", _dark: "{colors.neutral.900}" } }, subtlest: { value: { base: "{colors.neutral.900}", _dark: "{colors.neutral.500}" } }, disabled: { value: { base: "{colors.neutral.800}", _dark: "{colors.neutral.600}" } }, default_inverse: { value: { base: "{colors.neutral.1100}", _dark: "{colors.neutral.0}" } } }, neuroidPrimary: { default: { value: { base: "{colors.purple.500}", _dark: "{colors.purple.400}" } }, default_inverse: { value: { base: "{colors.purple.800}", _dark: "{colors.purple.800}" } } }, danger: { default: { value: { base: "{colors.red.600}", _dark: "{colors.red.400}" } } }, warning: { default: { value: { base: "{colors.orange.600}", _dark: "{colors.orange.400}" } } }, success: { default: { value: { base: "{colors.green.600}", _dark: "{colors.green.400}" } } }, informative: { default: { value: { base: "{colors.blue.600}", _dark: "{colors.blue.400}" } } }, zoltarinaPrimary: { default: { value: { base: "{colors.ohre.800}", _dark: "{colors.ohre.400}" } }, default_inverse: { value: { base: "{colors.ohre.1000}", _dark: "{colors.ohre.1000}" } } }, heydPrimary: { default: { value: { base: "{colors.cyan.800}", _dark: "{colors.cyan.400}" } }, default_inverse: { value: { base: "{colors.cyan.1000}", _dark: "{colors.cyan.1000}" } } }, static: { white: { bold: { value: { base: "{colors.neutral.1200}", _dark: "{colors.neutral.1200}" } }, default: { value: { base: "{colors.neutral.1050}", _dark: "{colors.neutral.1050}" } }, subtle: { value: { base: "{colors.neutral.1000}", _dark: "{colors.neutral.1000}" } }, subtlest: { value: { base: "{colors.neutral.900}", _dark: "{colors.neutral.900}" } }, disabled: { value: { base: "{colors.neutral.800}", _dark: "{colors.neutral.800}" } } }, black: { bold: { value: { base: "{colors.neutral.0}", _dark: "{colors.neutral.0}" } }, default: { value: { base: "{colors.neutral.200}", _dark: "{colors.neutral.200}" } }, subtle: { value: { base: "{colors.neutral.400}", _dark: "{colors.neutral.400}" } }, subtlest: { value: { base: "{colors.neutral.600}", _dark: "{colors.neutral.600}" } }, disabled: { value: { base: "{colors.neutral.800}", _dark: "{colors.neutral.800}" } } } }, heybeePrimary: { default: { value: { base: "{colors.yellow.800}", _dark: "{colors.yellow.500}" } }, default_inverse: { value: { base: "{colors.yellow.1000}", _dark: "{colors.yellow.1000}" } } }, neutralInverse: { bold: { value: { base: "{colors.neutral.1100}", _dark: "{colors.neutral.0}" } }, default: { value: { base: "{colors.neutral.1000}", _dark: "{colors.neutral.300}" } }, subtle: { value: { base: "{colors.neutral.900}", _dark: "{colors.neutral.600}" } }, subtlest: { value: { base: "{colors.neutral.500}", _dark: "{colors.neutral.900}" } }, disabled: { value: { base: "{colors.neutral.600}", _dark: "{colors.neutral.800}" } }, default_inverse: { value: { base: "{colors.neutral.0}", _dark: "{colors.neutral.1100}" } } } }, background: { neutral: { default: { value: { base: "{colors.neutral.1050}", _dark: "{colors.neutral.200}" } }, selected: { value: { base: "{colors.neutral.1000}", _dark: "{colors.neutral.300}" } }, disabled: { value: { base: "{colors.neutral.1000}", _dark: "{colors.neutral.400}" } } }, neuroidPrimary: { default: { value: { base: "{colors.purple.300}", _dark: "{colors.purple.600}" } }, selected: { value: { base: "{colors.purple.400}", _dark: "{colors.purple.700}" } } }, neuroidSecondary: { default: { value: { base: "{colors.purple.200}", _dark: "{colors.purple.300}" } }, selected: { value: { base: "{colors.purple.300}", _dark: "{colors.purple.400}" } } }, danger: { default: { value: { base: "{colors.red.300}", _dark: "{colors.red.700}" } }, selected: { value: { base: "{colors.red.400}", _dark: "{colors.red.800}" } } }, warning: { default: { value: { base: "{colors.orange.300}", _dark: "{colors.orange.700}" } }, selected: { value: { base: "{colors.orange.400}", _dark: "{colors.orange.800}" } } }, success: { default: { value: { base: "{colors.green.300}", _dark: "{colors.green.700}" } }, selected: { value: { base: "{colors.green.400}", _dark: "{colors.green.800}" } } }, informative: { default: { value: { base: "{colors.blue.300}", _dark: "{colors.blue.700}" } }, selected: { value: { base: "{colors.blue.400}", _dark: "{colors.blue.800}" } } }, zoltarinaPrimary: { default: { value: { base: "{colors.ohre.400}", _dark: "{colors.ohre.400}" } }, selected: { value: { base: "{colors.ohre.500}", _dark: "{colors.ohre.500}" } } }, zoltarinaSecondary: { default: { value: { base: "{colors.ohre.200}", _dark: "{colors.ohre.200}" } }, selected: { value: { base: "{colors.ohre.300}", _dark: "{colors.ohre.300}" } } }, heydPrimary: { default: { value: { base: "{colors.cyan.500}", _dark: "{colors.cyan.500}" } }, selected: { value: { base: "{colors.cyan.600}", _dark: "{colors.cyan.600}" } } }, heydSecondary: { default: { value: { base: "{colors.cyan.200}", _dark: "{colors.cyan.200}" } }, selected: { value: { base: "{colors.cyan.300}", _dark: "{colors.cyan.300}" } } }, static: { whiteAlpha: { bold: { value: { base: "{colors.white.700A}", _dark: "{colors.white.700A}" } }, default: { value: { base: "{colors.white.500A}", _dark: "{colors.white.500A}" } }, selected: { value: { base: "{colors.white.600A}", _dark: "{colors.white.600A}" } }, disabled: { value: { base: "{colors.white.500A}", _dark: "{colors.white.500A}" } } }, blackAlpha: { bold: { value: { base: "{colors.black.700A}", _dark: "{colors.black.700A}" } }, default: { value: { base: "{colors.black.500A}", _dark: "{colors.black.500A}" } }, selected: { value: { base: "{colors.black.600A}", _dark: "{colors.black.600A}" } }, disabled: { value: { base: "{colors.black.500A}", _dark: "{colors.black.500A}" } } } }, heybeePrimary: { default: { value: { base: "{colors.yellow.500}", _dark: "{colors.yellow.500}" } }, selected: { value: { base: "{colors.yellow.600}", _dark: "{colors.yellow.600}" } } }, neutralInverse: { default: { value: { base: "{colors.neutral.200}", _dark: "{colors.neutral.1050}" } }, selected: { value: { base: "{colors.neutral.300}", _dark: "{colors.neutral.1000}" } }, disabled: { value: { base: "{colors.neutral.400}", _dark: "{colors.neutral.1000}" } } } }, surface: { base: { value: { base: "{colors.neutral.1100}", _dark: "{colors.neutral.0}" } }, layer_1: { value: { base: "{colors.neutral.1100}", _dark: "{colors.neutral.100}" } }, layer_2: { value: { base: "{colors.neutral.1050}", _dark: "{colors.neutral.200}" } } }, shadow: { overlay: { value: { base: "{colors.black.100A}", _dark: "{colors.black.400A}" } }, raised: { value: { base: "{colors.black.400A}", _dark: "{colors.black.600A}" } } }, scrim: { default: { value: { base: "{colors.black.600A}", _dark: "{colors.black.600A}" } } }, skeleton: { default: { value: { base: "{colors.neutral.800}", _dark: "{colors.neutral.100}" } }, subtle: { value: { base: "{colors.neutral.700}", _dark: "{colors.neutral.200}" } } }, border: { neutral: { default: { value: { base: "{colors.neutral.700}", _dark: "{colors.neutral.400}" } }, subtle: { value: { base: "{colors.neutral.900}", _dark: "{colors.neutral.300}" } }, disabled: { value: { base: "{colors.neutral.1000}", _dark: "{colors.neutral.200}" } } }, neuroidPrimary: { default: { value: { base: "{colors.purple.500}", _dark: "{colors.purple.400}" } } }, danger: { default: { value: { base: "{colors.red.500}", _dark: "{colors.red.400}" } } }, warning: { default: { value: { base: "{colors.orange.500}", _dark: "{colors.orange.400}" } } }, success: { default: { value: { base: "{colors.green.500}", _dark: "{colors.green.400}" } } }, informative: { default: { value: { base: "{colors.blue.500}", _dark: "{colors.blue.400}" } } }, zoltarinaPrimary: { default: { value: { base: "{colors.ohre.800}", _dark: "{colors.ohre.400}" } } }, heydPrimary: { default: { value: { base: "{colors.cyan.800}", _dark: "{colors.cyan.400}" } } }, heybeePrimary: { default: { value: { base: "{colors.yellow.800}", _dark: "{colors.yellow.500}" } } } } }, shadows: { raised: { value: "0px 1px 3px 0px {colors.shadow.raised}" }, overlay: { value: "0px 20px 25px -5px {colors.shadow.overlay}" } } }, v = { colors: { neutral: { 0: { value: "#080A0E" }, 100: { value: "#101216" }, 200: { value: "#181A1E" }, 300: { value: "#282A2E" }, 400: { value: "#383A3E" }, 500: { value: "#505256" }, 600: { value: "#64666A" }, 700: { value: "#787A7E" }, 800: { value: "#A0A2A6" }, 900: { value: "#B4B6BA" }, 1e3: { value: "#F2F4F8" }, 1050: { value: "#EDEEF1" }, 1100: { value: "#FAFCFF" }, 1200: { value: "#F8F9FF" } }, black: { "700A": { value: "rgba(0,0,0,0.8)" }, "600A": { value: "rgba(0,0,0,0.6)" }, "500A": { value: "rgba(0,0,0,0.4)" }, "400A": { value: "rgba(0,0,0,0.32)" }, "300A": { value: "rgba(0,0,0,0.2)" }, "200A": { value: "rgba(0,0,0,0.12)" }, "100A": { value: "rgba(0,0,0,0.08)" } }, white: { "700A": { value: "rgba(255,255,255,0.8)" }, "600A": { value: "rgba(255,255,255,0.6)" }, "500A": { value: "rgba(255,255,255,0.4)" }, "400A": { value: "rgba(255,255,255,0.32)" }, "300A": { value: "rgba(255,255,255,0.2)" }, "200A": { value: "rgba(255,255,255,0.12)" }, "100A": { value: "rgba(255,255,255,0.08)" } }, red: { 100: { value: "#ffeceb" }, 200: { value: "#ffd5d2" }, 300: { value: "#fd9891" }, 400: { value: "#f87168" }, 500: { value: "#f15b50" }, 600: { value: "#e2483d" }, 700: { value: "#c9372c" }, 800: { value: "#87241c" }, 900: { value: "#5d1f1a" }, 1e3: { value: "#42221f" } }, orange: { 100: { value: "#fff5eb" }, 200: { value: "#ffe9d2" }, 300: { value: "#fdc991" }, 400: { value: "#f8b268" }, 500: { value: "#f1a350" }, 600: { value: "#e2923d" }, 700: { value: "#c97d2c" }, 800: { value: "#87531c" }, 900: { value: "#5d3d1a" }, 1e3: { value: "#42311f" } }, blue: { 100: { value: "#ebf2ff" }, 200: { value: "#d2e1ff" }, 300: { value: "#91b5fd" }, 400: { value: "#6898f8" }, 500: { value: "#5086f1" }, 600: { value: "#3d74e2" }, 700: { value: "#2c60c9" }, 800: { value: "#1c4087" }, 900: { value: "#1a305d" }, 1e3: { value: "#1f2b42" } }, green: { 100: { value: "#ebfff5" }, 200: { value: "#9cfccc" }, 300: { value: "#47EB99" }, 400: { value: "#26d980" }, 500: { value: "#14b866" }, 600: { value: "#10934c" }, 700: { value: "#147042" }, 800: { value: "#125433" }, 900: { value: "#104129" }, 1e3: { value: "#0b2819" } }, purple: { 100: { value: "#f3ebff" }, 200: { value: "#e9ddfd" }, 300: { value: "#cbacfb" }, 400: { value: "#ac7cf8" }, 500: { value: "#8d4bf6" }, 600: { value: "#6d19f5" }, 700: { value: "#570ad1" }, 800: { value: "#4308a0" }, 900: { value: "#2f0670" }, 1e3: { value: "#1a033f" } }, ohre: { 100: { value: "#FFF8F1" }, 200: { value: "#FFE6C8" }, 300: { value: "#FFD3A0" }, 400: { value: "#FFC077" }, 500: { value: "#E2A763" }, 600: { value: "#C58F50" }, 700: { value: "#A8773F" }, 800: { value: "#8A6030" }, 900: { value: "#6D4B22" }, 1e3: { value: "#503617" } }, cyan: { 100: { value: "#ecffff" }, 200: { value: "#c1feff" }, 300: { value: "#96feff" }, 400: { value: "#6bfdff" }, 500: { value: "#3df1f3" }, 600: { value: "#2acfd1" }, 700: { value: "#1aadaf" }, 800: { value: "#0e8c8d" }, 900: { value: "#056a6b" }, 1e3: { value: "#004849" } }, yellow: { 100: { value: "#FFFBED" }, 200: { value: "#FFF3C5" }, 300: { value: "#FFEB9D" }, 400: { value: "#FFE375" }, 500: { value: "#FFDB4D" }, 600: { value: "#DDBC38" }, 700: { value: "#BB9D27" }, 800: { value: "#997F19" }, 900: { value: "#77620E" }, 1e3: { value: "#554506" } } }, borderWidths: { none: { value: "0px" }, sm: { value: "1px" }, md: { value: "2px" }, lg: { value: "4px" } }, spacing: { 0: { value: "0rem" }, 1: { value: "0.25rem" }, 2: { value: "0.5rem" }, 3: { value: "0.75rem" }, 4: { value: "1rem" }, 6: { value: "1.5rem" }, 8: { value: "2rem" }, 12: { value: "3rem" }, 20: { value: "5rem" }, 30: { value: "7.5rem" }, 56: { value: "14rem" }, 72: { value: "18rem" }, 98: { value: "24rem" }, 128: { value: "32rem" }, 160: { value: "40rem" } }, radii: { none: { value: "0px" }, xs: { value: "2px" }, sm: { value: "4px" }, md: { value: "8px" }, lg: { value: "16px" }, full: { value: "9999px" } }, fontSizes: { xs: { value: "0.75rem" }, sm: { value: "0.875rem" }, md: { value: "1rem" }, lg: { value: "1.25rem" }, xl: { value: "1.5rem" }, "2xl": { value: "2rem" }, "3xl": { value: "2.5rem" }, "4xl": { value: "3rem" } }, letterSpacings: { xs: { value: "-1.5px" }, sm: { value: "-1.2px" }, md: { value: "-1px" }, lg: { value: "-0.8px" }, xl: { value: "-0.6px" }, "2xl": { value: "-0.4px" }, "3xl": { value: "-0.2px" } }, lineHeights: { md: { value: "1rem" }, lg: { value: "1.25rem" }, xl: { value: "1.5rem" }, "2xl": { value: "1.75rem" }, "3xl": { value: "2.25rem" }, "4xl": { value: "2.75rem" }, "5xl": { value: "3rem" } }, fontWeights: { regular: { value: "400" }, medium: { value: "500" }, semibold: { value: "600" }, bold: { value: "700" }, regularItalic: { value: "Italic" }, mediumItalic: { value: "Medium Italic" } }, fonts: { inter: { value: "Inter" }, notoSans: { value: "Noto Sans" } } }, $ = { body: { md: { value: { fontFamily: "notoSans", fontWeight: "regular", fontSize: "sm", lineHeight: "lg", letterSpacing: "3xl" } }, lg: { value: { fontFamily: "notoSans", fontWeight: "regular", fontSize: "md", lineHeight: "xl", letterSpacing: "3xl" } }, sm: { value: { fontSize: "xs", fontWeight: "regular", fontFamily: "notoSans", lineHeight: "md", letterSpacing: "3xl" } } }, label: { sm: { value: { fontFamily: "notoSans", fontWeight: "medium", fontSize: "xs", lineHeight: "md", letterSpacing: "3xl" } }, md: { value: { fontFamily: "notoSans", fontWeight: "medium", fontSize: "sm", lineHeight: "lg", letterSpacing: "3xl" } } }, title: { sm: { value: { fontFamily: "notoSans", fontWeight: "medium", fontSize: "sm", lineHeight: "lg", letterSpacing: "2xl" } }, md: { value: { fontFamily: "notoSans", fontWeight: "medium", fontSize: "md", lineHeight: "xl", letterSpacing: "xl" } }, lg: { value: { fontFamily: "notoSans", fontWeight: "semibold", fontSize: "lg", lineHeight: "2xl", letterSpacing: "xl" } } }, headline: { sm: { value: { fontFamily: "inter", fontWeight: "semibold", fontSize: "xl", lineHeight: "2xl", letterSpacing: "lg" } }, md: { value: { fontFamily: "inter", fontWeight: "bold", fontSize: "2xl", lineHeight: "3xl", letterSpacing: "md" } } }, display: { md: { value: { fontFamily: "inter", fontWeight: "bold", fontSize: "3xl", lineHeight: "4xl", letterSpacing: "sm" } }, lg: { value: { fontFamily: "inter", fontWeight: "bold", fontSize: "4xl", lineHeight: "5xl", letterSpacing: "xs" } } } }, g = { semantic: m, primitive: v, textStyles: $ };
|
|
9380
9344
|
const conditions = {
|
|
9381
9345
|
extend: {
|
|
9382
9346
|
collapsed: '&:is([aria-collapsed=true], [data-collapsed], [data-state="collapsed"])',
|