@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.js CHANGED
@@ -4098,17 +4098,17 @@ const spinnerRecipe = cva({
4098
4098
  }
4099
4099
  });
4100
4100
  const Spinner = forwardRef((props, ref) => {
4101
- const { color, ...rest } = props;
4102
4101
  const StyledSpinner = styled(ark.div, spinnerRecipe);
4103
4102
  return /* @__PURE__ */ jsx(
4104
4103
  StyledSpinner,
4105
4104
  {
4106
4105
  ref,
4107
- ...rest,
4106
+ ...props,
4108
4107
  css: {
4109
4108
  borderColor: "inherit",
4110
4109
  borderBottomColor: "transparent",
4111
- borderLeftColor: "transparent"
4110
+ borderLeftColor: "transparent",
4111
+ ...props.css
4112
4112
  }
4113
4113
  }
4114
4114
  );
@@ -4726,15 +4726,12 @@ const dialogRecipe = sva({
4726
4726
  slots: [...anatomy$1.keys(), "header", "footer", "body"],
4727
4727
  base: {
4728
4728
  backdrop: {
4729
- backdropFilter: "blur(4px)",
4730
- background: {
4731
- _light: "white.100A",
4732
- _dark: "black.100A"
4733
- },
4729
+ backdropFilter: "blur(3px)",
4730
+ background: "shadow.overlay",
4734
4731
  height: "100vh",
4735
- left: "0",
4736
4732
  position: "fixed",
4737
4733
  top: "0",
4734
+ left: "0",
4738
4735
  width: "100vw",
4739
4736
  zIndex: "overlay",
4740
4737
  _open: {
@@ -4814,7 +4811,7 @@ const Backdrop$1 = withContext$1(DialogBackdrop, "backdrop");
4814
4811
  const Trigger$1 = withContext$1(DialogTrigger, "trigger");
4815
4812
  const Content = withContext$1(DialogContent, "content");
4816
4813
  const Title = withContext$1(DialogTitle, "title");
4817
- const Description$1 = withContext$1(DialogDescription, "description");
4814
+ const Description = withContext$1(DialogDescription, "description");
4818
4815
  const Positioner = withContext$1(DialogPositioner, "positioner");
4819
4816
  const Header = withContext$1(ark.header, "header");
4820
4817
  const Footer = withContext$1(
@@ -4843,7 +4840,7 @@ const Dialog = {
4843
4840
  Trigger: Trigger$1,
4844
4841
  Content,
4845
4842
  Title,
4846
- Description: Description$1,
4843
+ Description,
4847
4844
  Positioner,
4848
4845
  Header,
4849
4846
  Footer,
@@ -8898,9 +8895,7 @@ const Tag = forwardRef(({ imageSrc, text, onDeleteClick, ...rest }, ref) => {
8898
8895
  styled.img,
8899
8896
  {
8900
8897
  src: imageSrc,
8901
- width: 8,
8902
- height: 8,
8903
- className: css$1({ borderRadius: "full", overflow: "hidden" }),
8898
+ className: css$1({ borderRadius: "full", overflow: "hidden", width: 8, height: 8 }),
8904
8899
  alt: "avatar thumbnail"
8905
8900
  }
8906
8901
  ) : null,
@@ -8909,186 +8904,186 @@ const Tag = forwardRef(({ imageSrc, text, onDeleteClick, ...rest }, ref) => {
8909
8904
  ] });
8910
8905
  });
8911
8906
  Tag.displayName = "Tag";
8912
- const inputRecipe = cva({
8907
+ const inputRecipe = sva({
8908
+ className: "input",
8909
+ slots: ["inputContainer", "requiredStar", "description", "label", "textLengthIndicator"],
8913
8910
  base: {
8914
- display: "flex",
8915
- flexDirection: "column",
8916
- alignItems: "center",
8917
- justifyContent: "center",
8918
- width: "100%",
8919
- textStyle: "body.md",
8920
- cursor: "text",
8921
- color: "content.neutral.bold",
8922
- gap: 1,
8923
- borderStyle: "solid",
8924
- border: 1,
8925
- outline: "none",
8926
- p: 2,
8927
- "& textarea, & input": {
8911
+ inputContainer: {
8912
+ display: "flex",
8913
+ flexDirection: "column",
8914
+ alignItems: "center",
8915
+ justifyContent: "center",
8916
+ width: "100%",
8917
+ textStyle: "body.md",
8918
+ cursor: "text",
8919
+ color: "content.neutral.bold",
8920
+ gap: 1,
8921
+ borderStyle: "solid",
8922
+ border: 1,
8928
8923
  outline: "none",
8924
+ p: 2,
8925
+ "& input, & textarea": {
8926
+ outline: "none",
8927
+ width: "100%",
8928
+ height: "100%"
8929
+ },
8930
+ _groupDisabled: {
8931
+ cursor: "not-allowed",
8932
+ color: "content.neutral.disabled"
8933
+ }
8934
+ },
8935
+ requiredStar: {
8936
+ color: "content.danger.default",
8937
+ paddingLeft: 1
8938
+ },
8939
+ description: {
8940
+ textStyle: "label.sm",
8941
+ color: "content.neutral.subtle",
8942
+ paddingLeft: 1,
8929
8943
  width: "100%",
8930
- height: "100%"
8944
+ textAlign: "start"
8945
+ },
8946
+ label: {
8947
+ textStyle: "label.sm",
8948
+ textAlign: "start",
8949
+ width: "100%",
8950
+ display: "inline-block"
8951
+ },
8952
+ textLengthIndicator: {
8953
+ display: "inline-block",
8954
+ width: "100%",
8955
+ textAlign: "end",
8956
+ paddingRight: 1,
8957
+ marginTop: -0.5,
8958
+ textStyle: "label.sm",
8959
+ color: "content.neutral.subtlest",
8960
+ _groupDisabled: { color: "content.neutral.disabled" }
8931
8961
  }
8932
8962
  },
8933
8963
  variants: {
8934
8964
  isTextArea: {
8935
8965
  true: {
8936
- minHeight: "56px",
8937
- "& textarea": {
8938
- background: "transparent",
8939
- height: "100%",
8940
- resize: "none",
8941
- overflowY: "auto"
8966
+ inputContainer: {
8967
+ minHeight: "56px",
8968
+ "& textarea": {
8969
+ background: "transparent",
8970
+ resize: "none",
8971
+ overflowY: "auto"
8972
+ }
8942
8973
  }
8943
8974
  },
8944
8975
  false: {
8945
- minHeight: "48px",
8946
- maxHeight: "60px"
8976
+ inputContainer: {
8977
+ minHeight: "48px",
8978
+ maxHeight: "60px"
8979
+ }
8947
8980
  }
8948
8981
  },
8949
8982
  variant: {
8950
8983
  solid: {
8951
- borderColor: "transparent"
8984
+ inputContainer: {
8985
+ borderColor: "transparent",
8986
+ _focusWithin: {
8987
+ borderColor: "border.neutral.default"
8988
+ }
8989
+ }
8952
8990
  },
8953
8991
  line: {
8954
- background: "transparent"
8992
+ inputContainer: {
8993
+ background: "transparent",
8994
+ border: 1,
8995
+ borderColor: "border.neutral.subtle",
8996
+ _focusWithin: {
8997
+ borderColor: "border.neutral.default"
8998
+ },
8999
+ _groupDisabled: {
9000
+ borderColor: "border.neutral.disabled"
9001
+ }
9002
+ }
8955
9003
  }
8956
9004
  },
8957
9005
  color: {
8958
9006
  alpha: {
8959
- "&::placeholder": {
8960
- color: "content.static.white.subtlest"
9007
+ inputContainer: {
9008
+ _placeholder: {
9009
+ color: "content.static.white.subtlest",
9010
+ _groupDisabled: {
9011
+ color: "content.static.white.disabled"
9012
+ }
9013
+ }
9014
+ },
9015
+ label: {
9016
+ color: "content.neutral.default",
9017
+ _groupDisabled: {
9018
+ color: "content.neutral.disabled"
9019
+ }
8961
9020
  }
8962
9021
  },
8963
9022
  neutral: {
8964
- "&::placeholder": {
8965
- color: "content.neutral.subtlest"
9023
+ inputContainer: {
9024
+ _placeholder: {
9025
+ color: "content.neutral.subtlest",
9026
+ _groupDisabled: {
9027
+ color: "content.neutral.disabled"
9028
+ }
9029
+ }
9030
+ },
9031
+ label: {
9032
+ color: "content.neutral.subtle",
9033
+ _groupDisabled: {
9034
+ color: "content.neutral.disabled"
9035
+ }
8966
9036
  }
8967
9037
  }
8968
9038
  },
8969
9039
  radius: {
8970
9040
  md: {
8971
- borderRadius: 8,
8972
- px: 2
9041
+ inputContainer: {
9042
+ borderRadius: 8,
9043
+ px: 2
9044
+ }
8973
9045
  },
8974
9046
  lg: {
8975
- borderRadius: 16,
8976
- px: 2
9047
+ inputContainer: {
9048
+ borderRadius: 16,
9049
+ px: 2
9050
+ }
8977
9051
  },
8978
9052
  full: {
8979
- borderRadius: 9999,
8980
- px: 4
9053
+ inputContainer: {
9054
+ borderRadius: 9999,
9055
+ px: 4
9056
+ }
8981
9057
  }
8982
9058
  },
8983
- state: {
8984
- // state: Input 컴포넌트 내부 로직, 외부 노출 X (외부에선 disabled만 제어)
8985
- default: {
8986
- color: "content.neutral.bold"
8987
- },
8988
- selected: {
8989
- color: "content.neutral.bold"
8990
- },
8991
- disabled: {
8992
- color: "content.neutral.disabled"
9059
+ disabled: {
9060
+ true: {
9061
+ inputContainer: {
9062
+ _groupDisabled: {}
9063
+ }
8993
9064
  }
8994
9065
  }
8995
9066
  },
8996
9067
  compoundVariants: [
8997
- {
8998
- color: "alpha",
8999
- state: "disabled",
9000
- css: {
9001
- "&::placeholder": {
9002
- color: "content.static.white.disabled"
9003
- }
9004
- }
9005
- },
9006
- {
9007
- color: "neutral",
9008
- state: "disabled",
9009
- css: {
9010
- "&::placeholder": {
9011
- color: "content.neutral.disabled"
9012
- }
9013
- }
9014
- },
9015
- {
9016
- variant: "solid",
9017
- color: "alpha",
9018
- state: "default",
9019
- css: {
9020
- background: "black.500A"
9021
- }
9022
- },
9023
- {
9024
- variant: "solid",
9025
- color: "alpha",
9026
- state: "selected",
9027
- css: {
9028
- background: "black.500A",
9029
- border: 1,
9030
- borderColor: "border.neutral.default"
9031
- }
9032
- },
9033
9068
  {
9034
9069
  variant: "solid",
9035
9070
  color: "alpha",
9036
- state: "disabled",
9037
- css: {
9038
- background: "black.500A"
9039
- }
9040
- },
9041
- {
9042
- variant: "solid",
9043
- color: "neutral",
9044
- state: "default",
9045
- css: {
9046
- background: "background.neutral.default"
9047
- }
9048
- },
9049
- {
9050
- variant: "solid",
9051
- color: "neutral",
9052
- state: "selected",
9053
9071
  css: {
9054
- background: "background.neutral.default",
9055
- border: 1,
9056
- borderColor: "border.neutral.default"
9072
+ inputContainer: {
9073
+ background: "black.500A"
9074
+ }
9057
9075
  }
9058
9076
  },
9059
9077
  {
9060
9078
  variant: "solid",
9061
9079
  color: "neutral",
9062
- state: "disabled",
9063
9080
  css: {
9064
- background: "background.neutral.disabled"
9065
- }
9066
- },
9067
- {
9068
- variant: "line",
9069
- state: "default",
9070
- css: {
9071
- background: "transparent",
9072
- border: 1,
9073
- borderColor: "border.neutral.subtle"
9074
- }
9075
- },
9076
- {
9077
- variant: "line",
9078
- state: "selected",
9079
- css: {
9080
- background: "transparent",
9081
- border: 1,
9082
- borderColor: "border.neutral.default"
9083
- }
9084
- },
9085
- {
9086
- variant: "line",
9087
- state: "disabled",
9088
- css: {
9089
- background: "transparent",
9090
- border: 1,
9091
- borderColor: "border.neutral.disabled"
9081
+ inputContainer: {
9082
+ background: "background.neutral.default",
9083
+ _groupDisabled: {
9084
+ background: "background.neutral.disabled"
9085
+ }
9086
+ }
9092
9087
  }
9093
9088
  }
9094
9089
  ],
@@ -9096,114 +9091,75 @@ const inputRecipe = cva({
9096
9091
  isTextArea: false,
9097
9092
  variant: "solid",
9098
9093
  color: "neutral",
9099
- state: "default",
9100
9094
  radius: "md"
9101
9095
  }
9102
9096
  });
9103
- const labelRecipe = cva({
9104
- base: {
9105
- textStyle: "label.sm",
9106
- textAlign: "start",
9107
- width: "100%",
9108
- display: "inline-block"
9109
- },
9110
- variants: {
9111
- state: {
9112
- default: {},
9113
- selected: {},
9114
- disabled: {}
9115
- },
9116
- color: {
9117
- alpha: {
9118
- color: "content.static.white.bold"
9097
+ const Input = forwardRef(
9098
+ ({
9099
+ required,
9100
+ disabled,
9101
+ label,
9102
+ description,
9103
+ labelPosition = "outside",
9104
+ textLimit,
9105
+ variant,
9106
+ color,
9107
+ radius,
9108
+ onChange,
9109
+ className,
9110
+ css: css2,
9111
+ ...rest
9112
+ }, ref) => {
9113
+ const recipe = inputRecipe({
9114
+ variant,
9115
+ color,
9116
+ radius
9117
+ });
9118
+ const innerRef = useRef(null);
9119
+ const inputRef = ref || innerRef;
9120
+ const handleInputChange = useCallback(
9121
+ (e) => {
9122
+ if (disabled) return;
9123
+ const { value } = e.target;
9124
+ e.target.value = value.slice(0, textLimit);
9125
+ onChange == null ? void 0 : onChange(e);
9119
9126
  },
9120
- neutral: {
9121
- color: "content.neutral.subtle"
9122
- }
9123
- },
9124
- radius: {
9125
- md: {},
9126
- lg: {},
9127
- full: {}
9128
- }
9129
- },
9130
- compoundVariants: [
9131
- {
9132
- state: "disabled",
9133
- css: {
9134
- color: "content.neutral.disabled"
9127
+ [disabled, onChange, textLimit]
9128
+ );
9129
+ const handleContainerClick = useCallback(() => {
9130
+ if (disabled) return;
9131
+ if (inputRef.current) {
9132
+ inputRef.current.focus();
9135
9133
  }
9136
- }
9137
- ],
9138
- defaultVariants: {
9139
- color: "neutral",
9140
- state: "default",
9141
- radius: "md"
9134
+ }, [disabled, inputRef]);
9135
+ const RequiredStar = useCallback(
9136
+ () => /* @__PURE__ */ jsx("span", { className: recipe.requiredStar, "aria-hidden": "true", children: "*" }),
9137
+ [recipe.requiredStar]
9138
+ );
9139
+ const Description2 = useCallback(
9140
+ ({ children }) => /* @__PURE__ */ jsx("span", { className: recipe.description, children }),
9141
+ [recipe.description]
9142
+ );
9143
+ const Label = useCallback(
9144
+ ({ visible, children }) => {
9145
+ return visible ? /* @__PURE__ */ jsxs("label", { className: recipe.label, children: [
9146
+ children,
9147
+ required && /* @__PURE__ */ jsx(RequiredStar, {})
9148
+ ] }) : null;
9149
+ },
9150
+ [recipe.label, required, RequiredStar]
9151
+ );
9152
+ return /* @__PURE__ */ jsxs(VStack2, { gap: 1, className: "group", "data-disabled": disabled || void 0, children: [
9153
+ /* @__PURE__ */ jsx(Label, { visible: !!(label && labelPosition === "outside"), children: label }),
9154
+ /* @__PURE__ */ jsxs(Stack2, { gap: 1, className: cx(recipe.inputContainer, className), onClick: handleContainerClick, css: css2, children: [
9155
+ /* @__PURE__ */ jsx(Label, { visible: !!(label && labelPosition === "inside"), children: label }),
9156
+ /* @__PURE__ */ jsx(styled.input, { ref: inputRef, disabled, onChange: handleInputChange, ...rest })
9157
+ ] }),
9158
+ description && /* @__PURE__ */ jsx(Description2, { children: description })
9159
+ ] });
9142
9160
  }
9143
- });
9144
- const StyledInputWrapper = styled(ark.div, inputRecipe);
9145
- const StyledLabel$1 = styled(ark.label, labelRecipe);
9146
- const RequiredStar = () => /* @__PURE__ */ jsx(ark.span, { className: css$1({ color: "content.danger.default", paddingLeft: 1 }), children: "*" });
9147
- const Description = ({ children }) => /* @__PURE__ */ jsx(ark.span, { className: css$1({ textStyle: "label.sm", color: "content.neutral.subtle", paddingLeft: 1, width: "100%", textAlign: "start" }), children });
9148
- const Input = forwardRef(({ value, required, disabled, label, description, labelPosition = "outside", textLimit, variant, color, radius, onChange, className, ...rest }, ref) => {
9149
- const [state, setState] = useState(disabled ? "disabled" : "default");
9150
- useEffect(() => {
9151
- setState(disabled ? "disabled" : "default");
9152
- }, [disabled]);
9153
- const handleInputChange = (e) => {
9154
- if (disabled) return;
9155
- const value2 = e.target.value;
9156
- if (textLimit && value2.length > textLimit) return;
9157
- setState(value2 ? "selected" : "default");
9158
- onChange == null ? void 0 : onChange(e);
9159
- };
9160
- const Label = ({ visible, children }) => {
9161
- console.log("color", color);
9162
- return visible ? /* @__PURE__ */ jsxs(StyledLabel$1, { state, color, radius, children: [
9163
- children,
9164
- required && /* @__PURE__ */ jsx(RequiredStar, {})
9165
- ] }) : null;
9166
- };
9167
- return /* @__PURE__ */ jsxs(VStack$1, { gap: 1, children: [
9168
- /* @__PURE__ */ jsx(Label, { visible: !!(label && labelPosition === "outside"), children: label }),
9169
- /* @__PURE__ */ jsxs(StyledInputWrapper, { state, variant, color, radius, className: cx(css$1({ display: "flex", flexDirection: "column", gap: 1 }), className), children: [
9170
- /* @__PURE__ */ jsx(Label, { visible: !!(label && labelPosition === "inside"), children: label }),
9171
- /* @__PURE__ */ jsx(
9172
- "input",
9173
- {
9174
- value,
9175
- disabled,
9176
- onFocus: () => !disabled && setState("selected"),
9177
- onBlur: () => !disabled && setState("default"),
9178
- onChange: handleInputChange,
9179
- ref,
9180
- ...rest
9181
- }
9182
- )
9183
- ] }),
9184
- description && /* @__PURE__ */ jsx(Description, { children: description })
9185
- ] });
9186
- });
9161
+ );
9187
9162
  Input.displayName = "Input";
9188
- const StyledTextAreaWrapper = styled(ark.div, inputRecipe);
9189
- const StyledLabel = styled(ark.label, labelRecipe);
9190
- const TextLengthIndicator = ({ count, limit, disabled }) => {
9191
- return /* @__PURE__ */ jsx(
9192
- ark.span,
9193
- {
9194
- className: css$1({
9195
- display: "inline-block",
9196
- width: "100%",
9197
- textAlign: "end",
9198
- paddingRight: 1,
9199
- marginTop: -0.5,
9200
- textStyle: "label.sm",
9201
- color: disabled ? "content.neutral.disabled" : "content.neutral.subtlest"
9202
- }),
9203
- children: `${count}${limit ? ` / ${limit}` : ""}`
9204
- }
9205
- );
9206
- };
9207
9163
  const Textarea = forwardRef(
9208
9164
  ({
9209
9165
  value,
@@ -9214,62 +9170,70 @@ const Textarea = forwardRef(
9214
9170
  labelPosition = "outside",
9215
9171
  textLimit,
9216
9172
  showTextCount = false,
9217
- isTextArea,
9218
9173
  color,
9219
9174
  radius,
9220
9175
  variant,
9221
9176
  onChange,
9222
9177
  className,
9178
+ css: css2,
9223
9179
  ...rest
9224
9180
  }, ref) => {
9225
- const [state, setState] = useState(disabled ? "disabled" : "default");
9226
- useEffect(() => {
9227
- setState(disabled ? "disabled" : "default");
9228
- }, [disabled]);
9229
- const handleTextareaChange = (e) => {
9181
+ const [count, setCount] = useState((value == null ? void 0 : value.toString().length) || 0);
9182
+ const recipe = inputRecipe({
9183
+ variant,
9184
+ color,
9185
+ radius,
9186
+ isTextArea: true
9187
+ });
9188
+ const innerRef = useRef(null);
9189
+ const inputRef = ref || innerRef;
9190
+ const handleTextareaChange = useCallback(
9191
+ (e) => {
9192
+ if (disabled) return;
9193
+ const { value: value2 } = e.target;
9194
+ e.target.value = value2.slice(0, textLimit);
9195
+ onChange == null ? void 0 : onChange(e);
9196
+ if (showTextCount) setCount(value2.length);
9197
+ },
9198
+ [disabled, onChange, textLimit, showTextCount]
9199
+ );
9200
+ const handleContainerClick = useCallback(() => {
9230
9201
  if (disabled) return;
9231
- const value2 = e.target.value;
9232
- if (textLimit && value2.length > textLimit) return;
9233
- setState(value2 ? "selected" : "default");
9234
- onChange == null ? void 0 : onChange(e);
9235
- e.target.scrollTop = e.target.scrollHeight;
9236
- };
9237
- const Label = ({ visible, children }) => {
9238
- return visible ? /* @__PURE__ */ jsxs(StyledLabel, { state, color, radius, children: [
9239
- children,
9240
- required && /* @__PURE__ */ jsx(RequiredStar, {})
9241
- ] }) : null;
9242
- };
9243
- return /* @__PURE__ */ jsxs(VStack$1, { gap: 1, children: [
9202
+ if (inputRef.current) {
9203
+ inputRef.current.focus();
9204
+ }
9205
+ }, [disabled, inputRef]);
9206
+ const RequiredStar = useCallback(
9207
+ () => /* @__PURE__ */ jsx("span", { className: recipe.requiredStar, "aria-hidden": "true", children: "*" }),
9208
+ [recipe.requiredStar]
9209
+ );
9210
+ const Description2 = useCallback(
9211
+ ({ children }) => /* @__PURE__ */ jsx("span", { className: recipe.description, children }),
9212
+ [recipe.description]
9213
+ );
9214
+ const Label = useCallback(
9215
+ ({ visible, children }) => {
9216
+ return visible ? /* @__PURE__ */ jsxs("label", { className: recipe.label, children: [
9217
+ children,
9218
+ required && /* @__PURE__ */ jsx(RequiredStar, {})
9219
+ ] }) : null;
9220
+ },
9221
+ [recipe.label, required, RequiredStar]
9222
+ );
9223
+ const TextLengthIndicator = useCallback(
9224
+ ({ count: count2, limit }) => {
9225
+ return /* @__PURE__ */ jsx("span", { className: recipe.textLengthIndicator, children: `${count2}${limit ? ` / ${limit}` : ""}` });
9226
+ },
9227
+ [recipe.textLengthIndicator]
9228
+ );
9229
+ return /* @__PURE__ */ jsxs(VStack2, { gap: 1, className: "group", "data-disabled": disabled || void 0, children: [
9244
9230
  /* @__PURE__ */ jsx(Label, { visible: !!(label && labelPosition === "outside"), children: label }),
9245
- /* @__PURE__ */ jsxs(
9246
- StyledTextAreaWrapper,
9247
- {
9248
- isTextArea: true,
9249
- state,
9250
- color,
9251
- radius,
9252
- variant,
9253
- className: cx(css$1({ position: "relative", display: "flex", flexDirection: "column", gap: 1 }), className),
9254
- children: [
9255
- /* @__PURE__ */ jsx(Label, { visible: !!(label && labelPosition === "inside"), children: label }),
9256
- /* @__PURE__ */ jsx(
9257
- "textarea",
9258
- {
9259
- value,
9260
- disabled,
9261
- onChange: handleTextareaChange,
9262
- onFocus: () => !disabled && setState("selected"),
9263
- onBlur: () => !disabled && setState("default"),
9264
- ref,
9265
- ...rest
9266
- }
9267
- ),
9268
- showTextCount && /* @__PURE__ */ jsx(TextLengthIndicator, { count: value.length, limit: textLimit, disabled })
9269
- ]
9270
- }
9271
- ),
9272
- description && /* @__PURE__ */ jsx(Description, { children: description })
9231
+ /* @__PURE__ */ jsxs(Stack2, { gap: 1, className: cx(recipe.inputContainer, className), onClick: handleContainerClick, css: css2, children: [
9232
+ /* @__PURE__ */ jsx(Label, { visible: !!(label && labelPosition === "inside"), children: label }),
9233
+ /* @__PURE__ */ jsx("textarea", { ref: inputRef, value, disabled, onChange: handleTextareaChange, ...rest }),
9234
+ showTextCount && /* @__PURE__ */ jsx(TextLengthIndicator, { count, limit: textLimit })
9235
+ ] }),
9236
+ description && /* @__PURE__ */ jsx(Description2, { children: description })
9273
9237
  ] });
9274
9238
  }
9275
9239
  );
@@ -9358,7 +9322,7 @@ const keyframes = defineKeyframes({
9358
9322
  "100%": { transform: "rotate(360deg)" }
9359
9323
  }
9360
9324
  });
9361
- 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: $ };
9325
+ 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: $ };
9362
9326
  const conditions = {
9363
9327
  extend: {
9364
9328
  collapsed: '&:is([aria-collapsed=true], [data-collapsed], [data-state="collapsed"])',