@gobolt/genesis 0.3.1 → 0.3.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.
Files changed (3) hide show
  1. package/dist/index.cjs +457 -457
  2. package/dist/index.js +457 -457
  3. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -74918,6 +74918,415 @@ const Message$1 = ({ message: message2, handle, isThinking = false }) => {
74918
74918
  ) : /* @__PURE__ */ jsx(MessageText, { children: message2 }) })
74919
74919
  ] });
74920
74920
  };
74921
+ const getStateColors = (colors2, type4, state) => {
74922
+ const filled = {
74923
+ color: colors2.inputs.onsurface.active,
74924
+ borderColor: colors2[TYPE.secondary].active.borderColor,
74925
+ ringColor: colors2[type4].focussed.ringColor
74926
+ };
74927
+ const success = {
74928
+ color: colors2.status.success.default,
74929
+ borderColor: colors2.status.success.default,
74930
+ ringColor: colors2.status.success.ringColor
74931
+ };
74932
+ const error2 = {
74933
+ color: colors2.status.error.default,
74934
+ borderColor: colors2.status.error.default,
74935
+ ringColor: colors2.status.error.ringColor
74936
+ };
74937
+ const themeState = state !== STATE.error && state !== STATE.success && state !== STATE.filled ? {
74938
+ color: colors2.inputs.onsurface.active,
74939
+ backgroundColor: colors2.inputs.surface.active,
74940
+ borderColor: colors2.inputs.surface.border,
74941
+ ringColor: colors2[type4][state].ringColor
74942
+ } : null;
74943
+ const stateMap = {
74944
+ filled,
74945
+ error: error2,
74946
+ success,
74947
+ themeState
74948
+ };
74949
+ const getValidKey = (state2) => {
74950
+ const validStates = [STATE.filled, STATE.error, STATE.success];
74951
+ return validStates.includes(state2) ? state2 : "themeState";
74952
+ };
74953
+ const css = stateMap[getValidKey(state)];
74954
+ return css;
74955
+ };
74956
+ const getGenesisInputClass = ({ colors: colors2, borderRadius: borderRadius2, components: components2, shadows: shadows2 }, type4, state, hasBeforeAddon, hasAfterAddon, size) => {
74957
+ const stateColors = getStateColors(colors2, type4, state);
74958
+ const getBorderRadius = (hasBeforeAddon2, hasAfterAddon2) => {
74959
+ if (hasAfterAddon2 && !hasBeforeAddon2) {
74960
+ return `${borderRadius2.BorderRadiusMd}px 0px 0px ${borderRadius2.BorderRadiusMd}px`;
74961
+ }
74962
+ if (hasBeforeAddon2 && !hasAfterAddon2) {
74963
+ return `0px ${borderRadius2.BorderRadiusMd}px ${borderRadius2.BorderRadiusMd}px 0px`;
74964
+ }
74965
+ return `0px`;
74966
+ };
74967
+ return `
74968
+ &.ant-input {
74969
+ font-family: 'Inter', sans-serif;
74970
+ color: ${stateColors.color};
74971
+ border-color: ${stateColors.borderColor};
74972
+ box-shadow: ${shadows2.inputs[1]} !important;
74973
+ height: ${size === "normal" || size === "large" ? "40px" : "32px"} !important;
74974
+ }
74975
+
74976
+ /* Increase specificity for focus states */
74977
+ &.ant-input.ant-input:focus,
74978
+ &.ant-input.ant-input:focus-visible,
74979
+ &.ant-input.ant-input-focused {
74980
+ outline: none !important;
74981
+ border-color: ${colors2[type4].focussed.borderColor} !important;
74982
+ box-shadow: 0 0 0 1px #fff, 0 0 0 3px ${colors2[type4].focussed.ringColor} !important;
74983
+ }
74984
+
74985
+ &.ant-input-outlined {
74986
+ border: 1px solid ${stateColors.borderColor};
74987
+
74988
+ &:hover {
74989
+ border-color: ${stateColors.borderColor};
74990
+ }
74991
+ }
74992
+
74993
+ .ant-input-group & {
74994
+ &:focus-within {
74995
+ outline: none;
74996
+ color: ${stateColors.color};
74997
+ box-shadow: none;
74998
+ border-color: ${colors2[type4].focussed.borderColor};
74999
+ }
75000
+ }
75001
+
75002
+ .ant-input-group:focus-within {
75003
+ outline: none;
75004
+ box-shadow: 0 0 0 1px #fff, 0 0 0 3px ${colors2[type4].focussed.ringColor};
75005
+ border-radius: ${borderRadius2.BorderRadiusMd}px;
75006
+ transition: box-shadow 0.2s ease-in-out;
75007
+
75008
+ /* Hide focus styles on inner input when parent is focused */
75009
+ .ant-input:focus-within {
75010
+ box-shadow: none;
75011
+ border-radius: 0;
75012
+ border-radius: ${getBorderRadius(hasBeforeAddon, hasAfterAddon)};
75013
+ border-color: #ddd;
75014
+ }
75015
+ }
75016
+
75017
+ /* Remove inner input focus styles when in a group */
75018
+ .ant-input-group .ant-input:focus,
75019
+ .ant-input-group .ant-input:focus-visible,
75020
+ .ant-input-group .ant-input:focus-within {
75021
+ outline: none;
75022
+ box-shadow: none;
75023
+ border-color: ${colors2[type4].focussed.borderColor};
75024
+ }
75025
+
75026
+ /* Single focus ring on group */
75027
+ .ant-input-group:focus-within {
75028
+ outline: none;
75029
+ box-shadow: 0 0 0 1px #fff, 0 0 0 3px ${colors2[type4].focussed.ringColor};
75030
+ border-radius: ${borderRadius2.BorderRadiusMd}px;
75031
+ transition: box-shadow 0.2s ease-in-out;
75032
+ }
75033
+
75034
+ /* Remove focus styles for standalone inputs */
75035
+ &:not(.ant-input-group):focus-visible {
75036
+ outline: none;
75037
+ color: ${stateColors.color};
75038
+ box-shadow: 0 0 0 1px #fff, 0 0 0 3px ${colors2[type4].focussed.ringColor};
75039
+ border-radius: ${borderRadius2.BorderRadiusMd}px;
75040
+ border-color: ${colors2[type4].focussed.borderColor};
75041
+ transition: box-shadow 0.2s ease-in-out;
75042
+ }
75043
+
75044
+ &:not(.ant-input-group .ant-input):focus-visible {
75045
+ outline: none;
75046
+ color: ${stateColors.color};
75047
+ box-shadow: 0 0 0 1px #fff, 0 0 0 3px ${colors2[type4].focussed.ringColor};
75048
+ border-radius: ${borderRadius2.BorderRadiusMd}px;
75049
+ border-color: ${colors2[type4].focussed.borderColor};
75050
+ transition: box-shadow 0.2s ease-in-out;
75051
+ }
75052
+
75053
+ &.ant-input-group-wrapper {
75054
+ .ant-input-group {
75055
+ display: flex;
75056
+ align-items: center;
75057
+ height: ${size === "normal" || size === "large" ? "40px" : "32px"};
75058
+
75059
+ .ant-input {
75060
+ height: 100% !important;
75061
+ }
75062
+
75063
+ .ant-input-group-addon {
75064
+ padding: 0 ${components2.input.suffixPrefixHorPadding};
75065
+ height: 100%;
75066
+ display: flex;
75067
+ align-items: center;
75068
+ min-width: fit-content;
75069
+ width: auto;
75070
+
75071
+ > * {
75072
+ width: 100%;
75073
+ }
75074
+
75075
+ .ant-select {
75076
+ height: 100%;
75077
+
75078
+ .ant-select-selector {
75079
+ height: 100%;
75080
+ display: flex;
75081
+ align-items: center;
75082
+ }
75083
+ }
75084
+ }
75085
+ }
75086
+ }
75087
+ `;
75088
+ };
75089
+ const Input$1 = styled(Input$2)`
75090
+ ${({ theme, state, type: type4 = TYPE.primary, size = "normal", ...rest }) => {
75091
+ const hasBeforeAddon = !!rest.addonBefore;
75092
+ const hasAfterAddon = !!rest.addonAfter;
75093
+ return getGenesisInputClass(
75094
+ theme,
75095
+ type4,
75096
+ state,
75097
+ hasBeforeAddon,
75098
+ hasAfterAddon,
75099
+ size
75100
+ );
75101
+ }}
75102
+ `;
75103
+ const DropdownChevron = (properties) => {
75104
+ const { theme } = useGenesis();
75105
+ return /* @__PURE__ */ jsx(
75106
+ "svg",
75107
+ {
75108
+ xmlns: "http://www.w3.org/2000/svg",
75109
+ width: 20,
75110
+ height: 20,
75111
+ fill: "none",
75112
+ ...properties,
75113
+ children: /* @__PURE__ */ jsx(
75114
+ "path",
75115
+ {
75116
+ fill: "#222",
75117
+ fillRule: "evenodd",
75118
+ d: "M5.293 7.293a1 1 0 0 1 1.414 0L10 10.586l3.293-3.293a1 1 0 1 1 1.414 1.414l-4 4a1 1 0 0 1-1.414 0l-4-4a1 1 0 0 1 0-1.414Z",
75119
+ clipRule: "evenodd"
75120
+ }
75121
+ )
75122
+ }
75123
+ );
75124
+ };
75125
+ const Input2 = ({
75126
+ state = STATE.active,
75127
+ size = "normal",
75128
+ onChange,
75129
+ value: value2,
75130
+ ...rest
75131
+ }) => {
75132
+ const { type: type4, ...validRest } = rest;
75133
+ const addonAfter = React__default.isValidElement(rest.addonAfter) && rest.addonAfter.type === Select$1 ? React__default.cloneElement(rest.addonAfter, {
75134
+ suffixIcon: /* @__PURE__ */ jsx(DropdownChevron, {})
75135
+ }) : rest.addonAfter;
75136
+ const handleChange = React__default.useCallback(
75137
+ (e2) => {
75138
+ if (onChange) {
75139
+ onChange({
75140
+ event: "inputChange",
75141
+ payload: {
75142
+ value: e2.target.value
75143
+ }
75144
+ });
75145
+ }
75146
+ },
75147
+ [onChange]
75148
+ );
75149
+ return /* @__PURE__ */ jsx(
75150
+ Input$1,
75151
+ {
75152
+ ...validRest,
75153
+ size,
75154
+ state,
75155
+ disabled: state === "disabled" || rest.disabled,
75156
+ addonAfter,
75157
+ style: {
75158
+ height: size === "normal" || size === "large" ? "40px" : "32px"
75159
+ },
75160
+ onChange: handleChange,
75161
+ value: value2
75162
+ }
75163
+ );
75164
+ };
75165
+ const getVariant = (typography2, variant, breakpoint) => {
75166
+ return `
75167
+ font-size: ${typography2[breakpoint][variant].fontSize}px !important;
75168
+ line-height: ${typography2[breakpoint][variant].lineHeight};
75169
+ letter-spacing: ${typography2[breakpoint][variant].letterSpacing}px;
75170
+ font-weight: ${typography2[breakpoint][variant].fontWeight};
75171
+ `;
75172
+ };
75173
+ const getColor = (color2, colors2, $themeType) => {
75174
+ if (color2) {
75175
+ return color2;
75176
+ }
75177
+ return colors2[$themeType].active.color;
75178
+ };
75179
+ const getFontFamily = (variant) => {
75180
+ return `
75181
+ ${variant.includes("digits") ? "'Roboto Mono', sans-serif" : "'Inter', sans-serif"} !important;
75182
+ `;
75183
+ };
75184
+ const getGenesisTypographyClass = ({ colors: colors2, typography: typography2 }, $themeType, variant, state, breakpoint, color2, $isFullWidth) => `
75185
+ &.ant-typography {
75186
+ font-family: ${getFontFamily(variant)};
75187
+ color: ${getColor(color2, colors2, $themeType)} !important;
75188
+ ${getVariant(typography2, variant, breakpoint)}
75189
+ margin-bottom: 0 !important;
75190
+ width: ${$isFullWidth ? "100%" : "auto"};
75191
+ line-height: 1;
75192
+
75193
+ &:disabled {
75194
+ color: ${colors2.status.disabled.default} !important;
75195
+ userSelect: none;
75196
+ cursor: not-allowed;
75197
+ }
75198
+ }
75199
+ `;
75200
+ const Headline = styled(Typography$1.Title)`
75201
+ ${({
75202
+ theme,
75203
+ $themeType,
75204
+ variant,
75205
+ state,
75206
+ breakpoint,
75207
+ color: color2,
75208
+ $isFullWidth
75209
+ }) => {
75210
+ return getGenesisTypographyClass(
75211
+ theme,
75212
+ $themeType,
75213
+ variant,
75214
+ state,
75215
+ breakpoint,
75216
+ color2,
75217
+ $isFullWidth
75218
+ );
75219
+ }}
75220
+ `;
75221
+ const Paragraph = styled(
75222
+ Typography$1.Paragraph
75223
+ )`
75224
+ ${({
75225
+ theme,
75226
+ $themeType,
75227
+ variant,
75228
+ state,
75229
+ breakpoint,
75230
+ color: color2,
75231
+ $isFullWidth
75232
+ }) => {
75233
+ return getGenesisTypographyClass(
75234
+ theme,
75235
+ $themeType,
75236
+ variant,
75237
+ state,
75238
+ breakpoint,
75239
+ color2,
75240
+ $isFullWidth
75241
+ );
75242
+ }}
75243
+ `;
75244
+ const Text = styled(Typography$1.Text)`
75245
+ ${({
75246
+ theme,
75247
+ $themeType,
75248
+ variant,
75249
+ state,
75250
+ breakpoint,
75251
+ color: color2,
75252
+ $isFullWidth
75253
+ }) => {
75254
+ return getGenesisTypographyClass(
75255
+ theme,
75256
+ $themeType,
75257
+ variant,
75258
+ state,
75259
+ breakpoint,
75260
+ color2,
75261
+ $isFullWidth
75262
+ );
75263
+ }}
75264
+ `;
75265
+ const Typography = ({
75266
+ children,
75267
+ themeType = TYPE.secondary,
75268
+ variant = TYPOGRAPHY_VARIANT.body1,
75269
+ state = STATE.active,
75270
+ color: color2,
75271
+ isText = false,
75272
+ isFullWidth,
75273
+ style: style2,
75274
+ isDisabled,
75275
+ ...rest
75276
+ }) => {
75277
+ const { breakpoint } = useGenesis();
75278
+ if (variant.startsWith("display") || variant.startsWith("heading")) {
75279
+ const level = variant.split("heading")[1] || variant.split("display")[1];
75280
+ return /* @__PURE__ */ jsx(
75281
+ Headline,
75282
+ {
75283
+ state,
75284
+ $themeType: themeType,
75285
+ variant,
75286
+ breakpoint,
75287
+ color: color2,
75288
+ level: Number.parseInt(level),
75289
+ $isFullWidth: isFullWidth,
75290
+ style: style2,
75291
+ disabled: isDisabled,
75292
+ ...rest,
75293
+ children
75294
+ }
75295
+ );
75296
+ }
75297
+ if (isText) {
75298
+ return /* @__PURE__ */ jsx(
75299
+ Text,
75300
+ {
75301
+ state,
75302
+ $themeType: themeType,
75303
+ variant,
75304
+ breakpoint,
75305
+ color: color2,
75306
+ $isFullWidth: isFullWidth,
75307
+ style: style2,
75308
+ disabled: isDisabled,
75309
+ ...rest,
75310
+ children
75311
+ }
75312
+ );
75313
+ }
75314
+ return /* @__PURE__ */ jsx(
75315
+ Paragraph,
75316
+ {
75317
+ state,
75318
+ $themeType: themeType,
75319
+ variant,
75320
+ breakpoint,
75321
+ color: color2,
75322
+ $isFullWidth: isFullWidth,
75323
+ style: style2,
75324
+ disabled: isDisabled,
75325
+ ...rest,
75326
+ children
75327
+ }
75328
+ );
75329
+ };
74921
75330
  const ChatContainer = styled.div`
74922
75331
  display: flex;
74923
75332
  flex-direction: column;
@@ -75282,305 +75691,61 @@ const Form$1 = styled(Form$2)`
75282
75691
  const FormItem = Form$1.Item;
