@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.cjs CHANGED
@@ -74936,6 +74936,415 @@ const Message$1 = ({ message: message2, handle, isThinking = false }) => {
74936
74936
  ) : /* @__PURE__ */ jsxRuntime.jsx(MessageText, { children: message2 }) })
74937
74937
  ] });
74938
74938
  };
74939
+ const getStateColors = (colors2, type4, state) => {
74940
+ const filled = {
74941
+ color: colors2.inputs.onsurface.active,
74942
+ borderColor: colors2[TYPE.secondary].active.borderColor,
74943
+ ringColor: colors2[type4].focussed.ringColor
74944
+ };
74945
+ const success = {
74946
+ color: colors2.status.success.default,
74947
+ borderColor: colors2.status.success.default,
74948
+ ringColor: colors2.status.success.ringColor
74949
+ };
74950
+ const error2 = {
74951
+ color: colors2.status.error.default,
74952
+ borderColor: colors2.status.error.default,
74953
+ ringColor: colors2.status.error.ringColor
74954
+ };
74955
+ const themeState = state !== STATE.error && state !== STATE.success && state !== STATE.filled ? {
74956
+ color: colors2.inputs.onsurface.active,
74957
+ backgroundColor: colors2.inputs.surface.active,
74958
+ borderColor: colors2.inputs.surface.border,
74959
+ ringColor: colors2[type4][state].ringColor
74960
+ } : null;
74961
+ const stateMap = {
74962
+ filled,
74963
+ error: error2,
74964
+ success,
74965
+ themeState
74966
+ };
74967
+ const getValidKey = (state2) => {
74968
+ const validStates = [STATE.filled, STATE.error, STATE.success];
74969
+ return validStates.includes(state2) ? state2 : "themeState";
74970
+ };
74971
+ const css = stateMap[getValidKey(state)];
74972
+ return css;
74973
+ };
74974
+ const getGenesisInputClass = ({ colors: colors2, borderRadius: borderRadius2, components: components2, shadows: shadows2 }, type4, state, hasBeforeAddon, hasAfterAddon, size) => {
74975
+ const stateColors = getStateColors(colors2, type4, state);
74976
+ const getBorderRadius = (hasBeforeAddon2, hasAfterAddon2) => {
74977
+ if (hasAfterAddon2 && !hasBeforeAddon2) {
74978
+ return `${borderRadius2.BorderRadiusMd}px 0px 0px ${borderRadius2.BorderRadiusMd}px`;
74979
+ }
74980
+ if (hasBeforeAddon2 && !hasAfterAddon2) {
74981
+ return `0px ${borderRadius2.BorderRadiusMd}px ${borderRadius2.BorderRadiusMd}px 0px`;
74982
+ }
74983
+ return `0px`;
74984
+ };
74985
+ return `
74986
+ &.ant-input {
74987
+ font-family: 'Inter', sans-serif;
74988
+ color: ${stateColors.color};
74989
+ border-color: ${stateColors.borderColor};
74990
+ box-shadow: ${shadows2.inputs[1]} !important;
74991
+ height: ${size === "normal" || size === "large" ? "40px" : "32px"} !important;
74992
+ }
74993
+
74994
+ /* Increase specificity for focus states */
74995
+ &.ant-input.ant-input:focus,
74996
+ &.ant-input.ant-input:focus-visible,
74997
+ &.ant-input.ant-input-focused {
74998
+ outline: none !important;
74999
+ border-color: ${colors2[type4].focussed.borderColor} !important;
75000
+ box-shadow: 0 0 0 1px #fff, 0 0 0 3px ${colors2[type4].focussed.ringColor} !important;
75001
+ }
75002
+
75003
+ &.ant-input-outlined {
75004
+ border: 1px solid ${stateColors.borderColor};
75005
+
75006
+ &:hover {
75007
+ border-color: ${stateColors.borderColor};
75008
+ }
75009
+ }
75010
+
75011
+ .ant-input-group & {
75012
+ &:focus-within {
75013
+ outline: none;
75014
+ color: ${stateColors.color};
75015
+ box-shadow: none;
75016
+ border-color: ${colors2[type4].focussed.borderColor};
75017
+ }
75018
+ }
75019
+
75020
+ .ant-input-group:focus-within {
75021
+ outline: none;
75022
+ box-shadow: 0 0 0 1px #fff, 0 0 0 3px ${colors2[type4].focussed.ringColor};
75023
+ border-radius: ${borderRadius2.BorderRadiusMd}px;
75024
+ transition: box-shadow 0.2s ease-in-out;
75025
+
75026
+ /* Hide focus styles on inner input when parent is focused */
75027
+ .ant-input:focus-within {
75028
+ box-shadow: none;
75029
+ border-radius: 0;
75030
+ border-radius: ${getBorderRadius(hasBeforeAddon, hasAfterAddon)};
75031
+ border-color: #ddd;
75032
+ }
75033
+ }
75034
+
75035
+ /* Remove inner input focus styles when in a group */
75036
+ .ant-input-group .ant-input:focus,
75037
+ .ant-input-group .ant-input:focus-visible,
75038
+ .ant-input-group .ant-input:focus-within {
75039
+ outline: none;
75040
+ box-shadow: none;
75041
+ border-color: ${colors2[type4].focussed.borderColor};
75042
+ }
75043
+
75044
+ /* Single focus ring on group */
75045
+ .ant-input-group:focus-within {
75046
+ outline: none;
75047
+ box-shadow: 0 0 0 1px #fff, 0 0 0 3px ${colors2[type4].focussed.ringColor};
75048
+ border-radius: ${borderRadius2.BorderRadiusMd}px;
75049
+ transition: box-shadow 0.2s ease-in-out;
75050
+ }
75051
+
75052
+ /* Remove focus styles for standalone inputs */
75053
+ &:not(.ant-input-group):focus-visible {
75054
+ outline: none;
75055
+ color: ${stateColors.color};
75056
+ box-shadow: 0 0 0 1px #fff, 0 0 0 3px ${colors2[type4].focussed.ringColor};
75057
+ border-radius: ${borderRadius2.BorderRadiusMd}px;
75058
+ border-color: ${colors2[type4].focussed.borderColor};
75059
+ transition: box-shadow 0.2s ease-in-out;
75060
+ }
75061
+
75062
+ &:not(.ant-input-group .ant-input):focus-visible {
75063
+ outline: none;
75064
+ color: ${stateColors.color};
75065
+ box-shadow: 0 0 0 1px #fff, 0 0 0 3px ${colors2[type4].focussed.ringColor};
75066
+ border-radius: ${borderRadius2.BorderRadiusMd}px;
75067
+ border-color: ${colors2[type4].focussed.borderColor};
75068
+ transition: box-shadow 0.2s ease-in-out;
75069
+ }
75070
+
75071
+ &.ant-input-group-wrapper {
75072
+ .ant-input-group {
75073
+ display: flex;
75074
+ align-items: center;
75075
+ height: ${size === "normal" || size === "large" ? "40px" : "32px"};
75076
+
75077
+ .ant-input {
75078
+ height: 100% !important;
75079
+ }
75080
+
75081
+ .ant-input-group-addon {
75082
+ padding: 0 ${components2.input.suffixPrefixHorPadding};
75083
+ height: 100%;
75084
+ display: flex;
75085
+ align-items: center;
75086
+ min-width: fit-content;
75087
+ width: auto;
75088
+
75089
+ > * {
75090
+ width: 100%;
75091
+ }
75092
+
75093
+ .ant-select {
75094
+ height: 100%;
75095
+
75096
+ .ant-select-selector {
75097
+ height: 100%;
75098
+ display: flex;
75099
+ align-items: center;
75100
+ }
75101
+ }
75102
+ }
75103
+ }
75104
+ }
75105
+ `;
75106
+ };
75107
+ const Input$1 = styled(Input$2)`
75108
+ ${({ theme, state, type: type4 = TYPE.primary, size = "normal", ...rest }) => {
75109
+ const hasBeforeAddon = !!rest.addonBefore;
75110
+ const hasAfterAddon = !!rest.addonAfter;
75111
+ return getGenesisInputClass(
75112
+ theme,
75113
+ type4,
75114
+ state,
75115
+ hasBeforeAddon,
75116
+ hasAfterAddon,
75117
+ size
75118
+ );
75119
+ }}
75120
+ `;
75121
+ const DropdownChevron = (properties) => {
75122
+ const { theme } = useGenesis();
75123
+ return /* @__PURE__ */ jsxRuntime.jsx(
75124
+ "svg",
75125
+ {
75126
+ xmlns: "http://www.w3.org/2000/svg",
75127
+ width: 20,
75128
+ height: 20,
75129
+ fill: "none",
75130
+ ...properties,
75131
+ children: /* @__PURE__ */ jsxRuntime.jsx(
75132
+ "path",
75133
+ {
75134
+ fill: "#222",
75135
+ fillRule: "evenodd",
75136
+ 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",
75137
+ clipRule: "evenodd"
75138
+ }
75139
+ )
75140
+ }
75141
+ );
75142
+ };
75143
+ const Input2 = ({
75144
+ state = STATE.active,
75145
+ size = "normal",
75146
+ onChange,
75147
+ value: value2,
75148
+ ...rest
75149
+ }) => {
75150
+ const { type: type4, ...validRest } = rest;
75151
+ const addonAfter = React.isValidElement(rest.addonAfter) && rest.addonAfter.type === Select$1 ? React.cloneElement(rest.addonAfter, {
75152
+ suffixIcon: /* @__PURE__ */ jsxRuntime.jsx(DropdownChevron, {})
75153
+ }) : rest.addonAfter;
75154
+ const handleChange = React.useCallback(
75155
+ (e2) => {
75156
+ if (onChange) {
75157
+ onChange({
75158
+ event: "inputChange",
75159
+ payload: {
75160
+ value: e2.target.value
75161
+ }
75162
+ });
75163
+ }
75164
+ },
75165
+ [onChange]
75166
+ );
75167
+ return /* @__PURE__ */ jsxRuntime.jsx(
75168
+ Input$1,
75169
+ {
75170
+ ...validRest,
75171
+ size,
75172
+ state,
75173
+ disabled: state === "disabled" || rest.disabled,
75174
+ addonAfter,
75175
+ style: {
75176
+ height: size === "normal" || size === "large" ? "40px" : "32px"
75177
+ },
75178
+ onChange: handleChange,
75179
+ value: value2
75180
+ }
75181
+ );
75182
+ };
75183
+ const getVariant = (typography2, variant, breakpoint) => {
75184
+ return `
75185
+ font-size: ${typography2[breakpoint][variant].fontSize}px !important;
75186
+ line-height: ${typography2[breakpoint][variant].lineHeight};
75187
+ letter-spacing: ${typography2[breakpoint][variant].letterSpacing}px;
75188
+ font-weight: ${typography2[breakpoint][variant].fontWeight};
75189
+ `;
75190
+ };
75191
+ const getColor = (color2, colors2, $themeType) => {
75192
+ if (color2) {
75193
+ return color2;
75194
+ }
75195
+ return colors2[$themeType].active.color;
75196
+ };
75197
+ const getFontFamily = (variant) => {
75198
+ return `
75199
+ ${variant.includes("digits") ? "'Roboto Mono', sans-serif" : "'Inter', sans-serif"} !important;
75200
+ `;
75201
+ };
75202
+ const getGenesisTypographyClass = ({ colors: colors2, typography: typography2 }, $themeType, variant, state, breakpoint, color2, $isFullWidth) => `
75203
+ &.ant-typography {
75204
+ font-family: ${getFontFamily(variant)};
75205
+ color: ${getColor(color2, colors2, $themeType)} !important;
75206
+ ${getVariant(typography2, variant, breakpoint)}
75207
+ margin-bottom: 0 !important;
75208
+ width: ${$isFullWidth ? "100%" : "auto"};
75209
+ line-height: 1;
75210
+
75211
+ &:disabled {
75212
+ color: ${colors2.status.disabled.default} !important;
75213
+ userSelect: none;
75214
+ cursor: not-allowed;
75215
+ }
75216
+ }
75217
+ `;
75218
+ const Headline = styled(Typography$1.Title)`
75219
+ ${({
75220
+ theme,
75221
+ $themeType,
75222
+ variant,
75223
+ state,
75224
+ breakpoint,
75225
+ color: color2,
75226
+ $isFullWidth
75227
+ }) => {
75228
+ return getGenesisTypographyClass(
75229
+ theme,
75230
+ $themeType,
75231
+ variant,
75232
+ state,
75233
+ breakpoint,
75234
+ color2,
75235
+ $isFullWidth
75236
+ );
75237
+ }}
75238
+ `;
75239
+ const Paragraph = styled(
75240
+ Typography$1.Paragraph
75241
+ )`
75242
+ ${({
75243
+ theme,
75244
+ $themeType,
75245
+ variant,
75246
+ state,
75247
+ breakpoint,
75248
+ color: color2,
75249
+ $isFullWidth
75250
+ }) => {
75251
+ return getGenesisTypographyClass(
75252
+ theme,
75253
+ $themeType,
75254
+ variant,
75255
+ state,
75256
+ breakpoint,
75257
+ color2,
75258
+ $isFullWidth
75259
+ );
75260
+ }}
75261
+ `;
75262
+ const Text = styled(Typography$1.Text)`
75263
+ ${({
75264
+ theme,
75265
+ $themeType,
75266
+ variant,
75267
+ state,
75268
+ breakpoint,
75269
+ color: color2,
75270
+ $isFullWidth
75271
+ }) => {
75272
+ return getGenesisTypographyClass(
75273
+ theme,
75274
+ $themeType,
75275
+ variant,
75276
+ state,
75277
+ breakpoint,
75278
+ color2,
75279
+ $isFullWidth
75280
+ );
75281
+ }}
75282
+ `;
75283
+ const Typography = ({
75284
+ children,
75285
+ themeType = TYPE.secondary,
75286
+ variant = TYPOGRAPHY_VARIANT.body1,
75287
+ state = STATE.active,
75288
+ color: color2,
75289
+ isText = false,
75290
+ isFullWidth,
75291
+ style: style2,
75292
+ isDisabled,
75293
+ ...rest
75294
+ }) => {
75295
+ const { breakpoint } = useGenesis();
75296
+ if (variant.startsWith("display") || variant.startsWith("heading")) {
75297
+ const level = variant.split("heading")[1] || variant.split("display")[1];
75298
+ return /* @__PURE__ */ jsxRuntime.jsx(
75299
+ Headline,
75300
+ {
75301
+ state,
75302
+ $themeType: themeType,
75303
+ variant,
75304
+ breakpoint,
75305
+ color: color2,
75306
+ level: Number.parseInt(level),
75307
+ $isFullWidth: isFullWidth,
75308
+ style: style2,
75309
+ disabled: isDisabled,
75310
+ ...rest,
75311
+ children
75312
+ }
75313
+ );
75314
+ }
75315
+ if (isText) {
75316
+ return /* @__PURE__ */ jsxRuntime.jsx(
75317
+ Text,
75318
+ {
75319
+ state,
75320
+ $themeType: themeType,
75321
+ variant,
75322
+ breakpoint,
75323
+ color: color2,
75324
+ $isFullWidth: isFullWidth,
75325
+ style: style2,
75326
+ disabled: isDisabled,
75327
+ ...rest,
75328
+ children
75329
+ }
75330
+ );
75331
+ }
75332
+ return /* @__PURE__ */ jsxRuntime.jsx(
75333
+ Paragraph,
75334
+ {
75335
+ state,
75336
+ $themeType: themeType,
75337
+ variant,
75338
+ breakpoint,
75339
+ color: color2,
75340
+ $isFullWidth: isFullWidth,
75341
+ style: style2,
75342
+ disabled: isDisabled,
75343
+ ...rest,
75344
+ children
75345
+ }
75346
+ );
75347
+ };
74939
75348
  const ChatContainer = styled.div`
74940
75349
  display: flex;
74941
75350
  flex-direction: column;
@@ -75300,305 +75709,61 @@ const Form$1 = styled(Form$2)`
75300
75709
  const FormItem = Form$1.Item;
