softable-pixels-web 1.1.0 → 1.1.1
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/{Button-nrM-Dn6T.js → Button-CwK9nssQ.js} +14 -5
- package/dist/Button-CwK9nssQ.js.map +1 -0
- package/dist/{CheckItem-Cr8YZFKe.js → CheckItem-DuJvhDP_.js} +4 -4
- package/dist/{CheckItem-Cr8YZFKe.js.map → CheckItem-DuJvhDP_.js.map} +1 -1
- package/dist/{Checkbox-BRAE-Kg-.js → Checkbox-DErw2zDe.js} +4 -4
- package/dist/{Checkbox-BRAE-Kg-.js.map → Checkbox-DErw2zDe.js.map} +1 -1
- package/dist/{Icon-7fQw74zg.js → Icon-Djde8oXI.js} +2 -2
- package/dist/{Icon-7fQw74zg.js.map → Icon-Djde8oXI.js.map} +1 -1
- package/dist/{IconButton-B7-l2DTb.js → IconButton-IhShUhfe.js} +29 -19
- package/dist/IconButton-IhShUhfe.js.map +1 -0
- package/dist/{InfoSummary-D2ER39sF.js → InfoSummary-BwrLkEfC.js} +3 -3
- package/dist/{InfoSummary-D2ER39sF.js.map → InfoSummary-BwrLkEfC.js.map} +1 -1
- package/dist/{Input-BR3ZaetX.js → Input-C7WKOO_t.js} +4 -4
- package/dist/{Input-BR3ZaetX.js.map → Input-C7WKOO_t.js.map} +1 -1
- package/dist/{Label-1Gh2DlKl.js → Label-QQpNWSeV.js} +3 -3
- package/dist/{Label-1Gh2DlKl.js.map → Label-QQpNWSeV.js.map} +1 -1
- package/dist/{TabSwitch-Ce-uQvRp.js → TabSwitch-De30bFX2.js} +3 -3
- package/dist/{TabSwitch-Ce-uQvRp.js.map → TabSwitch-De30bFX2.js.map} +1 -1
- package/dist/{TextArea-BsErpaMx.js → TextArea-jpLThSHP.js} +5 -5
- package/dist/{TextArea-BsErpaMx.js.map → TextArea-jpLThSHP.js.map} +1 -1
- package/dist/{Typography-CKXLkfw7.js → Typography-BE-vQSfx.js} +25 -12
- package/dist/Typography-BE-vQSfx.js.map +1 -0
- package/dist/button.d.ts +2 -2
- package/dist/button.js +3 -3
- package/dist/check-item.js +4 -4
- package/dist/checkbox.d.ts +2 -2
- package/dist/checkbox.js +4 -4
- package/dist/icon-button.d.ts +1 -1
- package/dist/icon-button.js +2 -2
- package/dist/{index-BrVPSHH2.d.ts → index-BspBF3Mv.d.ts} +3 -3
- package/dist/{index-BYZm15m2.d.ts → index-CyvtOmP2.d.ts} +5 -5
- package/dist/{index-Da42fqu3.d.ts → index-DH2bD-Yj.d.ts} +2 -2
- package/dist/{index-R-Kb8ovB.d.ts → index-DOwpBVkM.d.ts} +11 -38
- package/dist/{index-C181qAfZ.d.ts → index-DUrGjyKy.d.ts} +5 -5
- package/dist/{index-v4w-T_f6.d.ts → index-pnnP9M22.d.ts} +4 -4
- package/dist/index.d.ts +7 -7
- package/dist/index.js +12 -12
- package/dist/info-summary.js +3 -3
- package/dist/input.d.ts +2 -2
- package/dist/input.js +5 -5
- package/dist/{styleProps-7WdaXgmQ.d.ts → styleProps-D405c8KF.d.ts} +9 -2
- package/dist/tab-switch.d.ts +1 -1
- package/dist/tab-switch.js +3 -3
- package/dist/text-area.d.ts +2 -2
- package/dist/text-area.js +5 -5
- package/dist/{types-CdA3IIV2.d.ts → types-CDUx-y9q.d.ts} +23 -5
- package/dist/typography.d.ts +1 -1
- package/dist/typography.js +2 -2
- package/dist/{useThemedStyles-68D71Lua.js → useThemedStyles-3rUXJYgS.js} +21 -10
- package/dist/useThemedStyles-3rUXJYgS.js.map +1 -0
- package/dist/{useThemedStyles-CXoofBTv.d.ts → useThemedStyles-B7irjShy.d.ts} +6 -2
- package/package.json +1 -1
- package/dist/Button-nrM-Dn6T.js.map +0 -1
- package/dist/IconButton-B7-l2DTb.js.map +0 -1
- package/dist/Typography-CKXLkfw7.js.map +0 -1
- package/dist/useThemedStyles-68D71Lua.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabSwitch-
|
|
1
|
+
{"version":3,"file":"TabSwitch-De30bFX2.js","names":[],"sources":["../src/components/toolkit/TabSwitch/components/TabSwitchItem/styles.ts","../src/components/toolkit/TabSwitch/components/TabSwitchItem/index.tsx","../src/components/toolkit/TabSwitch/styles.ts","../src/components/toolkit/TabSwitch/index.tsx"],"sourcesContent":["// External Libraries\nimport { styled, type StyleMap } from '@hooks/useThemedStyles/types'\n\ninterface Params {\n disabled?: boolean\n selected?: boolean\n selectedColor?: string\n variant: 'default' | 'underline'\n}\n\nexport function createTabSwitchItemStyles({\n variant,\n disabled,\n selected,\n selectedColor\n}: Params): StyleMap {\n const accent = selectedColor ?? 'var(--px-color-primary)'\n\n return styled({\n item: {\n minHeight: '1.25rem',\n position: 'relative',\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n gap: 4,\n background: 'transparent',\n border: 0,\n padding: '8px 10px',\n cursor: disabled ? 'not-allowed' : 'pointer',\n opacity: disabled ? 0.5 : 1,\n userSelect: 'none',\n whiteSpace: 'nowrap',\n __rules: { '& > p': { zIndex: 1 } }\n },\n\n selectedBg:\n variant === 'default'\n ? {\n position: 'absolute',\n inset: 0,\n borderRadius: 6,\n border: '1px solid var(--px-border-primary)',\n background: selected ? accent : 'transparent'\n }\n : {\n position: 'absolute',\n left: 0,\n right: 0,\n bottom: -2,\n height: 2,\n background: selected ? accent : 'transparent'\n }\n })\n}\n","// External Libraries\nimport { motion } from 'framer-motion'\n\n// Components\nimport { Typography } from '@components/toolkit/Typography'\n\n// Hooks\nimport { useThemedStyles } from '@hooks/useThemedStyles'\n\n// Types\nimport type { SwitchOption } from '../../types'\n\n// Styles\nimport { createTabSwitchItemStyles } from './styles'\n\ntype Props<T> = {\n option: SwitchOption<T>\n selected: boolean\n layoutId?: string\n disabled?: boolean\n selectedColor?: string\n selectedLabelColor?: string\n variant: 'default' | 'underline'\n onClick: (value: T) => void\n}\n\nexport const SwitchItem = <T,>(props: Props<T>) => {\n const { option, disabled, selected, layoutId, onClick } = props\n\n const { styles, classes } = useThemedStyles(\n props,\n createTabSwitchItemStyles,\n {\n pick: p => [p.variant, p.selectedColor, p.selectedLabelColor, p.selected]\n }\n )\n\n const isDisabled = disabled || option.disabled\n\n return (\n <button\n type=\"button\"\n style={styles.item}\n className={classes.item}\n tabIndex={isDisabled ? -1 : 0}\n onClick={() => !isDisabled && onClick(option.value)}\n >\n {selected ? (\n <motion.div\n layoutId={layoutId || 'pixel-tabswitch-selected'}\n style={styles.selectedBg}\n />\n ) : null}\n\n {option.icon ? (\n <span style={{ display: 'inline-flex' }}>{option.icon}</span>\n ) : null}\n\n <Typography variant=\"b1\" fontWeight=\"bold\">\n {option.label}\n </Typography>\n </button>\n )\n}\n","// Types\nimport type { TabSwitchProps } from './types'\nimport { styled, type StyleMap } from '@hooks/useThemedStyles/types'\n\nexport function createTabSwitchStyles<T>(props: TabSwitchProps<T>): StyleMap {\n const { fitContent } = props\n\n return styled({\n container: {\n display: 'flex',\n flexDirection: 'row',\n alignItems: 'center',\n color: 'var(--px-text-primary, #4b5563)',\n width: fitContent ? 'fit-content' : '100%',\n borderBottom: '1px solid var(--px-border-primaryder, #e5e7eb)',\n gap: 0,\n __rules: { '& svg': { zIndex: 1 } }\n }\n })\n}\n","// Hooks\nimport { useThemedStyles } from '@hooks/useThemedStyles'\n\n// Components\nimport { SwitchItem } from './components/TabSwitchItem'\n\n// Types\nimport type { TabSwitchProps } from './types'\n\n// Styles\nimport { createTabSwitchStyles } from './styles'\n\nexport * from './types'\n\nexport const TabSwitch = <T,>(props: TabSwitchProps<T>) => {\n {\n const {\n options,\n disabled,\n layoutId,\n currentValue,\n variant = 'default',\n onChange\n } = props\n\n const { styles, classes } = useThemedStyles(props, createTabSwitchStyles, {\n pick: p => [p.disabled, p.currentValue],\n override: props.styles,\n applyCommonProps: true\n })\n\n return (\n <div style={styles.container} className={classes.container}>\n {options.map(opt => (\n <SwitchItem\n key={String(opt.value)}\n option={opt}\n variant={variant}\n layoutId={layoutId}\n disabled={disabled}\n selectedColor={props.selectedColor}\n selected={currentValue === opt.value}\n selectedLabelColor={props.selectedLabelColor}\n onClick={onChange}\n />\n ))}\n </div>\n )\n }\n}\n"],"mappings":";;;;;;AAUA,SAAgB,0BAA0B,EACxC,SACA,UACA,UACA,iBACmB;CACnB,MAAM,SAAS,iBAAiB;AAEhC,QAAO,OAAO;EACZ,MAAM;GACJ,WAAW;GACX,UAAU;GACV,SAAS;GACT,YAAY;GACZ,gBAAgB;GAChB,KAAK;GACL,YAAY;GACZ,QAAQ;GACR,SAAS;GACT,QAAQ,WAAW,gBAAgB;GACnC,SAAS,WAAW,KAAM;GAC1B,YAAY;GACZ,YAAY;GACZ,SAAS,EAAE,SAAS,EAAE,QAAQ,GAAG,EAAE;GACpC;EAED,YACE,YAAY,YACR;GACE,UAAU;GACV,OAAO;GACP,cAAc;GACd,QAAQ;GACR,YAAY,WAAW,SAAS;GACjC,GACD;GACE,UAAU;GACV,MAAM;GACN,OAAO;GACP,QAAQ;GACR,QAAQ;GACR,YAAY,WAAW,SAAS;GACjC;EACR,CAAC;;;;;AC3BJ,MAAa,cAAkB,UAAoB;CACjD,MAAM,EAAE,QAAQ,UAAU,UAAU,UAAU,YAAY;CAE1D,MAAM,EAAE,QAAQ,YAAY,gBAC1B,OACA,2BACA,EACE,OAAM,MAAK;EAAC,EAAE;EAAS,EAAE;EAAe,EAAE;EAAoB,EAAE;EAAS,EAC1E,CACF;CAED,MAAM,aAAa,YAAY,OAAO;AAEtC,QACE,qBAAC;EACC,MAAK;EACL,OAAO,OAAO;EACd,WAAW,QAAQ;EACnB,UAAU,aAAa,KAAK;EAC5B,eAAe,CAAC,cAAc,QAAQ,OAAO,MAAM;;GAElD,WACC,oBAAC,OAAO;IACN,UAAU,YAAY;IACtB,OAAO,OAAO;KACd,GACA;GAEH,OAAO,OACN,oBAAC;IAAK,OAAO,EAAE,SAAS,eAAe;cAAG,OAAO;KAAY,GAC3D;GAEJ,oBAAC;IAAW,SAAQ;IAAK,YAAW;cACjC,OAAO;KACG;;GACN;;;;;ACzDb,SAAgB,sBAAyB,OAAoC;CAC3E,MAAM,EAAE,eAAe;AAEvB,QAAO,OAAO,EACZ,WAAW;EACT,SAAS;EACT,eAAe;EACf,YAAY;EACZ,OAAO;EACP,OAAO,aAAa,gBAAgB;EACpC,cAAc;EACd,KAAK;EACL,SAAS,EAAE,SAAS,EAAE,QAAQ,GAAG,EAAE;EACpC,EACF,CAAC;;;;;ACJJ,MAAa,aAAiB,UAA6B;CACzD;EACE,MAAM,EACJ,SACA,UACA,UACA,cACA,UAAU,WACV,aACE;EAEJ,MAAM,EAAE,QAAQ,YAAY,gBAAgB,OAAO,uBAAuB;GACxE,OAAM,MAAK,CAAC,EAAE,UAAU,EAAE,aAAa;GACvC,UAAU,MAAM;GAChB,kBAAkB;GACnB,CAAC;AAEF,SACE,oBAAC;GAAI,OAAO,OAAO;GAAW,WAAW,QAAQ;aAC9C,QAAQ,KAAI,QACX,oBAAC;IAEC,QAAQ;IACC;IACC;IACA;IACV,eAAe,MAAM;IACrB,UAAU,iBAAiB,IAAI;IAC/B,oBAAoB,MAAM;IAC1B,SAAS;MARJ,OAAO,IAAI,MAAM,CAStB,CACF;IACE"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as Icon } from "./Icon-
|
|
2
|
-
import { n as
|
|
3
|
-
import { t as Typography } from "./Typography-
|
|
4
|
-
import { t as Label } from "./Label-
|
|
1
|
+
import { t as Icon } from "./Icon-Djde8oXI.js";
|
|
2
|
+
import { n as styled, t as useThemedStyles } from "./useThemedStyles-3rUXJYgS.js";
|
|
3
|
+
import { t as Typography } from "./Typography-BE-vQSfx.js";
|
|
4
|
+
import { t as Label } from "./Label-QQpNWSeV.js";
|
|
5
5
|
import { useId } from "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
|
|
@@ -111,4 +111,4 @@ const TextArea = (props) => {
|
|
|
111
111
|
|
|
112
112
|
//#endregion
|
|
113
113
|
export { TextArea as t };
|
|
114
|
-
//# sourceMappingURL=TextArea-
|
|
114
|
+
//# sourceMappingURL=TextArea-jpLThSHP.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextArea-
|
|
1
|
+
{"version":3,"file":"TextArea-jpLThSHP.js","names":[],"sources":["../src/components/commons/inputs/TextArea/styles.ts","../src/components/commons/inputs/TextArea/index.tsx"],"sourcesContent":["// Types\nimport { styled, type StyleMap } from '@hooks/useThemedStyles/types'\nimport type { TextAreaProps } from './types'\n\nexport function createTextAreaStyles(props: TextAreaProps): StyleMap {\n const { height = '8rem', readOnly, startIcon } = props\n\n const focusRingColor = props.focusedRingColor || 'var(--px-color-info)'\n const placeHolderColor =\n props.placeholderColor || 'var(--px-text-placeholder)'\n\n return styled({\n iconContainer: {\n position: 'absolute',\n left: '0.75rem',\n top: '1.375rem',\n transform: 'translateY(-50%)'\n },\n textArea: {\n height,\n width: '100%',\n paddingBlock: '0.75rem',\n paddingInline: '0.875rem',\n borderRadius: '0.5rem',\n resize: 'none',\n\n fontWeight: '400',\n fontSize: '1rem',\n color: 'var(--px-text-primary)',\n\n border: '1px solid red',\n outlineOffset: '-1px',\n\n cursor: readOnly ? 'default' : undefined,\n paddingLeft: startIcon ? '2.5rem' : undefined,\n\n __rules: {\n '&::placeholder': {\n color: `${placeHolderColor}`\n },\n '&:focus': readOnly\n ? { outline: 'none' }\n : { outline: `2px solid ${focusRingColor}` }\n }\n }\n })\n}\n","// External Libraries\nimport { useId } from 'react'\n\n// Types\nimport type { TextAreaProps } from './types'\n\n// Components\nimport { Label } from '@components/commons/Label'\nimport { Icon } from '@components/toolkit/Icon'\nimport { Typography } from '@components/toolkit/Typography'\n\n// Hooks\nimport { useThemedStyles } from '@hooks/useThemedStyles'\n\n// Styles\nimport { createTextAreaStyles } from './styles'\n\nexport const TextArea = (props: TextAreaProps) => {\n const {\n value,\n disabled,\n readOnly,\n maxLength,\n hideMaxLength,\n textMaxLength,\n placeholder,\n\n label,\n required,\n requiredColor,\n labelColor,\n labelWeight,\n labelVariant,\n\n startIcon,\n iconColor\n } = props\n\n // Hooks\n const inputId = useId()\n\n const { styles, classes } = useThemedStyles(props, createTextAreaStyles, {\n pick: p => [\n p.height,\n p.readOnly,\n p.startIcon,\n p.placeholderColor,\n p.focusedRingColor\n ],\n override: props.styles,\n applyCommonProps: true\n })\n\n // Functions\n function handleChange(e: React.ChangeEvent<HTMLTextAreaElement>) {\n if (disabled || readOnly) return\n props.onChange?.(e.target.value)\n }\n\n function renderLabel() {\n if (!label) return null\n\n return (\n <div className=\"flex items-center gap-3\">\n <Label\n htmlFor={inputId}\n label={label}\n required={required}\n requiredColor={requiredColor}\n labelColor={labelColor}\n labelWeight={labelWeight}\n labelVariant={labelVariant}\n />\n </div>\n )\n }\n\n return (\n <div>\n {renderLabel()}\n\n <div style={{ position: 'relative' }}>\n {startIcon && (\n <div style={styles.iconContainer}>\n <Icon\n name={startIcon}\n color={iconColor ? iconColor : 'var(--px-text-primary)'}\n />\n </div>\n )}\n\n <textarea\n value={value}\n disabled={disabled}\n readOnly={readOnly}\n maxLength={maxLength}\n placeholder={placeholder}\n style={styles.textArea}\n className={classes.textArea}\n onChange={handleChange}\n />\n </div>\n\n {maxLength && !hideMaxLength ? (\n <Typography variant=\"b2\" styles={{ text: { marginLeft: 'auto' } }}>\n {value.length}/{maxLength} {textMaxLength}\n </Typography>\n ) : null}\n </div>\n )\n}\n"],"mappings":";;;;;;;;AAIA,SAAgB,qBAAqB,OAAgC;CACnE,MAAM,EAAE,SAAS,QAAQ,UAAU,cAAc;CAEjD,MAAM,iBAAiB,MAAM,oBAAoB;CACjD,MAAM,mBACJ,MAAM,oBAAoB;AAE5B,QAAO,OAAO;EACZ,eAAe;GACb,UAAU;GACV,MAAM;GACN,KAAK;GACL,WAAW;GACZ;EACD,UAAU;GACR;GACA,OAAO;GACP,cAAc;GACd,eAAe;GACf,cAAc;GACd,QAAQ;GAER,YAAY;GACZ,UAAU;GACV,OAAO;GAEP,QAAQ;GACR,eAAe;GAEf,QAAQ,WAAW,YAAY;GAC/B,aAAa,YAAY,WAAW;GAEpC,SAAS;IACP,kBAAkB,EAChB,OAAO,GAAG,oBACX;IACD,WAAW,WACP,EAAE,SAAS,QAAQ,GACnB,EAAE,SAAS,aAAa,kBAAkB;IAC/C;GACF;EACF,CAAC;;;;;AC5BJ,MAAa,YAAY,UAAyB;CAChD,MAAM,EACJ,OACA,UACA,UACA,WACA,eACA,eACA,aAEA,OACA,UACA,eACA,YACA,aACA,cAEA,WACA,cACE;CAGJ,MAAM,UAAU,OAAO;CAEvB,MAAM,EAAE,QAAQ,YAAY,gBAAgB,OAAO,sBAAsB;EACvE,OAAM,MAAK;GACT,EAAE;GACF,EAAE;GACF,EAAE;GACF,EAAE;GACF,EAAE;GACH;EACD,UAAU,MAAM;EAChB,kBAAkB;EACnB,CAAC;CAGF,SAAS,aAAa,GAA2C;AAC/D,MAAI,YAAY,SAAU;AAC1B,QAAM,WAAW,EAAE,OAAO,MAAM;;CAGlC,SAAS,cAAc;AACrB,MAAI,CAAC,MAAO,QAAO;AAEnB,SACE,oBAAC;GAAI,WAAU;aACb,oBAAC;IACC,SAAS;IACF;IACG;IACK;IACH;IACC;IACC;KACd;IACE;;AAIV,QACE,qBAAC;EACE,aAAa;EAEd,qBAAC;GAAI,OAAO,EAAE,UAAU,YAAY;cACjC,aACC,oBAAC;IAAI,OAAO,OAAO;cACjB,oBAAC;KACC,MAAM;KACN,OAAO,YAAY,YAAY;MAC/B;KACE,EAGR,oBAAC;IACQ;IACG;IACA;IACC;IACE;IACb,OAAO,OAAO;IACd,WAAW,QAAQ;IACnB,UAAU;KACV;IACE;EAEL,aAAa,CAAC,gBACb,qBAAC;GAAW,SAAQ;GAAK,QAAQ,EAAE,MAAM,EAAE,YAAY,QAAQ,EAAE;;IAC9D,MAAM;IAAO;IAAE;IAAU;IAAE;;IACjB,GACX;KACA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as
|
|
1
|
+
import { n as styled, r as WEIGHTS, t as useThemedStyles } from "./useThemedStyles-3rUXJYgS.js";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/toolkit/Typography/config.ts
|
|
@@ -8,49 +8,61 @@ const typographyVariants = {
|
|
|
8
8
|
h1: {
|
|
9
9
|
fontSize: "3rem",
|
|
10
10
|
fontWeight: "700",
|
|
11
|
-
lineHeight:
|
|
11
|
+
lineHeight: WEIGHTS.bold,
|
|
12
12
|
color: primaryColor
|
|
13
13
|
},
|
|
14
14
|
h2: {
|
|
15
15
|
fontSize: "2.25rem",
|
|
16
|
-
fontWeight:
|
|
17
|
-
lineHeight: "
|
|
16
|
+
fontWeight: WEIGHTS.bold,
|
|
17
|
+
lineHeight: "calc(2.5 / 2.25)",
|
|
18
18
|
color: primaryColor
|
|
19
19
|
},
|
|
20
20
|
h3: {
|
|
21
21
|
fontSize: "1.875rem",
|
|
22
|
-
fontWeight:
|
|
22
|
+
fontWeight: WEIGHTS.bold,
|
|
23
|
+
lineHeight: "calc(2.25 / 1.875)",
|
|
23
24
|
color: primaryColor
|
|
24
25
|
},
|
|
25
26
|
h4: {
|
|
26
27
|
fontSize: "1.5rem",
|
|
27
|
-
fontWeight:
|
|
28
|
+
fontWeight: WEIGHTS.bold,
|
|
29
|
+
lineHeight: "calc(2 / 1.5)",
|
|
28
30
|
color: primaryColor
|
|
29
31
|
},
|
|
30
32
|
h5: {
|
|
31
33
|
fontSize: "1.25rem",
|
|
32
|
-
fontWeight:
|
|
34
|
+
fontWeight: WEIGHTS.bold,
|
|
35
|
+
lineHeight: "calc(1.75 / 1.25)",
|
|
33
36
|
color: primaryColor
|
|
34
37
|
},
|
|
35
38
|
b1: {
|
|
36
39
|
fontSize: "1rem",
|
|
37
|
-
fontWeight:
|
|
40
|
+
fontWeight: WEIGHTS.medium,
|
|
41
|
+
lineHeight: "1.5",
|
|
38
42
|
color: primaryColor
|
|
39
43
|
},
|
|
40
44
|
b2: {
|
|
41
45
|
fontSize: "0.875rem",
|
|
46
|
+
fontWeight: WEIGHTS.medium,
|
|
47
|
+
lineHeight: "calc(1.25 / 0.875)",
|
|
42
48
|
color: secondaryColor
|
|
43
49
|
},
|
|
44
50
|
b3: {
|
|
45
51
|
fontSize: "0.75rem",
|
|
52
|
+
fontWeight: WEIGHTS.medium,
|
|
53
|
+
lineHeight: "calc(1 / 0.75)",
|
|
46
54
|
color: secondaryColor
|
|
47
55
|
},
|
|
48
56
|
caption: {
|
|
49
|
-
fontSize: "0.
|
|
57
|
+
fontSize: "0.65rem",
|
|
58
|
+
fontWeight: WEIGHTS.regular,
|
|
59
|
+
lineHeight: "calc(1 / 0.65)",
|
|
50
60
|
color: secondaryColor
|
|
51
61
|
},
|
|
52
62
|
legal: {
|
|
53
63
|
fontSize: "0.65rem",
|
|
64
|
+
lineHeight: "calc(1 / 0.65)",
|
|
65
|
+
fontWeight: WEIGHTS.light,
|
|
54
66
|
textTransform: "uppercase",
|
|
55
67
|
letterSpacing: "0.025em",
|
|
56
68
|
color: secondaryColor
|
|
@@ -106,7 +118,7 @@ function createTypographyStyles(props) {
|
|
|
106
118
|
//#endregion
|
|
107
119
|
//#region src/components/toolkit/Typography/index.tsx
|
|
108
120
|
function Typography(props) {
|
|
109
|
-
const { id, as, href, variant, children, placeholder, isLoading = false, styles: styleTypography } = props;
|
|
121
|
+
const { id, as, href, variant, children, className, placeholder, isLoading = false, styles: styleTypography } = props;
|
|
110
122
|
const { styles } = useThemedStyles(props, createTypographyStyles, {
|
|
111
123
|
pick: (p) => [
|
|
112
124
|
p.isLoading,
|
|
@@ -130,7 +142,8 @@ function Typography(props) {
|
|
|
130
142
|
const sharedProps = {
|
|
131
143
|
id,
|
|
132
144
|
style: styles.text,
|
|
133
|
-
"aria-label": placeholder
|
|
145
|
+
"aria-label": placeholder,
|
|
146
|
+
className
|
|
134
147
|
};
|
|
135
148
|
if (href) return /* @__PURE__ */ jsx("a", {
|
|
136
149
|
href,
|
|
@@ -145,4 +158,4 @@ function Typography(props) {
|
|
|
145
158
|
|
|
146
159
|
//#endregion
|
|
147
160
|
export { Typography as t };
|
|
148
|
-
//# sourceMappingURL=Typography-
|
|
161
|
+
//# sourceMappingURL=Typography-BE-vQSfx.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Typography-BE-vQSfx.js","names":["typographyVariants: Record<TypographyVariant, SlotStyle>","variantToElement: Record<\n TypographyVariant,\n keyof JSX.IntrinsicElements\n>","alignText: Record<TextAlign, SlotStyle>"],"sources":["../src/components/toolkit/Typography/config.ts","../src/components/toolkit/Typography/style.ts","../src/components/toolkit/Typography/index.tsx"],"sourcesContent":["// External Libraries\nimport type { JSX } from 'react'\n\n// Types\nimport type { TextAlign, TypographyVariant } from './types'\nimport { type SlotStyle, WEIGHTS } from '@hooks/useThemedStyles/types'\n\nconst primaryColor = 'var(--px-text-primary)'\nconst secondaryColor = 'var(--px-text-secondary)'\n\nexport const typographyVariants: Record<TypographyVariant, SlotStyle> = {\n h1: {\n fontSize: '3rem',\n fontWeight: '700',\n lineHeight: WEIGHTS.bold,\n color: primaryColor\n },\n h2: {\n fontSize: '2.25rem',\n fontWeight: WEIGHTS.bold,\n lineHeight: 'calc(2.5 / 2.25)',\n color: primaryColor\n },\n h3: {\n fontSize: '1.875rem',\n fontWeight: WEIGHTS.bold,\n lineHeight: 'calc(2.25 / 1.875)',\n color: primaryColor\n },\n h4: {\n fontSize: '1.5rem',\n fontWeight: WEIGHTS.bold,\n lineHeight: 'calc(2 / 1.5)',\n color: primaryColor\n },\n h5: {\n fontSize: '1.25rem',\n fontWeight: WEIGHTS.bold,\n lineHeight: 'calc(1.75 / 1.25)',\n color: primaryColor\n },\n b1: {\n fontSize: '1rem',\n fontWeight: WEIGHTS.medium,\n lineHeight: '1.5',\n color: primaryColor\n },\n b2: {\n fontSize: '0.875rem',\n fontWeight: WEIGHTS.medium,\n lineHeight: 'calc(1.25 / 0.875)',\n color: secondaryColor\n },\n b3: {\n fontSize: '0.75rem',\n fontWeight: WEIGHTS.medium,\n lineHeight: 'calc(1 / 0.75)',\n color: secondaryColor\n },\n caption: {\n fontSize: '0.65rem',\n fontWeight: WEIGHTS.regular,\n lineHeight: 'calc(1 / 0.65)',\n color: secondaryColor\n },\n legal: {\n fontSize: '0.65rem',\n lineHeight: 'calc(1 / 0.65)',\n fontWeight: WEIGHTS.light,\n textTransform: 'uppercase',\n letterSpacing: '0.025em',\n color: secondaryColor\n }\n}\n\nexport const variantToElement: Record<\n TypographyVariant,\n keyof JSX.IntrinsicElements\n> = {\n h1: 'h1',\n h2: 'h2',\n h3: 'h3',\n h4: 'h4',\n h5: 'h5',\n b1: 'p',\n b2: 'p',\n b3: 'p',\n caption: 'span',\n legal: 'span'\n}\n\nexport const alignText: Record<TextAlign, SlotStyle> = {\n left: { textAlign: 'left' },\n center: { textAlign: 'center' },\n right: { textAlign: 'right' },\n justify: { textAlign: 'justify' }\n}\n","// Utils\nimport { alignText, typographyVariants } from './config'\n\n// Types\nimport type { TypographyProps } from './types'\nimport { type SlotStyle, styled } from '@hooks/useThemedStyles/types'\n\nexport function createTypographyStyles(props: TypographyProps) {\n const { isLoading, variant, align = 'left', color } = props\n\n return styled({\n base: {\n display: 'flex',\n flexDirection: 'row',\n alignItems: 'center',\n borderBottom: '1px solid var(--pixel-border, #e5e7eb)',\n gap: 0,\n animation: isLoading ? 'animate-pulse 1.5s infinite' : undefined\n },\n\n loading: {\n width: '50%',\n height: '1em',\n display: 'inline-block',\n backgroundColor: 'var(--pixel-gray-300, #d1d5db)',\n borderRadius: '0.25rem'\n },\n\n text: {\n ...alignText[align],\n ...typographyVariants[variant],\n color: color ?? typographyVariants[variant].color\n } as SlotStyle\n })\n}\n","// Utils\nimport { variantToElement } from './config'\n\n// Types\nimport type { TypographyProps } from './types'\n\n// Hooks\nimport { useThemedStyles } from '@hooks/useThemedStyles'\n\n// Styles\nimport { createTypographyStyles } from './style'\n\nexport function Typography(props: TypographyProps) {\n const {\n id,\n as,\n href,\n variant,\n children,\n className,\n placeholder,\n isLoading = false,\n styles: styleTypography\n } = props\n\n const { styles } = useThemedStyles(props, createTypographyStyles, {\n pick: p => [p.isLoading, p.variant, p.align],\n commonSlot: 'text',\n applyCommonProps: true,\n override: styleTypography\n })\n\n const Component = as ?? variantToElement[variant]\n\n if (isLoading) {\n return (\n <span\n id={id}\n aria-hidden=\"true\"\n role=\"presentation\"\n style={{ ...styles.text, ...styles.loading }}\n />\n )\n }\n\n const sharedProps = {\n id,\n style: styles.text,\n 'aria-label': placeholder,\n className\n }\n\n if (href) {\n return (\n <a href={href} {...sharedProps}>\n {children}\n </a>\n )\n }\n\n return <Component {...sharedProps}>{children}</Component>\n}\n"],"mappings":";;;;AAOA,MAAM,eAAe;AACrB,MAAM,iBAAiB;AAEvB,MAAaA,qBAA2D;CACtE,IAAI;EACF,UAAU;EACV,YAAY;EACZ,YAAY,QAAQ;EACpB,OAAO;EACR;CACD,IAAI;EACF,UAAU;EACV,YAAY,QAAQ;EACpB,YAAY;EACZ,OAAO;EACR;CACD,IAAI;EACF,UAAU;EACV,YAAY,QAAQ;EACpB,YAAY;EACZ,OAAO;EACR;CACD,IAAI;EACF,UAAU;EACV,YAAY,QAAQ;EACpB,YAAY;EACZ,OAAO;EACR;CACD,IAAI;EACF,UAAU;EACV,YAAY,QAAQ;EACpB,YAAY;EACZ,OAAO;EACR;CACD,IAAI;EACF,UAAU;EACV,YAAY,QAAQ;EACpB,YAAY;EACZ,OAAO;EACR;CACD,IAAI;EACF,UAAU;EACV,YAAY,QAAQ;EACpB,YAAY;EACZ,OAAO;EACR;CACD,IAAI;EACF,UAAU;EACV,YAAY,QAAQ;EACpB,YAAY;EACZ,OAAO;EACR;CACD,SAAS;EACP,UAAU;EACV,YAAY,QAAQ;EACpB,YAAY;EACZ,OAAO;EACR;CACD,OAAO;EACL,UAAU;EACV,YAAY;EACZ,YAAY,QAAQ;EACpB,eAAe;EACf,eAAe;EACf,OAAO;EACR;CACF;AAED,MAAaC,mBAGT;CACF,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,SAAS;CACT,OAAO;CACR;AAED,MAAaC,YAA0C;CACrD,MAAM,EAAE,WAAW,QAAQ;CAC3B,QAAQ,EAAE,WAAW,UAAU;CAC/B,OAAO,EAAE,WAAW,SAAS;CAC7B,SAAS,EAAE,WAAW,WAAW;CAClC;;;;ACzFD,SAAgB,uBAAuB,OAAwB;CAC7D,MAAM,EAAE,WAAW,SAAS,QAAQ,QAAQ,UAAU;AAEtD,QAAO,OAAO;EACZ,MAAM;GACJ,SAAS;GACT,eAAe;GACf,YAAY;GACZ,cAAc;GACd,KAAK;GACL,WAAW,YAAY,gCAAgC;GACxD;EAED,SAAS;GACP,OAAO;GACP,QAAQ;GACR,SAAS;GACT,iBAAiB;GACjB,cAAc;GACf;EAED,MAAM;GACJ,GAAG,UAAU;GACb,GAAG,mBAAmB;GACtB,OAAO,SAAS,mBAAmB,SAAS;GAC7C;EACF,CAAC;;;;;ACrBJ,SAAgB,WAAW,OAAwB;CACjD,MAAM,EACJ,IACA,IACA,MACA,SACA,UACA,WACA,aACA,YAAY,OACZ,QAAQ,oBACN;CAEJ,MAAM,EAAE,WAAW,gBAAgB,OAAO,wBAAwB;EAChE,OAAM,MAAK;GAAC,EAAE;GAAW,EAAE;GAAS,EAAE;GAAM;EAC5C,YAAY;EACZ,kBAAkB;EAClB,UAAU;EACX,CAAC;CAEF,MAAM,YAAY,MAAM,iBAAiB;AAEzC,KAAI,UACF,QACE,oBAAC;EACK;EACJ,eAAY;EACZ,MAAK;EACL,OAAO;GAAE,GAAG,OAAO;GAAM,GAAG,OAAO;GAAS;GAC5C;CAIN,MAAM,cAAc;EAClB;EACA,OAAO,OAAO;EACd,cAAc;EACd;EACD;AAED,KAAI,KACF,QACE,oBAAC;EAAQ;EAAM,GAAI;EAChB;GACC;AAIR,QAAO,oBAAC;EAAU,GAAI;EAAc;GAAqB"}
|
package/dist/button.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "./types-
|
|
2
|
-
import { t as Button } from "./index-
|
|
1
|
+
import "./types-CDUx-y9q.js";
|
|
2
|
+
import { t as Button } from "./index-DOwpBVkM.js";
|
|
3
3
|
export { Button };
|
package/dist/button.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./useThemedStyles-
|
|
2
|
-
import "./Typography-
|
|
3
|
-
import { t as Button } from "./Button-
|
|
1
|
+
import "./useThemedStyles-3rUXJYgS.js";
|
|
2
|
+
import "./Typography-BE-vQSfx.js";
|
|
3
|
+
import { t as Button } from "./Button-CwK9nssQ.js";
|
|
4
4
|
|
|
5
5
|
export { Button };
|
package/dist/check-item.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./Icon-
|
|
2
|
-
import "./useThemedStyles-
|
|
3
|
-
import "./Typography-
|
|
4
|
-
import { t as CheckItem } from "./CheckItem-
|
|
1
|
+
import "./Icon-Djde8oXI.js";
|
|
2
|
+
import "./useThemedStyles-3rUXJYgS.js";
|
|
3
|
+
import "./Typography-BE-vQSfx.js";
|
|
4
|
+
import { t as CheckItem } from "./CheckItem-DuJvhDP_.js";
|
|
5
5
|
|
|
6
6
|
export { CheckItem };
|
package/dist/checkbox.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "./types-
|
|
2
|
-
import { t as Checkbox } from "./index-
|
|
1
|
+
import "./types-CDUx-y9q.js";
|
|
2
|
+
import { t as Checkbox } from "./index-DH2bD-Yj.js";
|
|
3
3
|
export { Checkbox };
|
package/dist/checkbox.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./Icon-
|
|
2
|
-
import "./useThemedStyles-
|
|
3
|
-
import "./Typography-
|
|
4
|
-
import { t as Checkbox } from "./Checkbox-
|
|
1
|
+
import "./Icon-Djde8oXI.js";
|
|
2
|
+
import "./useThemedStyles-3rUXJYgS.js";
|
|
3
|
+
import "./Typography-BE-vQSfx.js";
|
|
4
|
+
import { t as Checkbox } from "./Checkbox-DErw2zDe.js";
|
|
5
5
|
|
|
6
6
|
export { Checkbox };
|
package/dist/icon-button.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as IconButton } from "./index-
|
|
1
|
+
import { t as IconButton } from "./index-CyvtOmP2.js";
|
|
2
2
|
export { IconButton };
|
package/dist/icon-button.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as TypographyVariant } from "./types-
|
|
1
|
+
import { n as StyleMap } from "./useThemedStyles-B7irjShy.js";
|
|
2
|
+
import { n as TypographyVariant } from "./types-CDUx-y9q.js";
|
|
3
3
|
import * as react_jsx_runtime2 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/assets/icons/index.d.ts
|
|
@@ -45,4 +45,4 @@ interface TextAreaProps {
|
|
|
45
45
|
declare const TextArea: (props: TextAreaProps) => react_jsx_runtime2.JSX.Element;
|
|
46
46
|
//#endregion
|
|
47
47
|
export { TextArea as t };
|
|
48
|
-
//# sourceMappingURL=index-
|
|
48
|
+
//# sourceMappingURL=index-BspBF3Mv.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as StyleMap } from "./useThemedStyles-B7irjShy.js";
|
|
2
2
|
import { MouseEvent, ReactNode } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/commons/buttons/IconButton/styles.d.ts
|
|
@@ -7,20 +7,20 @@ declare function createIconButtonStyles(props: IconButtonProps): StyleMap;
|
|
|
7
7
|
//#region src/components/commons/buttons/IconButton/types.d.ts
|
|
8
8
|
interface IconButtonProps {
|
|
9
9
|
icon: ReactNode;
|
|
10
|
-
size?: IconButtonSize;
|
|
10
|
+
size?: IconButtonSize | (string & {});
|
|
11
11
|
isLoading?: boolean;
|
|
12
12
|
isDisabled?: boolean;
|
|
13
|
-
variant?:
|
|
13
|
+
variant?: IconButtonVariant;
|
|
14
14
|
backgroundColor?: string;
|
|
15
15
|
borderColor?: string;
|
|
16
16
|
styles?: Partial<ReturnType<typeof createIconButtonStyles>>;
|
|
17
17
|
onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
18
18
|
}
|
|
19
19
|
type IconButtonSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
20
|
-
type
|
|
20
|
+
type IconButtonVariant = 'filled' | 'outlined' | 'ghost';
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region src/components/commons/buttons/IconButton/index.d.ts
|
|
23
23
|
declare const IconButton: React.FC<IconButtonProps>;
|
|
24
24
|
//#endregion
|
|
25
25
|
export { IconButton as t };
|
|
26
|
-
//# sourceMappingURL=index-
|
|
26
|
+
//# sourceMappingURL=index-CyvtOmP2.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as TypographyVariant } from "./types-
|
|
1
|
+
import { n as TypographyVariant } from "./types-CDUx-y9q.js";
|
|
2
2
|
import React$1 from "react";
|
|
3
3
|
import { ChecklistAlertResponse } from "@api/checklist/alerts/dtos";
|
|
4
4
|
|
|
@@ -28,4 +28,4 @@ interface CheckboxProps {
|
|
|
28
28
|
declare const Checkbox: React$1.FC<CheckboxProps>;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { Checkbox as t };
|
|
31
|
-
//# sourceMappingURL=index-
|
|
31
|
+
//# sourceMappingURL=index-DH2bD-Yj.d.ts.map
|
|
@@ -1,58 +1,31 @@
|
|
|
1
|
-
import { i as PaddingProps } from "./styleProps-
|
|
2
|
-
import {
|
|
3
|
-
import { n as TypographyVariant } from "./types-
|
|
4
|
-
import React, { ReactNode } from "react";
|
|
1
|
+
import { i as PaddingProps } from "./styleProps-D405c8KF.js";
|
|
2
|
+
import { i as styled, r as TypeStyles } from "./useThemedStyles-B7irjShy.js";
|
|
3
|
+
import { n as TypographyVariant } from "./types-CDUx-y9q.js";
|
|
4
|
+
import React, { MouseEvent, ReactNode } from "react";
|
|
5
5
|
|
|
6
6
|
//#region src/components/commons/buttons/Button/styles.d.ts
|
|
7
7
|
declare function createButtonStyles({
|
|
8
|
+
size,
|
|
8
9
|
color,
|
|
9
10
|
variant,
|
|
10
11
|
disabled,
|
|
11
12
|
fullWidth,
|
|
12
13
|
textAlign,
|
|
13
14
|
outlineColor
|
|
14
|
-
}: ButtonProps):
|
|
15
|
-
container: {
|
|
16
|
-
minHeight: string;
|
|
17
|
-
height: string;
|
|
18
|
-
width: string;
|
|
19
|
-
position: "relative";
|
|
20
|
-
display: "flex";
|
|
21
|
-
justifyContent: Align;
|
|
22
|
-
padding: string;
|
|
23
|
-
gap: string;
|
|
24
|
-
borderRadius: string;
|
|
25
|
-
cursor: "not-allowed" | "pointer";
|
|
26
|
-
opacity: number;
|
|
27
|
-
transition: "background-color 0.5s";
|
|
28
|
-
border: string;
|
|
29
|
-
backgroundColor: string;
|
|
30
|
-
__rules: {
|
|
31
|
-
'&:hover': {
|
|
32
|
-
opacity: "0.85 !important";
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
content: {
|
|
37
|
-
display: "flex";
|
|
38
|
-
flexDirection: "row";
|
|
39
|
-
alignItems: "center";
|
|
40
|
-
padding: string;
|
|
41
|
-
borderRadius: string;
|
|
42
|
-
whiteSpace: "nowrap";
|
|
43
|
-
columnGap: string;
|
|
44
|
-
};
|
|
45
|
-
};
|
|
15
|
+
}: ButtonProps): ReturnType<typeof styled>;
|
|
46
16
|
//#endregion
|
|
47
17
|
//#region src/components/commons/buttons/Button/types.d.ts
|
|
48
18
|
type Align = 'center' | 'left' | 'right';
|
|
49
19
|
type ButtonType = 'button' | 'submit' | 'reset';
|
|
50
20
|
type ButtonVariant = 'filled' | 'outlined' | 'ghost';
|
|
21
|
+
type ButtonSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
51
22
|
interface ButtonProps extends PaddingProps {
|
|
52
23
|
/** Text label displayed inside the button */
|
|
53
24
|
label: string;
|
|
54
25
|
/** Text variant of the button label */
|
|
55
26
|
labelVariant?: TypographyVariant;
|
|
27
|
+
/** Size of the button */
|
|
28
|
+
size?: ButtonSize | (string & {});
|
|
56
29
|
/** Icon displayed before the label */
|
|
57
30
|
startIcon?: ReactNode;
|
|
58
31
|
styles?: TypeStyles<typeof createButtonStyles>;
|
|
@@ -100,11 +73,11 @@ interface ButtonProps extends PaddingProps {
|
|
|
100
73
|
/**
|
|
101
74
|
* @description Callback fired when the button is clicked.
|
|
102
75
|
*/
|
|
103
|
-
onClick?: () => void;
|
|
76
|
+
onClick?: (event?: MouseEvent<HTMLButtonElement>) => void;
|
|
104
77
|
}
|
|
105
78
|
//#endregion
|
|
106
79
|
//#region src/components/commons/buttons/Button/index.d.ts
|
|
107
80
|
declare const Button: React.FC<ButtonProps>;
|
|
108
81
|
//#endregion
|
|
109
82
|
export { Button as t };
|
|
110
|
-
//# sourceMappingURL=index-
|
|
83
|
+
//# sourceMappingURL=index-DOwpBVkM.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as CommonStyleProps } from "./styleProps-
|
|
2
|
-
import {
|
|
1
|
+
import { t as CommonStyleProps } from "./styleProps-D405c8KF.js";
|
|
2
|
+
import { n as StyleMap } from "./useThemedStyles-B7irjShy.js";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/toolkit/TabSwitch/styles.d.ts
|
|
7
7
|
declare function createTabSwitchStyles<T>(props: TabSwitchProps<T>): StyleMap;
|
|
@@ -27,7 +27,7 @@ interface TabSwitchProps<T> extends CommonStyleProps {
|
|
|
27
27
|
}
|
|
28
28
|
//#endregion
|
|
29
29
|
//#region src/components/toolkit/TabSwitch/index.d.ts
|
|
30
|
-
declare const TabSwitch: <T>(props: TabSwitchProps<T>) =>
|
|
30
|
+
declare const TabSwitch: <T>(props: TabSwitchProps<T>) => react_jsx_runtime1.JSX.Element;
|
|
31
31
|
//#endregion
|
|
32
32
|
export { SwitchOption as n, TabSwitchProps as r, TabSwitch as t };
|
|
33
|
-
//# sourceMappingURL=index-
|
|
33
|
+
//# sourceMappingURL=index-DUrGjyKy.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as PaddingProps, n as LayoutProps } from "./styleProps-
|
|
2
|
-
import {
|
|
3
|
-
import { n as TypographyVariant } from "./types-
|
|
1
|
+
import { i as PaddingProps, n as LayoutProps } from "./styleProps-D405c8KF.js";
|
|
2
|
+
import { n as StyleMap } from "./useThemedStyles-B7irjShy.js";
|
|
3
|
+
import { n as TypographyVariant } from "./types-CDUx-y9q.js";
|
|
4
4
|
import React, { ReactNode } from "react";
|
|
5
5
|
|
|
6
6
|
//#region src/components/commons/inputs/Input/styles.d.ts
|
|
@@ -46,4 +46,4 @@ interface InputProps extends LayoutProps, PaddingProps {
|
|
|
46
46
|
declare const Input: React.FC<InputProps>;
|
|
47
47
|
//#endregion
|
|
48
48
|
export { Input as t };
|
|
49
|
-
//# sourceMappingURL=index-
|
|
49
|
+
//# sourceMappingURL=index-pnnP9M22.d.ts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./types-
|
|
2
|
-
import { t as Button } from "./index-
|
|
3
|
-
import { t as IconButton } from "./index-
|
|
4
|
-
import { t as Input } from "./index-
|
|
5
|
-
import { t as TextArea } from "./index-
|
|
1
|
+
import "./types-CDUx-y9q.js";
|
|
2
|
+
import { t as Button } from "./index-DOwpBVkM.js";
|
|
3
|
+
import { t as IconButton } from "./index-CyvtOmP2.js";
|
|
4
|
+
import { t as Input } from "./index-pnnP9M22.js";
|
|
5
|
+
import { t as TextArea } from "./index-BspBF3Mv.js";
|
|
6
6
|
import { t as CheckItem } from "./index-akSk71wZ.js";
|
|
7
|
-
import { t as Checkbox } from "./index-
|
|
7
|
+
import { t as Checkbox } from "./index-DH2bD-Yj.js";
|
|
8
8
|
import { InfoSummary, InfoSummaryItem, InfoSummaryProps } from "./info-summary.js";
|
|
9
|
-
import { n as SwitchOption, r as TabSwitchProps, t as TabSwitch } from "./index-
|
|
9
|
+
import { n as SwitchOption, r as TabSwitchProps, t as TabSwitch } from "./index-DUrGjyKy.js";
|
|
10
10
|
import { Typography } from "./typography.js";
|
|
11
11
|
import { a as ThemeName, c as ThemeRegistry, i as ThemeMode, l as ThemeTokens, n as useTheme, o as ThemePersistence, r as ThemeContextData, s as ThemeProviderProps, t as ThemeProvider } from "./index-CIxyqe-m.js";
|
|
12
12
|
export { Button, CheckItem, Checkbox, IconButton, InfoSummary, InfoSummaryItem, InfoSummaryProps, Input, SwitchOption, TabSwitch, TabSwitchProps, TextArea, ThemeContextData, ThemeMode, ThemeName, ThemePersistence, ThemeProvider, ThemeProviderProps, ThemeRegistry, ThemeTokens, Typography, useTheme };
|
package/dist/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import "./Icon-
|
|
2
|
-
import "./useThemedStyles-
|
|
3
|
-
import { t as Typography } from "./Typography-
|
|
4
|
-
import { t as Checkbox } from "./Checkbox-
|
|
1
|
+
import "./Icon-Djde8oXI.js";
|
|
2
|
+
import "./useThemedStyles-3rUXJYgS.js";
|
|
3
|
+
import { t as Typography } from "./Typography-BE-vQSfx.js";
|
|
4
|
+
import { t as Checkbox } from "./Checkbox-DErw2zDe.js";
|
|
5
5
|
import { n as useTheme, t as ThemeProvider } from "./ThemeContext-BsU2ZyE5.js";
|
|
6
|
-
import { t as TabSwitch } from "./TabSwitch-
|
|
7
|
-
import { t as InfoSummary } from "./InfoSummary-
|
|
8
|
-
import { t as CheckItem } from "./CheckItem-
|
|
9
|
-
import { t as Button } from "./Button-
|
|
10
|
-
import { t as IconButton } from "./IconButton-
|
|
11
|
-
import "./Label-
|
|
12
|
-
import { t as Input } from "./Input-
|
|
13
|
-
import { t as TextArea } from "./TextArea-
|
|
6
|
+
import { t as TabSwitch } from "./TabSwitch-De30bFX2.js";
|
|
7
|
+
import { t as InfoSummary } from "./InfoSummary-BwrLkEfC.js";
|
|
8
|
+
import { t as CheckItem } from "./CheckItem-DuJvhDP_.js";
|
|
9
|
+
import { t as Button } from "./Button-CwK9nssQ.js";
|
|
10
|
+
import { t as IconButton } from "./IconButton-IhShUhfe.js";
|
|
11
|
+
import "./Label-QQpNWSeV.js";
|
|
12
|
+
import { t as Input } from "./Input-C7WKOO_t.js";
|
|
13
|
+
import { t as TextArea } from "./TextArea-jpLThSHP.js";
|
|
14
14
|
|
|
15
15
|
export { Button, CheckItem, Checkbox, IconButton, InfoSummary, Input, TabSwitch, TextArea, ThemeProvider, Typography, useTheme };
|
package/dist/info-summary.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./useThemedStyles-
|
|
2
|
-
import "./Typography-
|
|
3
|
-
import { t as InfoSummary } from "./InfoSummary-
|
|
1
|
+
import "./useThemedStyles-3rUXJYgS.js";
|
|
2
|
+
import "./Typography-BE-vQSfx.js";
|
|
3
|
+
import { t as InfoSummary } from "./InfoSummary-BwrLkEfC.js";
|
|
4
4
|
|
|
5
5
|
export { InfoSummary };
|
package/dist/input.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "./types-
|
|
2
|
-
import { t as Input } from "./index-
|
|
1
|
+
import "./types-CDUx-y9q.js";
|
|
2
|
+
import { t as Input } from "./index-pnnP9M22.js";
|
|
3
3
|
export { Input };
|
package/dist/input.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "./Icon-
|
|
2
|
-
import "./useThemedStyles-
|
|
3
|
-
import "./Typography-
|
|
4
|
-
import "./Label-
|
|
5
|
-
import { t as Input } from "./Input-
|
|
1
|
+
import "./Icon-Djde8oXI.js";
|
|
2
|
+
import "./useThemedStyles-3rUXJYgS.js";
|
|
3
|
+
import "./Typography-BE-vQSfx.js";
|
|
4
|
+
import "./Label-QQpNWSeV.js";
|
|
5
|
+
import { t as Input } from "./Input-C7WKOO_t.js";
|
|
6
6
|
|
|
7
7
|
export { Input };
|
|
@@ -19,10 +19,17 @@ interface PaddingProps {
|
|
|
19
19
|
pb?: Space;
|
|
20
20
|
pl?: Space;
|
|
21
21
|
}
|
|
22
|
+
interface FontWeights {
|
|
23
|
+
light: number;
|
|
24
|
+
regular: number;
|
|
25
|
+
medium: number;
|
|
26
|
+
bold: number;
|
|
27
|
+
black: number;
|
|
28
|
+
}
|
|
22
29
|
interface TextProps {
|
|
23
30
|
fontSize?: number | string;
|
|
24
|
-
fontWeight?: React.CSSProperties['fontWeight'];
|
|
25
31
|
lineHeight?: number | string;
|
|
32
|
+
fontWeight?: keyof FontWeights | (number & {});
|
|
26
33
|
textAlign?: React.CSSProperties['textAlign'];
|
|
27
34
|
}
|
|
28
35
|
interface LayoutProps {
|
|
@@ -36,4 +43,4 @@ interface LayoutProps {
|
|
|
36
43
|
type CommonStyleProps = MarginProps & PaddingProps & TextProps & LayoutProps;
|
|
37
44
|
//#endregion
|
|
38
45
|
export { TextProps as a, PaddingProps as i, LayoutProps as n, MarginProps as r, CommonStyleProps as t };
|
|
39
|
-
//# sourceMappingURL=styleProps-
|
|
46
|
+
//# sourceMappingURL=styleProps-D405c8KF.d.ts.map
|
package/dist/tab-switch.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as SwitchOption, r as TabSwitchProps, t as TabSwitch } from "./index-
|
|
1
|
+
import { n as SwitchOption, r as TabSwitchProps, t as TabSwitch } from "./index-DUrGjyKy.js";
|
|
2
2
|
export { SwitchOption, TabSwitch, TabSwitchProps };
|
package/dist/tab-switch.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./useThemedStyles-
|
|
2
|
-
import "./Typography-
|
|
3
|
-
import { t as TabSwitch } from "./TabSwitch-
|
|
1
|
+
import "./useThemedStyles-3rUXJYgS.js";
|
|
2
|
+
import "./Typography-BE-vQSfx.js";
|
|
3
|
+
import { t as TabSwitch } from "./TabSwitch-De30bFX2.js";
|
|
4
4
|
|
|
5
5
|
export { TabSwitch };
|
package/dist/text-area.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "./types-
|
|
2
|
-
import { t as TextArea } from "./index-
|
|
1
|
+
import "./types-CDUx-y9q.js";
|
|
2
|
+
import { t as TextArea } from "./index-BspBF3Mv.js";
|
|
3
3
|
export { TextArea };
|
package/dist/text-area.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "./Icon-
|
|
2
|
-
import "./useThemedStyles-
|
|
3
|
-
import "./Typography-
|
|
4
|
-
import "./Label-
|
|
5
|
-
import { t as TextArea } from "./TextArea-
|
|
1
|
+
import "./Icon-Djde8oXI.js";
|
|
2
|
+
import "./useThemedStyles-3rUXJYgS.js";
|
|
3
|
+
import "./Typography-BE-vQSfx.js";
|
|
4
|
+
import "./Label-QQpNWSeV.js";
|
|
5
|
+
import { t as TextArea } from "./TextArea-jpLThSHP.js";
|
|
6
6
|
|
|
7
7
|
export { TextArea };
|