75283
75692
  const Form2 = Object.assign(
75284
75693
  ({ children, ...properties }) => {
75285
- const { breakpoint } = useGenesis();
75286
- return /* @__PURE__ */ jsx(Form$1, { role: "form", ...properties, children });
75287
- },
75288
- {
75289
- Item: FormItem,
75290
- useForm: Form$1.useForm
75291
- }
75292
- );
75293
- const Outline = (properties) => /* @__PURE__ */ jsxs(
75294
- "svg",
75295
- {
75296
- xmlns: "http://www.w3.org/2000/svg",
75297
- width: 24,
75298
- height: 24,
75299
- fill: "none",
75300
- ...properties,
75301
- children: [
75302
- /* @__PURE__ */ jsx(
75303
- "path",
75304
- {
75305
- fill: "#101010",
75306
- d: "M12.6 15.383a2.47 2.47 0 0 1 .18-.926c.054-.139.123-.278.207-.419.086-.143.173-.272.261-.39.09-.119.194-.24.314-.366.119-.127.231-.24.336-.34a17.157 17.157 0 0 1 1.087-.9c.034-.024.059-.044.076-.058.317-.246.552-.522.707-.829.154-.306.231-.616.231-.928 0-.413-.11-.73-.331-.953-.219-.224-.538-.336-.958-.336-.184 0-.372.043-.566.131a1.404 1.404 0 0 0-.48.346.89.89 0 0 1 .577.31.9.9 0 0 1 .235.619c0 .26-.092.481-.276.665a.901.901 0 0 1-.662.272.922.922 0 0 1-.84-.521 1.49 1.49 0 0 1-.177-.71c0-.204.04-.406.118-.606.078-.199.194-.384.348-.556.155-.174.337-.327.548-.46.211-.133.458-.238.741-.314.284-.076.584-.114.903-.114.396 0 .755.04 1.075.12.322.078.59.185.803.32.213.132.39.29.533.474.142.182.245.372.308.571.062.198.093.406.093.624 0 .213-.023.414-.07.604a2.076 2.076 0 0 1-.463.908 2.718 2.718 0 0 1-.346.343 5.695 5.695 0 0 1-.392.296 8.39 8.39 0 0 1-.407.266c-.125.075-.262.16-.41.255-.147.094-.271.18-.373.258a9.965 9.965 0 0 1-.369.264 34.1 34.1 0 0 0-.334.234c-.08.057-.17.133-.272.229-.1.095-.19.2-.273.313.223-.068.444-.102.662-.102h1.524a.307.307 0 0 0 .22-.094.617.617 0 0 0 .146-.246c.035-.1.06-.2.076-.302.018-.102.026-.2.026-.296v-.469h1.055v2.813h-5.39ZM7.418 9.611 7.216 11.1c.326-.102.68-.18 1.063-.232.385-.055.715-.082.99-.082.374 0 .702.058.985.173.283.113.513.275.688.486.176.211.308.46.396.747.088.285.132.607.132.964a2.168 2.168 0 0 1-.404 1.28c-.143.208-.32.39-.53.545a2.6 2.6 0 0 1-.804.375 3.77 3.77 0 0 1-1.075.144 3.46 3.46 0 0 1-.902-.114 2.57 2.57 0 0 1-1.29-.77 1.869 1.869 0 0 1-.348-.56A1.649 1.649 0 0 1 6 13.449c0-.252.059-.488.176-.709a.915.915 0 0 1 .343-.378.909.909 0 0 1 .498-.143c.26 0 .48.091.662.275a.897.897 0 0 1 .275.662.911.911 0 0 1-.234.621.895.895 0 0 1-.577.308c.128.144.289.26.48.349.193.086.382.129.565.129.42 0 .74-.112.958-.335.221-.224.332-.543.332-.955 0-.529-.11-.907-.332-1.133-.22-.227-.6-.34-1.136-.34-.242 0-.534.022-.876.067l-.938-.234.041-.024.48-3.492h.886c.039.01.14.037.301.082.164.043.279.072.343.085a5.676 5.676 0 0 0 .879.067c.824 0 1.527-.078 2.11-.234l.116.352a2.005 2.005 0 0 1-.36.662 1.748 1.748 0 0 1-.539.44 2.544 2.544 0 0 1-.63.23 3.194 3.194 0 0 1-.697.074c-.76 0-1.33-.088-1.708-.264Z"
75307
- }
75308
- ),
75309
- /* @__PURE__ */ jsx(
75310
- "path",
75311
- {
75312
- fill: "#101010",
75313
- fillRule: "evenodd",
75314
- d: "M19 6H5a1 1 0 0 0-1 1v9a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1ZM5 4a3 3 0 0 0-3 3v9a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3H5Z",
75315
- clipRule: "evenodd"
75316
- }
75317
- )
75318
- ]
75319
- }
75320
- );
75321
- const Solid = (properties) => /* @__PURE__ */ jsx(
75322
- "svg",
75323
- {
75324
- xmlns: "http://www.w3.org/2000/svg",
75325
- width: 24,
75326
- height: 24,
75327
- fill: "none",
75328
- ...properties,
75329
- children: /* @__PURE__ */ jsx(
75330
- "path",
75331
- {
75332
- fill: "#101010",
75333
- d: "M19 4a3 3 0 0 1 3 3v9a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V7a3 3 0 0 1 3-3h14ZM6.718 8.117l-.48 3.492-.042.024.938.234c.342-.045.634-.067.876-.067.537 0 .916.113 1.136.34.221.226.332.604.332 1.133 0 .412-.11.73-.332.956-.218.222-.538.334-.958.334-.183 0-.372-.043-.565-.13a1.438 1.438 0 0 1-.48-.348.895.895 0 0 0 .577-.308.911.911 0 0 0 .234-.62c0-.26-.092-.481-.275-.663a.896.896 0 0 0-.662-.275.909.909 0 0 0-.498.143.915.915 0 0 0-.343.378 1.49 1.49 0 0 0-.176.71c0 .204.04.406.117.606.078.199.195.385.349.56a2.57 2.57 0 0 0 1.289.77c.283.076.584.114.902.114a3.77 3.77 0 0 0 1.075-.144 2.6 2.6 0 0 0 .803-.375c.211-.156.388-.337.53-.544a2.168 2.168 0 0 0 .405-1.28c0-.358-.044-.68-.132-.965a2.122 2.122 0 0 0-.396-.747 1.697 1.697 0 0 0-.688-.486 2.598 2.598 0 0 0-.984-.173c-.276 0-.606.027-.99.082-.384.053-.738.13-1.064.232l.202-1.489c.379.176.948.264 1.708.264.246 0 .478-.024.697-.073.219-.05.429-.126.63-.232.203-.105.383-.252.54-.44.155-.187.276-.407.36-.661l-.118-.352c-.582.156-1.285.235-2.109.235a5.676 5.676 0 0 1-.879-.068 8.84 8.84 0 0 1-.343-.085 17.89 17.89 0 0 0-.301-.082h-.885ZM15.178 8c-.318 0-.618.038-.902.114-.283.076-.53.18-.74.314a2.526 2.526 0 0 0-.549.46c-.154.172-.27.357-.348.556-.079.2-.117.402-.117.607 0 .252.058.488.175.709a.933.933 0 0 0 .841.521c.26 0 .48-.09.662-.272a.906.906 0 0 0 .276-.665.9.9 0 0 0-.235-.618.89.89 0 0 0-.577-.311c.129-.144.29-.26.48-.346.194-.088.382-.132.566-.132.42 0 .74.113.958.337.22.223.331.54.331.953 0 .312-.077.622-.231.928-.155.307-.39.583-.707.83l-.076.058c-.134.104-.255.197-.36.281a17.157 17.157 0 0 0-.727.618c-.105.1-.217.213-.336.34a4.22 4.22 0 0 0-.314.366 4.665 4.665 0 0 0-.26.39 2.753 2.753 0 0 0-.34.864 2.47 2.47 0 0 0-.047.48h5.39V12.57h-1.055v.47c0 .095-.008.193-.026.295a1.678 1.678 0 0 1-.076.302.617.617 0 0 1-.146.246.307.307 0 0 1-.22.094h-1.524c-.218 0-.44.034-.662.102.082-.113.173-.218.273-.313.101-.096.192-.172.272-.229a34.1 34.1 0 0 1 .334-.234c.143-.098.266-.186.37-.264.1-.078.225-.164.371-.258.149-.096.286-.18.41-.255a8.39 8.39 0 0 0 .408-.266c.146-.102.277-.2.392-.296.118-.096.233-.21.346-.343a2.076 2.076 0 0 0 .463-.908c.047-.19.07-.39.07-.604 0-.218-.031-.426-.093-.624-.063-.199-.166-.39-.308-.57a2.02 2.02 0 0 0-.533-.476 2.676 2.676 0 0 0-.803-.319c-.32-.08-.679-.12-1.075-.12Z"
75334
- }
75335
- )
75336
- }
75337
- );
75338
- const UnitNumber = ({ variant }) => {
75339
- return variant === "outline" ? /* @__PURE__ */ jsx(Outline, {}) : /* @__PURE__ */ jsx(Solid, {});
75340
- };
75341
- const getStateColors = (colors2, type4, state) => {
75342
- const filled = {
75343
- color: colors2.inputs.onsurface.active,
75344
- borderColor: colors2[TYPE.secondary].active.borderColor,
75345
- ringColor: colors2[type4].focussed.ringColor
75346
- };
75347
- const success = {
75348
- color: colors2.status.success.default,
75349
- borderColor: colors2.status.success.default,
75350
- ringColor: colors2.status.success.ringColor
75351
- };
75352
- const error2 = {
75353
- color: colors2.status.error.default,
75354
- borderColor: colors2.status.error.default,
75355
- ringColor: colors2.status.error.ringColor
75356
- };
75357
- const themeState = state !== STATE.error && state !== STATE.success && state !== STATE.filled ? {
75358
- color: colors2.inputs.onsurface.active,
75359
- backgroundColor: colors2.inputs.surface.active,
75360
- borderColor: colors2.inputs.surface.border,
75361
- ringColor: colors2[type4][state].ringColor
75362
- } : null;
75363
- const stateMap = {
75364
- filled,
75365
- error: error2,
75366
- success,
75367
- themeState
75368
- };
75369
- const getValidKey = (state2) => {
75370
- const validStates = [STATE.filled, STATE.error, STATE.success];
75371
- return validStates.includes(state2) ? state2 : "themeState";
75372
- };
75373
- const css = stateMap[getValidKey(state)];
75374
- return css;
75375
- };
75376
- const getGenesisInputClass = ({ colors: colors2, borderRadius: borderRadius2, components: components2, shadows: shadows2 }, type4, state, hasBeforeAddon, hasAfterAddon, size) => {
75377
- const stateColors = getStateColors(colors2, type4, state);
75378
- const getBorderRadius = (hasBeforeAddon2, hasAfterAddon2) => {
75379
- if (hasAfterAddon2 && !hasBeforeAddon2) {
75380
- return `${borderRadius2.BorderRadiusMd}px 0px 0px ${borderRadius2.BorderRadiusMd}px`;
75381
- }
75382
- if (hasBeforeAddon2 && !hasAfterAddon2) {
75383
- return `0px ${borderRadius2.BorderRadiusMd}px ${borderRadius2.BorderRadiusMd}px 0px`;
75384
- }
75385
- return `0px`;
75386
- };
75387
- return `
75388
- &.ant-input {
75389
- font-family: 'Inter', sans-serif;
75390
- color: ${stateColors.color};
75391
- border-color: ${stateColors.borderColor};
75392
- box-shadow: ${shadows2.inputs[1]} !important;
75393
- height: ${size === "normal" || size === "large" ? "40px" : "32px"} !important;
75394
- }
75395
-
75396
- /* Increase specificity for focus states */
75397
- &.ant-input.ant-input:focus,
75398
- &.ant-input.ant-input:focus-visible,
75399
- &.ant-input.ant-input-focused {
75400
- outline: none !important;
75401
- border-color: ${colors2[type4].focussed.borderColor} !important;
75402
- box-shadow: 0 0 0 1px #fff, 0 0 0 3px ${colors2[type4].focussed.ringColor} !important;
75403
- }
75404
-
75405
- &.ant-input-outlined {
75406
- border: 1px solid ${stateColors.borderColor};
75407
-
75408
- &:hover {
75409
- border-color: ${stateColors.borderColor};
75410
- }
75411
- }
75412
-
75413
- .ant-input-group & {
75414
- &:focus-within {
75415
- outline: none;
75416
- color: ${stateColors.color};
75417
- box-shadow: none;
75418
- border-color: ${colors2[type4].focussed.borderColor};
75419
- }
75420
- }
75421
-
75422
- .ant-input-group:focus-within {
75423
- outline: none;
75424
- box-shadow: 0 0 0 1px #fff, 0 0 0 3px ${colors2[type4].focussed.ringColor};
75425
- border-radius: ${borderRadius2.BorderRadiusMd}px;
75426
- transition: box-shadow 0.2s ease-in-out;
75427
-
75428
- /* Hide focus styles on inner input when parent is focused */
75429
- .ant-input:focus-within {
75430
- box-shadow: none;
75431
- border-radius: 0;
75432
- border-radius: ${getBorderRadius(hasBeforeAddon, hasAfterAddon)};
75433
- border-color: #ddd;
75434
- }
75435
- }
75436
-
75437
- /* Remove inner input focus styles when in a group */
75438
- .ant-input-group .ant-input:focus,
75439
- .ant-input-group .ant-input:focus-visible,
75440
- .ant-input-group .ant-input:focus-within {
75441
- outline: none;
75442
- box-shadow: none;
75443
- border-color: ${colors2[type4].focussed.borderColor};
75444
- }
75445
-
75446
- /* Single focus ring on group */
75447
- .ant-input-group:focus-within {
75448
- outline: none;
75449
- box-shadow: 0 0 0 1px #fff, 0 0 0 3px ${colors2[type4].focussed.ringColor};
75450
- border-radius: ${borderRadius2.BorderRadiusMd}px;
75451
- transition: box-shadow 0.2s ease-in-out;
75452
- }
75453
-
75454
- /* Remove focus styles for standalone inputs */
75455
- &:not(.ant-input-group):focus-visible {
75456
- outline: none;
75457
- color: ${stateColors.color};
75458
- box-shadow: 0 0 0 1px #fff, 0 0 0 3px ${colors2[type4].focussed.ringColor};
75459
- border-radius: ${borderRadius2.BorderRadiusMd}px;
75460
- border-color: ${colors2[type4].focussed.borderColor};
75461
- transition: box-shadow 0.2s ease-in-out;
75462
- }
75463
-
75464
- &:not(.ant-input-group .ant-input):focus-visible {
75465
- outline: none;
75466
- color: ${stateColors.color};
75467
- box-shadow: 0 0 0 1px #fff, 0 0 0 3px ${colors2[type4].focussed.ringColor};
75468
- border-radius: ${borderRadius2.BorderRadiusMd}px;
75469
- border-color: ${colors2[type4].focussed.borderColor};
75470
- transition: box-shadow 0.2s ease-in-out;
75471
- }
75472
-
75473
- &.ant-input-group-wrapper {
75474
- .ant-input-group {
75475
- display: flex;
75476
- align-items: center;
75477
- height: ${size === "normal" || size === "large" ? "40px" : "32px"};
75478
-
75479
- .ant-input {
75480
- height: 100% !important;
75481
- }
75482
-
75483
- .ant-input-group-addon {
75484
- padding: 0 ${components2.input.suffixPrefixHorPadding};
75485
- height: 100%;
75486
- display: flex;
75487
- align-items: center;
75488
- min-width: fit-content;
75489
- width: auto;
75490
-
75491
- > * {
75492
- width: 100%;
75493
- }
75494
-
75495
- .ant-select {
75496
- height: 100%;
75497
-
75498
- .ant-select-selector {
75499
- height: 100%;
75500
- display: flex;
75501
- align-items: center;
75502
- }
75503
- }
75504
- }
75505
- }
75506
- }
75507
- `;
75508
- };
75509
- const Input$1 = styled(Input$2)`
75510
- ${({ theme, state, type: type4 = TYPE.primary, size = "normal", ...rest }) => {
75511
- const hasBeforeAddon = !!rest.addonBefore;
75512
- const hasAfterAddon = !!rest.addonAfter;
75513
- return getGenesisInputClass(
75514
- theme,
75515
- type4,
75516
- state,
75517
- hasBeforeAddon,
75518
- hasAfterAddon,
75519
- size
75520
- );
75521
- }}
75522
- `;
75523
- const DropdownChevron = (properties) => {
75524
- const { theme } = useGenesis();
75525
- return /* @__PURE__ */ jsx(
75526
- "svg",
75527
- {
75528
- xmlns: "http://www.w3.org/2000/svg",
75529
- width: 20,
75530
- height: 20,
75531
- fill: "none",
75532
- ...properties,
75533
- children: /* @__PURE__ */ jsx(
75694
+ const { breakpoint } = useGenesis();
75695
+ return /* @__PURE__ */ jsx(Form$1, { role: "form", ...properties, children });
75696
+ },
75697
+ {
75698
+ Item: FormItem,
75699
+ useForm: Form$1.useForm
75700
+ }
75701
+ );
75702
+ const Outline = (properties) => /* @__PURE__ */ jsxs(
75703
+ "svg",
75704
+ {
75705
+ xmlns: "http://www.w3.org/2000/svg",
75706
+ width: 24,
75707
+ height: 24,
75708
+ fill: "none",
75709
+ ...properties,
75710
+ children: [
75711
+ /* @__PURE__ */ jsx(
75534
75712
  "path",
75535
75713
  {
75536
- fill: "#222",
75714
+ fill: "#101010",
75715
+ d: "M12.6 15.383a2.47 2.47 0 0 1 .18-.926c.054-.139.123-.278.207-.419.086-.143.173-.272.261-.39.09-.119.194-.24.314-.366.119-.127.231-.24.336-.34a17.157 17.157 0 0 1 1.087-.9c.034-.024.059-.044.076-.058.317-.246.552-.522.707-.829.154-.306.231-.616.231-.928 0-.413-.11-.73-.331-.953-.219-.224-.538-.336-.958-.336-.184 0-.372.043-.566.131a1.404 1.404 0 0 0-.48.346.89.89 0 0 1 .577.31.9.9 0 0 1 .235.619c0 .26-.092.481-.276.665a.901.901 0 0 1-.662.272.922.922 0 0 1-.84-.521 1.49 1.49 0 0 1-.177-.71c0-.204.04-.406.118-.606.078-.199.194-.384.348-.556.155-.174.337-.327.548-.46.211-.133.458-.238.741-.314.284-.076.584-.114.903-.114.396 0 .755.04 1.075.12.322.078.59.185.803.32.213.132.39.29.533.474.142.182.245.372.308.571.062.198.093.406.093.624 0 .213-.023.414-.07.604a2.076 2.076 0 0 1-.463.908 2.718 2.718 0 0 1-.346.343 5.695 5.695 0 0 1-.392.296 8.39 8.39 0 0 1-.407.266c-.125.075-.262.16-.41.255-.147.094-.271.18-.373.258a9.965 9.965 0 0 1-.369.264 34.1 34.1 0 0 0-.334.234c-.08.057-.17.133-.272.229-.1.095-.19.2-.273.313.223-.068.444-.102.662-.102h1.524a.307.307 0 0 0 .22-.094.617.617 0 0 0 .146-.246c.035-.1.06-.2.076-.302.018-.102.026-.2.026-.296v-.469h1.055v2.813h-5.39ZM7.418 9.611 7.216 11.1c.326-.102.68-.18 1.063-.232.385-.055.715-.082.99-.082.374 0 .702.058.985.173.283.113.513.275.688.486.176.211.308.46.396.747.088.285.132.607.132.964a2.168 2.168 0 0 1-.404 1.28c-.143.208-.32.39-.53.545a2.6 2.6 0 0 1-.804.375 3.77 3.77 0 0 1-1.075.144 3.46 3.46 0 0 1-.902-.114 2.57 2.57 0 0 1-1.29-.77 1.869 1.869 0 0 1-.348-.56A1.649 1.649 0 0 1 6 13.449c0-.252.059-.488.176-.709a.915.915 0 0 1 .343-.378.909.909 0 0 1 .498-.143c.26 0 .48.091.662.275a.897.897 0 0 1 .275.662.911.911 0 0 1-.234.621.895.895 0 0 1-.577.308c.128.144.289.26.48.349.193.086.382.129.565.129.42 0 .74-.112.958-.335.221-.224.332-.543.332-.955 0-.529-.11-.907-.332-1.133-.22-.227-.6-.34-1.136-.34-.242 0-.534.022-.876.067l-.938-.234.041-.024.48-3.492h.886c.039.01.14.037.301.082.164.043.279.072.343.085a5.676 5.676 0 0 0 .879.067c.824 0 1.527-.078 2.11-.234l.116.352a2.005 2.005 0 0 1-.36.662 1.748 1.748 0 0 1-.539.44 2.544 2.544 0 0 1-.63.23 3.194 3.194 0 0 1-.697.074c-.76 0-1.33-.088-1.708-.264Z"
75716
+ }
75717
+ ),
75718
+ /* @__PURE__ */ jsx(
75719
+ "path",
75720
+ {
75721
+ fill: "#101010",
75537
75722
  fillRule: "evenodd",
75538
- d: "M5.293 7.293a1 1 0 0 1 1.414 0L10 10.586l3.293-3.293a1 1 0 1 1 1.414 1.414l-4 4a1 1 0 0 1-1.414 0l-4-4a1 1 0 0 1 0-1.414Z",
75723
+ d: "M19 6H5a1 1 0 0 0-1 1v9a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1ZM5 4a3 3 0 0 0-3 3v9a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3H5Z",
75539
75724
  clipRule: "evenodd"
75540
75725
  }
75541
75726
  )
75542
- }
75543
- );
75544
- };
75545
- const Input2 = ({
75546
- state = STATE.active,
75547
- size = "normal",
75548
- onChange,
75549
- value: value2,
75550
- ...rest
75551
- }) => {
75552
- const { type: type4, ...validRest } = rest;
75553
- const addonAfter = React__default.isValidElement(rest.addonAfter) && rest.addonAfter.type === Select$1 ? React__default.cloneElement(rest.addonAfter, {
75554
- suffixIcon: /* @__PURE__ */ jsx(DropdownChevron, {})
75555
- }) : rest.addonAfter;
75556
- const handleChange = React__default.useCallback(
75557
- (e2) => {
75558
- if (onChange) {
75559
- onChange({
75560
- event: "inputChange",
75561
- payload: {
75562
- value: e2.target.value
75563
- }
75564
- });
75727
+ ]
75728
+ }
75729
+ );
75730
+ const Solid = (properties) => /* @__PURE__ */ jsx(
75731
+ "svg",
75732
+ {
75733
+ xmlns: "http://www.w3.org/2000/svg",
75734
+ width: 24,
75735
+ height: 24,
75736
+ fill: "none",
75737
+ ...properties,
75738
+ children: /* @__PURE__ */ jsx(
75739
+ "path",
75740
+ {
75741
+ fill: "#101010",
75742
+ d: "M19 4a3 3 0 0 1 3 3v9a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V7a3 3 0 0 1 3-3h14ZM6.718 8.117l-.48 3.492-.042.024.938.234c.342-.045.634-.067.876-.067.537 0 .916.113 1.136.34.221.226.332.604.332 1.133 0 .412-.11.73-.332.956-.218.222-.538.334-.958.334-.183 0-.372-.043-.565-.13a1.438 1.438 0 0 1-.48-.348.895.895 0 0 0 .577-.308.911.911 0 0 0 .234-.62c0-.26-.092-.481-.275-.663a.896.896 0 0 0-.662-.275.909.909 0 0 0-.498.143.915.915 0 0 0-.343.378 1.49 1.49 0 0 0-.176.71c0 .204.04.406.117.606.078.199.195.385.349.56a2.57 2.57 0 0 0 1.289.77c.283.076.584.114.902.114a3.77 3.77 0 0 0 1.075-.144 2.6 2.6 0 0 0 .803-.375c.211-.156.388-.337.53-.544a2.168 2.168 0 0 0 .405-1.28c0-.358-.044-.68-.132-.965a2.122 2.122 0 0 0-.396-.747 1.697 1.697 0 0 0-.688-.486 2.598 2.598 0 0 0-.984-.173c-.276 0-.606.027-.99.082-.384.053-.738.13-1.064.232l.202-1.489c.379.176.948.264 1.708.264.246 0 .478-.024.697-.073.219-.05.429-.126.63-.232.203-.105.383-.252.54-.44.155-.187.276-.407.36-.661l-.118-.352c-.582.156-1.285.235-2.109.235a5.676 5.676 0 0 1-.879-.068 8.84 8.84 0 0 1-.343-.085 17.89 17.89 0 0 0-.301-.082h-.885ZM15.178 8c-.318 0-.618.038-.902.114-.283.076-.53.18-.74.314a2.526 2.526 0 0 0-.549.46c-.154.172-.27.357-.348.556-.079.2-.117.402-.117.607 0 .252.058.488.175.709a.933.933 0 0 0 .841.521c.26 0 .48-.09.662-.272a.906.906 0 0 0 .276-.665.9.9 0 0 0-.235-.618.89.89 0 0 0-.577-.311c.129-.144.29-.26.48-.346.194-.088.382-.132.566-.132.42 0 .74.113.958.337.22.223.331.54.331.953 0 .312-.077.622-.231.928-.155.307-.39.583-.707.83l-.076.058c-.134.104-.255.197-.36.281a17.157 17.157 0 0 0-.727.618c-.105.1-.217.213-.336.34a4.22 4.22 0 0 0-.314.366 4.665 4.665 0 0 0-.26.39 2.753 2.753 0 0 0-.34.864 2.47 2.47 0 0 0-.047.48h5.39V12.57h-1.055v.47c0 .095-.008.193-.026.295a1.678 1.678 0 0 1-.076.302.617.617 0 0 1-.146.246.307.307 0 0 1-.22.094h-1.524c-.218 0-.44.034-.662.102.082-.113.173-.218.273-.313.101-.096.192-.172.272-.229a34.1 34.1 0 0 1 .334-.234c.143-.098.266-.186.37-.264.1-.078.225-.164.371-.258.149-.096.286-.18.41-.255a8.39 8.39 0 0 0 .408-.266c.146-.102.277-.2.392-.296.118-.096.233-.21.346-.343a2.076 2.076 0 0 0 .463-.908c.047-.19.07-.39.07-.604 0-.218-.031-.426-.093-.624-.063-.199-.166-.39-.308-.57a2.02 2.02 0 0 0-.533-.476 2.676 2.676 0 0 0-.803-.319c-.32-.08-.679-.12-1.075-.12Z"
75565
75743
  }
75566
- },
75567
- [onChange]
75568
- );
75569
- return /* @__PURE__ */ jsx(
75570
- Input$1,
75571
- {
75572
- ...validRest,
75573
- size,
75574
- state,
75575
- disabled: state === "disabled" || rest.disabled,
75576
- addonAfter,
75577
- style: {
75578
- height: size === "normal" || size === "large" ? "40px" : "32px"
75579
- },
75580
- onChange: handleChange,
75581
- value: value2
75582
- }
75583
- );
75744
+ )
75745
+ }
75746
+ );
75747
+ const UnitNumber = ({ variant }) => {
75748
+ return variant === "outline" ? /* @__PURE__ */ jsx(Outline, {}) : /* @__PURE__ */ jsx(Solid, {});
75584
75749
  };
75585
75750
  function r(e2) {
75586
75751
  var t2, f, n2 = "";
@@ -78994,171 +79159,6 @@ const Table$1 = styled(ForwardTable)`
78994
79159
  return getGenesisClass$3(theme, $isMainContentCell);
78995
79160
  }}
78996
79161
  `;
78997
- const getVariant = (typography2, variant, breakpoint) => {
78998
- return `
78999
- font-size: ${typography2[breakpoint][variant].fontSize}px !important;
79000
- line-height: ${typography2[breakpoint][variant].lineHeight};
79001
- letter-spacing: ${typography2[breakpoint][variant].letterSpacing}px;
79002
- font-weight: ${typography2[breakpoint][variant].fontWeight};
79003
- `;
79004
- };
79005
- const getColor = (color2, colors2, $themeType) => {
79006
- if (color2) {
79007
- return color2;
79008
- }
79009
- return colors2[$themeType].active.color;
79010
- };
79011
- const getFontFamily = (variant) => {
79012
- return `
79013
- ${variant.includes("digits") ? "'Roboto Mono', sans-serif" : "'Inter', sans-serif"} !important;
79014
- `;
79015
- };
79016
- const getGenesisTypographyClass = ({ colors: colors2, typography: typography2 }, $themeType, variant, state, breakpoint, color2, $isFullWidth) => `
79017
- &.ant-typography {
79018
- font-family: ${getFontFamily(variant)};
79019
- color: ${getColor(color2, colors2, $themeType)} !important;
79020
- ${getVariant(typography2, variant, breakpoint)}
79021
- margin-bottom: 0 !important;
79022
- width: ${$isFullWidth ? "100%" : "auto"};
79023
- line-height: 1;
79024
-
79025
- &:disabled {
79026
- color: ${colors2.status.disabled.default} !important;
79027
- userSelect: none;
79028
- cursor: not-allowed;
79029
- }
79030
- }
79031
- `;
79032
- const Headline = styled(Typography$1.Title)`
79033
- ${({
79034
- theme,
79035
- $themeType,
79036
- variant,
79037
- state,
79038
- breakpoint,
79039
- color: color2,
79040
- $isFullWidth
79041
- }) => {
79042
- return getGenesisTypographyClass(
79043
- theme,
79044
- $themeType,
79045
- variant,
79046
- state,
79047
- breakpoint,
79048
- color2,
79049
- $isFullWidth
79050
- );
79051
- }}
79052
- `;
79053
- const Paragraph = styled(
79054
- Typography$1.Paragraph
79055
- )`
79056
- ${({
79057
- theme,
79058
- $themeType,
79059
- variant,
79060
- state,
79061
- breakpoint,
79062
- color: color2,
79063
- $isFullWidth
79064
- }) => {
79065
- return getGenesisTypographyClass(
79066
- theme,
79067
- $themeType,
79068
- variant,
79069
- state,
79070
- breakpoint,
79071
- color2,
79072
- $isFullWidth
79073
- );
79074
- }}
79075
- `;
79076
- const Text = styled(Typography$1.Text)`
79077
- ${({
79078
- theme,
79079
- $themeType,
79080
- variant,
79081
- state,
79082
- breakpoint,
79083
- color: color2,
79084
- $isFullWidth
79085
- }) => {
79086
- return getGenesisTypographyClass(
79087
- theme,
79088
- $themeType,
79089
- variant,
79090
- state,
79091
- breakpoint,
79092
- color2,
79093
- $isFullWidth
79094
- );
79095
- }}
79096
- `;
79097
- const Typography = ({
79098
- children,
79099
- themeType = TYPE.secondary,
79100
- variant = TYPOGRAPHY_VARIANT.body1,
79101
- state = STATE.active,
79102
- color: color2,
79103
- isText = false,
79104
- isFullWidth,
79105
- style: style2,
79106
- isDisabled,
79107
- ...rest
79108
- }) => {
79109
- const { breakpoint } = useGenesis();
79110
- if (variant.startsWith("display") || variant.startsWith("heading")) {
79111
- const level = variant.split("heading")[1] || variant.split("display")[1];
79112
- return /* @__PURE__ */ jsx(
79113
- Headline,
79114
- {
79115
- state,
79116
- $themeType: themeType,
79117
- variant,
79118
- breakpoint,
79119
- color: color2,
79120
- level: Number.parseInt(level),
79121
- $isFullWidth: isFullWidth,
79122
- style: style2,
79123
- disabled: isDisabled,
79124
- ...rest,
79125
- children
79126
- }
79127
- );
79128
- }
79129
- if (isText) {
79130
- return /* @__PURE__ */ jsx(
79131
- Text,
79132
- {
79133
- state,
79134
- $themeType: themeType,
79135
- variant,
79136
- breakpoint,
79137
- color: color2,
79138
- $isFullWidth: isFullWidth,
79139
- style: style2,
79140
- disabled: isDisabled,
79141
- ...rest,
79142
- children
79143
- }
79144
- );
79145
- }
79146
- return /* @__PURE__ */ jsx(
79147
- Paragraph,
79148
- {
79149
- state,
79150
- $themeType: themeType,
79151
- variant,
79152
- breakpoint,
79153
- color: color2,
79154
- $isFullWidth: isFullWidth,
79155
- style: style2,
79156
- disabled: isDisabled,
79157
- ...rest,
79158
- children
79159
- }
79160
- );
79161
- };
79162
79162
  const NumberButton = styled.button`
79163
79163
  background: ${({ $active, theme }) => $active ? theme.colors.primary.default.backgroundColor : "transparent"};
79164
79164
  color: ${({ $active, theme }) => $active ? "#fff" : theme.colors.onsurface["copy-light"] || "#6C6C6C"};