75301
75710
  const Form2 = Object.assign(
75302
75711
  ({ children, ...properties }) => {
75303
- const { breakpoint } = useGenesis();
75304
- return /* @__PURE__ */ jsxRuntime.jsx(Form$1, { role: "form", ...properties, children });
75305
- },
75306
- {
75307
- Item: FormItem,
75308
- useForm: Form$1.useForm
75309
- }
75310
- );
75311
- const Outline = (properties) => /* @__PURE__ */ jsxRuntime.jsxs(
75312
- "svg",
75313
- {
75314
- xmlns: "http://www.w3.org/2000/svg",
75315
- width: 24,
75316
- height: 24,
75317
- fill: "none",
75318
- ...properties,
75319
- children: [
75320
- /* @__PURE__ */ jsxRuntime.jsx(
75321
- "path",
75322
- {
75323
- fill: "#101010",
75324
- 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"
75325
- }
75326
- ),
75327
- /* @__PURE__ */ jsxRuntime.jsx(
75328
- "path",
75329
- {
75330
- fill: "#101010",
75331
- fillRule: "evenodd",
75332
- 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",
75333
- clipRule: "evenodd"
75334
- }
75335
- )
75336
- ]
75337
- }
75338
- );
75339
- const Solid = (properties) => /* @__PURE__ */ jsxRuntime.jsx(
75340
- "svg",
75341
- {
75342
- xmlns: "http://www.w3.org/2000/svg",
75343
- width: 24,
75344
- height: 24,
75345
- fill: "none",
75346
- ...properties,
75347
- children: /* @__PURE__ */ jsxRuntime.jsx(
75348
- "path",
75349
- {
75350
- fill: "#101010",
75351
- 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"
75352
- }
75353
- )
75354
- }
75355
- );
75356
- const UnitNumber = ({ variant }) => {
75357
- return variant === "outline" ? /* @__PURE__ */ jsxRuntime.jsx(Outline, {}) : /* @__PURE__ */ jsxRuntime.jsx(Solid, {});
75358
- };
75359
- const getStateColors = (colors2, type4, state) => {
75360
- const filled = {
75361
- color: colors2.inputs.onsurface.active,
75362
- borderColor: colors2[TYPE.secondary].active.borderColor,
75363
- ringColor: colors2[type4].focussed.ringColor
75364
- };
75365
- const success = {
75366
- color: colors2.status.success.default,
75367
- borderColor: colors2.status.success.default,
75368
- ringColor: colors2.status.success.ringColor
75369
- };
75370
- const error2 = {
75371
- color: colors2.status.error.default,
75372
- borderColor: colors2.status.error.default,
75373
- ringColor: colors2.status.error.ringColor
75374
- };
75375
- const themeState = state !== STATE.error && state !== STATE.success && state !== STATE.filled ? {
75376
- color: colors2.inputs.onsurface.active,
75377
- backgroundColor: colors2.inputs.surface.active,
75378
- borderColor: colors2.inputs.surface.border,
75379
- ringColor: colors2[type4][state].ringColor
75380
- } : null;
75381
- const stateMap = {
75382
- filled,
75383
- error: error2,
75384
- success,
75385
- themeState
75386
- };
75387
- const getValidKey = (state2) => {
75388
- const validStates = [STATE.filled, STATE.error, STATE.success];
75389
- return validStates.includes(state2) ? state2 : "themeState";
75390
- };
75391
- const css = stateMap[getValidKey(state)];
75392
- return css;
75393
- };
75394
- const getGenesisInputClass = ({ colors: colors2, borderRadius: borderRadius2, components: components2, shadows: shadows2 }, type4, state, hasBeforeAddon, hasAfterAddon, size) => {
75395
- const stateColors = getStateColors(colors2, type4, state);
75396
- const getBorderRadius = (hasBeforeAddon2, hasAfterAddon2) => {
75397
- if (hasAfterAddon2 && !hasBeforeAddon2) {
75398
- return `${borderRadius2.BorderRadiusMd}px 0px 0px ${borderRadius2.BorderRadiusMd}px`;
75399
- }
75400
- if (hasBeforeAddon2 && !hasAfterAddon2) {
75401
- return `0px ${borderRadius2.BorderRadiusMd}px ${borderRadius2.BorderRadiusMd}px 0px`;
75402
- }
75403
- return `0px`;
75404
- };
75405
- return `
75406
- &.ant-input {
75407
- font-family: 'Inter', sans-serif;
75408
- color: ${stateColors.color};
75409
- border-color: ${stateColors.borderColor};
75410
- box-shadow: ${shadows2.inputs[1]} !important;
75411
- height: ${size === "normal" || size === "large" ? "40px" : "32px"} !important;
75412
- }
75413
-
75414
- /* Increase specificity for focus states */
75415
- &.ant-input.ant-input:focus,
75416
- &.ant-input.ant-input:focus-visible,
75417
- &.ant-input.ant-input-focused {
75418
- outline: none !important;
75419
- border-color: ${colors2[type4].focussed.borderColor} !important;
75420
- box-shadow: 0 0 0 1px #fff, 0 0 0 3px ${colors2[type4].focussed.ringColor} !important;
75421
- }
75422
-
75423
- &.ant-input-outlined {
75424
- border: 1px solid ${stateColors.borderColor};
75425
-
75426
- &:hover {
75427
- border-color: ${stateColors.borderColor};
75428
- }
75429
- }
75430
-
75431
- .ant-input-group & {
75432
- &:focus-within {
75433
- outline: none;
75434
- color: ${stateColors.color};
75435
- box-shadow: none;
75436
- border-color: ${colors2[type4].focussed.borderColor};
75437
- }
75438
- }
75439
-
75440
- .ant-input-group:focus-within {
75441
- outline: none;
75442
- box-shadow: 0 0 0 1px #fff, 0 0 0 3px ${colors2[type4].focussed.ringColor};
75443
- border-radius: ${borderRadius2.BorderRadiusMd}px;
75444
- transition: box-shadow 0.2s ease-in-out;
75445
-
75446
- /* Hide focus styles on inner input when parent is focused */
75447
- .ant-input:focus-within {
75448
- box-shadow: none;
75449
- border-radius: 0;
75450
- border-radius: ${getBorderRadius(hasBeforeAddon, hasAfterAddon)};
75451
- border-color: #ddd;
75452
- }
75453
- }
75454
-
75455
- /* Remove inner input focus styles when in a group */
75456
- .ant-input-group .ant-input:focus,
75457
- .ant-input-group .ant-input:focus-visible,
75458
- .ant-input-group .ant-input:focus-within {
75459
- outline: none;
75460
- box-shadow: none;
75461
- border-color: ${colors2[type4].focussed.borderColor};
75462
- }
75463
-
75464
- /* Single focus ring on group */
75465
- .ant-input-group:focus-within {
75466
- outline: none;
75467
- box-shadow: 0 0 0 1px #fff, 0 0 0 3px ${colors2[type4].focussed.ringColor};
75468
- border-radius: ${borderRadius2.BorderRadiusMd}px;
75469
- transition: box-shadow 0.2s ease-in-out;
75470
- }
75471
-
75472
- /* Remove focus styles for standalone inputs */
75473
- &:not(.ant-input-group):focus-visible {
75474
- outline: none;
75475
- color: ${stateColors.color};
75476
- box-shadow: 0 0 0 1px #fff, 0 0 0 3px ${colors2[type4].focussed.ringColor};
75477
- border-radius: ${borderRadius2.BorderRadiusMd}px;
75478
- border-color: ${colors2[type4].focussed.borderColor};
75479
- transition: box-shadow 0.2s ease-in-out;
75480
- }
75481
-
75482
- &:not(.ant-input-group .ant-input):focus-visible {
75483
- outline: none;
75484
- color: ${stateColors.color};
75485
- box-shadow: 0 0 0 1px #fff, 0 0 0 3px ${colors2[type4].focussed.ringColor};
75486
- border-radius: ${borderRadius2.BorderRadiusMd}px;
75487
- border-color: ${colors2[type4].focussed.borderColor};
75488
- transition: box-shadow 0.2s ease-in-out;
75489
- }
75490
-
75491
- &.ant-input-group-wrapper {
75492
- .ant-input-group {
75493
- display: flex;
75494
- align-items: center;
75495
- height: ${size === "normal" || size === "large" ? "40px" : "32px"};
75496
-
75497
- .ant-input {
75498
- height: 100% !important;
75499
- }
75500
-
75501
- .ant-input-group-addon {
75502
- padding: 0 ${components2.input.suffixPrefixHorPadding};
75503
- height: 100%;
75504
- display: flex;
75505
- align-items: center;
75506
- min-width: fit-content;
75507
- width: auto;
75508
-
75509
- > * {
75510
- width: 100%;
75511
- }
75512
-
75513
- .ant-select {
75514
- height: 100%;
75515
-
75516
- .ant-select-selector {
75517
- height: 100%;
75518
- display: flex;
75519
- align-items: center;
75520
- }
75521
- }
75522
- }
75523
- }
75524
- }
75525
- `;
75526
- };
75527
- const Input$1 = styled(Input$2)`
75528
- ${({ theme, state, type: type4 = TYPE.primary, size = "normal", ...rest }) => {
75529
- const hasBeforeAddon = !!rest.addonBefore;
75530
- const hasAfterAddon = !!rest.addonAfter;
75531
- return getGenesisInputClass(
75532
- theme,
75533
- type4,
75534
- state,
75535
- hasBeforeAddon,
75536
- hasAfterAddon,
75537
- size
75538
- );
75539
- }}
75540
- `;
75541
- const DropdownChevron = (properties) => {
75542
- const { theme } = useGenesis();
75543
- return /* @__PURE__ */ jsxRuntime.jsx(
75544
- "svg",
75545
- {
75546
- xmlns: "http://www.w3.org/2000/svg",
75547
- width: 20,
75548
- height: 20,
75549
- fill: "none",
75550
- ...properties,
75551
- children: /* @__PURE__ */ jsxRuntime.jsx(
75712
+ const { breakpoint } = useGenesis();
75713
+ return /* @__PURE__ */ jsxRuntime.jsx(Form$1, { role: "form", ...properties, children });
75714
+ },
75715
+ {
75716
+ Item: FormItem,
75717
+ useForm: Form$1.useForm
75718
+ }
75719
+ );
75720
+ const Outline = (properties) => /* @__PURE__ */ jsxRuntime.jsxs(
75721
+ "svg",
75722
+ {
75723
+ xmlns: "http://www.w3.org/2000/svg",
75724
+ width: 24,
75725
+ height: 24,
75726
+ fill: "none",
75727
+ ...properties,
75728
+ children: [
75729
+ /* @__PURE__ */ jsxRuntime.jsx(
75552
75730
  "path",
75553
75731
  {
75554
- fill: "#222",
75732
+ fill: "#101010",
75733
+ 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"
75734
+ }
75735
+ ),
75736
+ /* @__PURE__ */ jsxRuntime.jsx(
75737
+ "path",
75738
+ {
75739
+ fill: "#101010",
75555
75740
  fillRule: "evenodd",
75556
- 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",
75741
+ 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",
75557
75742
  clipRule: "evenodd"
75558
75743
  }
75559
75744
  )
75560
- }
75561
- );
75562
- };
75563
- const Input2 = ({
75564
- state = STATE.active,
75565
- size = "normal",
75566
- onChange,
75567
- value: value2,
75568
- ...rest
75569
- }) => {
75570
- const { type: type4, ...validRest } = rest;
75571
- const addonAfter = React.isValidElement(rest.addonAfter) && rest.addonAfter.type === Select$1 ? React.cloneElement(rest.addonAfter, {
75572
- suffixIcon: /* @__PURE__ */ jsxRuntime.jsx(DropdownChevron, {})
75573
- }) : rest.addonAfter;
75574
- const handleChange = React.useCallback(
75575
- (e2) => {
75576
- if (onChange) {
75577
- onChange({
75578
- event: "inputChange",
75579
- payload: {
75580
- value: e2.target.value
75581
- }
75582
- });
75745
+ ]
75746
+ }
75747
+ );
75748
+ const Solid = (properties) => /* @__PURE__ */ jsxRuntime.jsx(
75749
+ "svg",
75750
+ {
75751
+ xmlns: "http://www.w3.org/2000/svg",
75752
+ width: 24,
75753
+ height: 24,
75754
+ fill: "none",
75755
+ ...properties,
75756
+ children: /* @__PURE__ */ jsxRuntime.jsx(
75757
+ "path",
75758
+ {
75759
+ fill: "#101010",
75760
+ 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"
75583
75761
  }
75584
- },
75585
- [onChange]
75586
- );
75587
- return /* @__PURE__ */ jsxRuntime.jsx(
75588
- Input$1,
75589
- {
75590
- ...validRest,
75591
- size,
75592
- state,
75593
- disabled: state === "disabled" || rest.disabled,
75594
- addonAfter,
75595
- style: {
75596
- height: size === "normal" || size === "large" ? "40px" : "32px"
75597
- },
75598
- onChange: handleChange,
75599
- value: value2
75600
- }
75601
- );
75762
+ )
75763
+ }
75764
+ );
75765
+ const UnitNumber = ({ variant }) => {
75766
+ return variant === "outline" ? /* @__PURE__ */ jsxRuntime.jsx(Outline, {}) : /* @__PURE__ */ jsxRuntime.jsx(Solid, {});
75602
75767
  };
75603
75768
  function r(e2) {
75604
75769
  var t2, f, n2 = "";
@@ -79012,171 +79177,6 @@ const Table$1 = styled(ForwardTable)`
79012
79177
  return getGenesisClass$3(theme, $isMainContentCell);
79013
79178
  }}
79014
79179
  `;
79015
- const getVariant = (typography2, variant, breakpoint) => {
79016
- return `
79017
- font-size: ${typography2[breakpoint][variant].fontSize}px !important;
79018
- line-height: ${typography2[breakpoint][variant].lineHeight};
79019
- letter-spacing: ${typography2[breakpoint][variant].letterSpacing}px;
79020
- font-weight: ${typography2[breakpoint][variant].fontWeight};
79021
- `;
79022
- };
79023
- const getColor = (color2, colors2, $themeType) => {
79024
- if (color2) {
79025
- return color2;
79026
- }
79027
- return colors2[$themeType].active.color;
79028
- };
79029
- const getFontFamily = (variant) => {
79030
- return `
79031
- ${variant.includes("digits") ? "'Roboto Mono', sans-serif" : "'Inter', sans-serif"} !important;
79032
- `;
79033
- };
79034
- const getGenesisTypographyClass = ({ colors: colors2, typography: typography2 }, $themeType, variant, state, breakpoint, color2, $isFullWidth) => `
79035
- &.ant-typography {
79036
- font-family: ${getFontFamily(variant)};
79037
- color: ${getColor(color2, colors2, $themeType)} !important;
79038
- ${getVariant(typography2, variant, breakpoint)}
79039
- margin-bottom: 0 !important;
79040
- width: ${$isFullWidth ? "100%" : "auto"};
79041
- line-height: 1;
79042
-
79043
- &:disabled {
79044
- color: ${colors2.status.disabled.default} !important;
79045
- userSelect: none;
79046
- cursor: not-allowed;
79047
- }
79048
- }
79049
- `;
79050
- const Headline = styled(Typography$1.Title)`
79051
- ${({
79052
- theme,
79053
- $themeType,
79054
- variant,
79055
- state,
79056
- breakpoint,
79057
- color: color2,
79058
- $isFullWidth
79059
- }) => {
79060
- return getGenesisTypographyClass(
79061
- theme,
79062
- $themeType,
79063
- variant,
79064
- state,
79065
- breakpoint,
79066
- color2,
79067
- $isFullWidth
79068
- );
79069
- }}
79070
- `;
79071
- const Paragraph = styled(
79072
- Typography$1.Paragraph
79073
- )`
79074
- ${({
79075
- theme,
79076
- $themeType,
79077
- variant,
79078
- state,
79079
- breakpoint,
79080
- color: color2,
79081
- $isFullWidth
79082
- }) => {
79083
- return getGenesisTypographyClass(
79084
- theme,
79085
- $themeType,
79086
- variant,
79087
- state,
79088
- breakpoint,
79089
- color2,
79090
- $isFullWidth
79091
- );
79092
- }}
79093
- `;
79094
- const Text = styled(Typography$1.Text)`
79095
- ${({
79096
- theme,
79097
- $themeType,
79098
- variant,
79099
- state,
79100
- breakpoint,
79101
- color: color2,
79102
- $isFullWidth
79103
- }) => {
79104
- return getGenesisTypographyClass(
79105
- theme,
79106
- $themeType,
79107
- variant,
79108
- state,
79109
- breakpoint,
79110
- color2,
79111
- $isFullWidth
79112
- );
79113
- }}
79114
- `;
79115
- const Typography = ({
79116
- children,
79117
- themeType = TYPE.secondary,
79118
- variant = TYPOGRAPHY_VARIANT.body1,
79119
- state = STATE.active,
79120
- color: color2,
79121
- isText = false,
79122
- isFullWidth,
79123
- style: style2,
79124
- isDisabled,
79125
- ...rest
79126
- }) => {
79127
- const { breakpoint } = useGenesis();
79128
- if (variant.startsWith("display") || variant.startsWith("heading")) {
79129
- const level = variant.split("heading")[1] || variant.split("display")[1];
79130
- return /* @__PURE__ */ jsxRuntime.jsx(
79131
- Headline,
79132
- {
79133
- state,
79134
- $themeType: themeType,
79135
- variant,
79136
- breakpoint,
79137
- color: color2,
79138
- level: Number.parseInt(level),
79139
- $isFullWidth: isFullWidth,
79140
- style: style2,
79141
- disabled: isDisabled,
79142
- ...rest,
79143
- children
79144
- }
79145
- );
79146
- }
79147
- if (isText) {
79148
- return /* @__PURE__ */ jsxRuntime.jsx(
79149
- Text,
79150
- {
79151
- state,
79152
- $themeType: themeType,
79153
- variant,
79154
- breakpoint,
79155
- color: color2,
79156
- $isFullWidth: isFullWidth,
79157
- style: style2,
79158
- disabled: isDisabled,
79159
- ...rest,
79160
- children
79161
- }
79162
- );
79163
- }
79164
- return /* @__PURE__ */ jsxRuntime.jsx(
79165
- Paragraph,
79166
- {
79167
- state,
79168
- $themeType: themeType,
79169
- variant,
79170
- breakpoint,
79171
- color: color2,
79172
- $isFullWidth: isFullWidth,
79173
- style: style2,
79174
- disabled: isDisabled,
79175
- ...rest,
79176
- children
79177
- }
79178
- );
79179
- };
79180
79180
  const NumberButton = styled.button`
79181
79181
  background: ${({ $active, theme }) => $active ? theme.colors.primary.default.backgroundColor : "transparent"};
79182
79182
  color: ${({ $active, theme }) => $active ? "#fff" : theme.colors.onsurface["copy-light"] || "#6C6C6C"};