softable-pixels-web 1.2.24 → 1.2.26
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/{BasePopover-CJ3fgbyR.js → BasePopover-8DnU_4ZE.js} +2 -2
- package/dist/{BasePopover-CJ3fgbyR.js.map → BasePopover-8DnU_4ZE.js.map} +1 -1
- package/dist/{Breadcrumb-DybIVEbb.js → Breadcrumb-26GLzOFf.js} +2 -2
- package/dist/{Breadcrumb-DybIVEbb.js.map → Breadcrumb-26GLzOFf.js.map} +1 -1
- package/dist/{Button-BoxJYXZV.js → Button-Bt0n0YRS.js} +2 -2
- package/dist/{Button-BoxJYXZV.js.map → Button-Bt0n0YRS.js.map} +1 -1
- package/dist/{CheckItem-CyBf-IJ_.js → CheckItem-D4FQlFVr.js} +3 -3
- package/dist/{CheckItem-CyBf-IJ_.js.map → CheckItem-D4FQlFVr.js.map} +1 -1
- package/dist/{Checkbox-BIv2CdPA.js → Checkbox-MBu-eqhs.js} +3 -3
- package/dist/{Checkbox-BIv2CdPA.js.map → Checkbox-MBu-eqhs.js.map} +1 -1
- package/dist/{Chip-D5uSkIub.js → Chip-DVyLeXhu.js} +2 -2
- package/dist/{Chip-D5uSkIub.js.map → Chip-DVyLeXhu.js.map} +1 -1
- package/dist/{ChipList-DUNb3XUs.js → ChipList-SJPLLogY.js} +3 -3
- package/dist/{ChipList-DUNb3XUs.js.map → ChipList-SJPLLogY.js.map} +1 -1
- package/dist/{ColorPicker-BjdYX32n.js → ColorPicker-CoW1U32M.js} +2 -2
- package/dist/{ColorPicker-BjdYX32n.js.map → ColorPicker-CoW1U32M.js.map} +1 -1
- package/dist/{ContextMenu-gddOGRUy.js → ContextMenu-C9wbwxr4.js} +4 -4
- package/dist/{ContextMenu-gddOGRUy.js.map → ContextMenu-C9wbwxr4.js.map} +1 -1
- package/dist/{DatePicker-DxnkpNFK.js → DatePicker-BMjFyNnT.js} +6 -6
- package/dist/{DatePicker-DxnkpNFK.js.map → DatePicker-BMjFyNnT.js.map} +1 -1
- package/dist/{Icon-DsZcccBA.js → Icon-B_-jkpZe.js} +1 -1
- package/dist/{Icon-DsZcccBA.js.map → Icon-B_-jkpZe.js.map} +1 -1
- package/dist/{InfoSummary-Dx0Quhyh.js → InfoSummary-DjhdozE3.js} +2 -2
- package/dist/{InfoSummary-Dx0Quhyh.js.map → InfoSummary-DjhdozE3.js.map} +1 -1
- package/dist/{Input-BJhWrENq.js → Input-WKAFbfzS.js} +3 -3
- package/dist/{Input-BJhWrENq.js.map → Input-WKAFbfzS.js.map} +1 -1
- package/dist/{Label-CVSeI-Bh.js → Label-BIHK45eW.js} +2 -2
- package/dist/{Label-CVSeI-Bh.js.map → Label-BIHK45eW.js.map} +1 -1
- package/dist/{Pagination-BLRSfr8j.js → Pagination-CLQ-I-Ll.js} +4 -4
- package/dist/{Pagination-BLRSfr8j.js.map → Pagination-CLQ-I-Ll.js.map} +1 -1
- package/dist/{Popover-CtS201O7.js → Popover-Ca6y8mp2.js} +3 -3
- package/dist/{Popover-CtS201O7.js.map → Popover-Ca6y8mp2.js.map} +1 -1
- package/dist/{SearchInput-CZ6NlgaZ.js → SearchInput-N6NU3ljd.js} +3 -3
- package/dist/{SearchInput-CZ6NlgaZ.js.map → SearchInput-N6NU3ljd.js.map} +1 -1
- package/dist/{Select-Bjf4h9IV.js → Select-HUf25HtQ.js} +55 -16
- package/dist/Select-HUf25HtQ.js.map +1 -0
- package/dist/{Switch-CWfHuT5f.js → Switch-CIVBbhne.js} +15 -7
- package/dist/Switch-CIVBbhne.js.map +1 -0
- package/dist/{TabSwitch-DSxetCLF.js → TabSwitch-CVngRFFe.js} +2 -2
- package/dist/{TabSwitch-DSxetCLF.js.map → TabSwitch-CVngRFFe.js.map} +1 -1
- package/dist/{TextArea-BuWwCWjY.js → TextArea-B0chOPGK.js} +3 -3
- package/dist/{TextArea-BuWwCWjY.js.map → TextArea-B0chOPGK.js.map} +1 -1
- package/dist/{Typography-DNz74SEg.js → Typography-BTM9_PzE.js} +1 -1
- package/dist/{Typography-DNz74SEg.js.map → Typography-BTM9_PzE.js.map} +1 -1
- package/dist/base-popover.js +4 -4
- package/dist/breadcrumb.js +2 -2
- package/dist/button.js +2 -2
- package/dist/check-item.js +3 -3
- package/dist/checkbox.js +3 -3
- package/dist/chip-list.js +4 -4
- package/dist/chip.js +2 -2
- package/dist/color-picker.js +3 -3
- package/dist/context-menu.d.ts +1 -1
- package/dist/context-menu.js +7 -7
- package/dist/date-picker.js +9 -9
- package/dist/{index-BAU_wCNU.d.ts → index-BDhzbGaA.d.ts} +15 -2
- package/dist/{index-CqWGFqGH.d.ts → index-BZTLZhoa.d.ts} +2 -1
- package/dist/{index-rjAef_UW.d.ts → index-C_M4hYmf.d.ts} +3 -3
- package/dist/{index-EKs-cTg7.d.ts → index-Cocx24nH.d.ts} +4 -4
- package/dist/{index-D4xpcrkW.d.ts → index-goekpccU.d.ts} +2 -2
- package/dist/index.d.ts +5 -5
- package/dist/index.js +24 -24
- package/dist/info-summary.js +2 -2
- package/dist/input.d.ts +1 -1
- package/dist/input.js +4 -4
- package/dist/pagination.js +4 -4
- package/dist/popover.js +3 -3
- package/dist/searchInput.js +4 -4
- package/dist/select.d.ts +1 -1
- package/dist/select.js +8 -8
- package/dist/switch.d.ts +1 -1
- package/dist/switch.js +2 -1
- package/dist/tab-switch.js +2 -2
- package/dist/text-area.d.ts +1 -1
- package/dist/text-area.js +3 -3
- package/dist/typography.js +1 -1
- package/dist/use-dismiss.js +1 -1
- package/dist/use-floating.js +1 -1
- package/dist/{useDismiss-Bv7pzF85.js → useDismiss-DU3sm3Wt.js} +1 -1
- package/dist/{useDismiss-Bv7pzF85.js.map → useDismiss-DU3sm3Wt.js.map} +1 -1
- package/dist/{useFloating-EH6HmChz.js → useFloating-D8XvrX3y.js} +1 -1
- package/dist/{useFloating-EH6HmChz.js.map → useFloating-D8XvrX3y.js.map} +1 -1
- package/package.json +1 -1
- package/dist/Select-Bjf4h9IV.js.map +0 -1
- package/dist/Switch-CWfHuT5f.js.map +0 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { n as styled, t as useThemedStyles } from "./useThemedStyles-C2-V1GJa.js";
|
|
2
|
-
import {
|
|
2
|
+
import { t as Typography } from "./Typography-BTM9_PzE.js";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
4
|
|
|
4
5
|
//#region src/components/commons/toolkit/Switch/styles.ts
|
|
5
6
|
function createSwitchThumbStyles({ checked, colorActive, colorInactive, colorIndicator }) {
|
|
@@ -34,7 +35,7 @@ function createSwitchThumbStyles({ checked, colorActive, colorInactive, colorInd
|
|
|
34
35
|
//#endregion
|
|
35
36
|
//#region src/components/commons/toolkit/Switch/index.tsx
|
|
36
37
|
const Switch = (props) => {
|
|
37
|
-
const { checked, onChange } = props;
|
|
38
|
+
const { label, checked, onChange } = props;
|
|
38
39
|
const { styles } = useThemedStyles(props, createSwitchThumbStyles, {
|
|
39
40
|
applyCommonProps: true,
|
|
40
41
|
pick: (p) => [p.checked]
|
|
@@ -44,13 +45,20 @@ const Switch = (props) => {
|
|
|
44
45
|
e.preventDefault();
|
|
45
46
|
onChange?.(!checked);
|
|
46
47
|
}
|
|
47
|
-
return /* @__PURE__ */
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
49
|
+
className: "w-full flex items-center justify-between gap-x-2",
|
|
50
|
+
children: [label ? /* @__PURE__ */ jsx(Typography, {
|
|
51
|
+
variant: "b2",
|
|
52
|
+
color: "var(px-text-primary)",
|
|
53
|
+
children: label
|
|
54
|
+
}) : null, /* @__PURE__ */ jsx("span", {
|
|
55
|
+
style: styles.container,
|
|
56
|
+
onClick: handleChange,
|
|
57
|
+
children: /* @__PURE__ */ jsx("span", { style: styles.indicator })
|
|
58
|
+
})]
|
|
51
59
|
});
|
|
52
60
|
};
|
|
53
61
|
|
|
54
62
|
//#endregion
|
|
55
63
|
export { Switch as t };
|
|
56
|
-
//# sourceMappingURL=Switch-
|
|
64
|
+
//# sourceMappingURL=Switch-CIVBbhne.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Switch-CIVBbhne.js","names":["Switch: React.FC<SwitchThumbProps>"],"sources":["../src/components/commons/toolkit/Switch/styles.ts","../src/components/commons/toolkit/Switch/index.tsx"],"sourcesContent":["// Types\nimport type { SwitchThumbProps } from './types'\n\n// Styles\nimport { styled } from '@hooks/useThemedStyles/types'\nexport function createSwitchThumbStyles({\n checked,\n colorActive,\n colorInactive,\n colorIndicator\n}: SwitchThumbProps) {\n return styled({\n container: {\n width: '2.5rem',\n height: '1.5rem',\n\n position: 'relative',\n\n display: 'inline-flex',\n alignItems: 'center',\n marginLeft: '0.5rem',\n\n borderRadius: '2rem',\n padding: '0.125rem',\n\n transition: 'background-color 0.5s',\n backgroundColor: checked\n ? (colorActive ?? 'var(--px-color-success)')\n : (colorInactive ?? 'var(--px-color-disabled)')\n },\n\n indicator: {\n height: '1.25rem',\n width: '1.25rem',\n\n position: 'absolute',\n left: '0.125rem',\n top: '0.125rem',\n\n borderRadius: '9999px',\n backgroundColor: colorIndicator ?? 'var(--px-surface)',\n\n transition: 'transform 0.5s',\n transform: checked ? 'translateX(1rem)' : 'translateX(0)',\n willChange: 'transform'\n }\n })\n}\n","// External Libraries\nimport type React from 'react'\nimport type { MouseEvent } from 'react'\n\n// Hooks\nimport { useThemedStyles } from '@hooks/useThemedStyles'\n\n// Types\nimport type { SwitchThumbProps } from './types'\n\n// Styles\nimport { createSwitchThumbStyles } from './styles'\nimport { Typography } from '../Typography'\n\nexport const Switch: React.FC<SwitchThumbProps> = props => {\n const { label, checked, onChange } = props\n\n // Hooks\n const { styles } = useThemedStyles(props, createSwitchThumbStyles, {\n applyCommonProps: true,\n pick: p => [p.checked]\n })\n\n // Functions\n function handleChange(e: MouseEvent<HTMLSpanElement>) {\n e.stopPropagation()\n e.preventDefault()\n\n onChange?.(!checked)\n }\n\n return (\n <div className=\"w-full flex items-center justify-between gap-x-2\">\n {label ? (\n <Typography variant=\"b2\" color=\"var(px-text-primary)\">\n {label}\n </Typography>\n ) : null}\n {/* biome-ignore lint/a11y/useKeyWithClickEvents: <Not Needed> */}\n {/* biome-ignore lint/a11y/noStaticElementInteractions: <Not Needed> */}\n <span style={styles.container} onClick={handleChange}>\n <span style={styles.indicator} />\n </span>\n </div>\n )\n}\n"],"mappings":";;;;;AAKA,SAAgB,wBAAwB,EACtC,SACA,aACA,eACA,kBACmB;AACnB,QAAO,OAAO;EACZ,WAAW;GACT,OAAO;GACP,QAAQ;GAER,UAAU;GAEV,SAAS;GACT,YAAY;GACZ,YAAY;GAEZ,cAAc;GACd,SAAS;GAET,YAAY;GACZ,iBAAiB,UACZ,eAAe,4BACf,iBAAiB;GACvB;EAED,WAAW;GACT,QAAQ;GACR,OAAO;GAEP,UAAU;GACV,MAAM;GACN,KAAK;GAEL,cAAc;GACd,iBAAiB,kBAAkB;GAEnC,YAAY;GACZ,WAAW,UAAU,qBAAqB;GAC1C,YAAY;GACb;EACF,CAAC;;;;;AChCJ,MAAaA,UAAqC,UAAS;CACzD,MAAM,EAAE,OAAO,SAAS,aAAa;CAGrC,MAAM,EAAE,WAAW,gBAAgB,OAAO,yBAAyB;EACjE,kBAAkB;EAClB,OAAM,MAAK,CAAC,EAAE,QAAQ;EACvB,CAAC;CAGF,SAAS,aAAa,GAAgC;AACpD,IAAE,iBAAiB;AACnB,IAAE,gBAAgB;AAElB,aAAW,CAAC,QAAQ;;AAGtB,QACE,qBAAC;EAAI,WAAU;aACZ,QACC,oBAAC;GAAW,SAAQ;GAAK,OAAM;aAC5B;IACU,GACX,MAGJ,oBAAC;GAAK,OAAO,OAAO;GAAW,SAAS;aACtC,oBAAC,UAAK,OAAO,OAAO,YAAa;IAC5B;GACH"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as styled, t as useThemedStyles } from "./useThemedStyles-C2-V1GJa.js";
|
|
2
|
-
import { t as Typography } from "./Typography-
|
|
2
|
+
import { t as Typography } from "./Typography-BTM9_PzE.js";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { motion } from "framer-motion";
|
|
5
5
|
|
|
@@ -127,4 +127,4 @@ const TabSwitch = (props) => {
|
|
|
127
127
|
|
|
128
128
|
//#endregion
|
|
129
129
|
export { types_exports as n, TabSwitch as t };
|
|
130
|
-
//# sourceMappingURL=TabSwitch-
|
|
130
|
+
//# sourceMappingURL=TabSwitch-CVngRFFe.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabSwitch-
|
|
1
|
+
{"version":3,"file":"TabSwitch-CVngRFFe.js","names":[],"sources":["../src/components/commons/toolkit/TabSwitch/components/TabSwitchItem/styles.ts","../src/components/commons/toolkit/TabSwitch/components/TabSwitchItem/index.tsx","../src/components/commons/toolkit/TabSwitch/styles.ts","../src/components/commons/toolkit/TabSwitch/types.ts","../src/components/commons/toolkit/TabSwitch/index.tsx"],"sourcesContent":["// External Libraries\nimport { styled } 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) {\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/commons/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 {option.label ? (\n <Typography variant=\"b1\" fontWeight=\"bold\">\n {option.label}\n </Typography>\n ) : null}\n </button>\n )\n}\n","// Types\nimport type { TabSwitchProps } from './types'\nimport { styled } from '@hooks/useThemedStyles/types'\n\nexport function createTabSwitchStyles<T>(props: TabSwitchProps<T>) {\n const { fitContent, backgroundColor, variant } = props\n\n return styled({\n container: {\n display: 'flex',\n padding: '3px',\n flexDirection: 'row',\n alignItems: 'center',\n borderRadius: '0.5rem',\n color: 'var(--px-text-primary, #4b5563)',\n width: fitContent ? 'fit-content' : '100%',\n backgroundColor: backgroundColor ?? 'transparent',\n borderBottom:\n variant === 'underline'\n ? '1px solid var(--px-border-primary, #e5e7eb)'\n : 'unset',\n gap: 0,\n __rules: { '& svg': { zIndex: 1 } }\n }\n })\n}\n","// Types\nimport type { CommonStyleProps, TypeStyles } from '@hooks/useThemedStyles/types'\nimport type { ReactNode } from 'react'\nimport type { createTabSwitchStyles } from './styles'\n\nexport interface SwitchOption<T> {\n value: T\n label?: string\n disabled?: boolean\n\n icon?: ReactNode\n}\n\nexport interface TabSwitchProps<T> extends CommonStyleProps {\n currentValue: T\n options: SwitchOption<T>[]\n\n disabled?: boolean\n fitContent?: boolean\n\n layoutId?: string\n\n selectedColor?: string\n backgroundColor?: string\n selectedLabelColor?: string\n\n variant?: 'default' | 'underline'\n\n styles?: TypeStyles<typeof createTabSwitchStyles>\n\n onChange: (value: T) => void\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 * as TabSwitchTypes 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,iBACS;CACT,MAAM,SAAS,iBAAiB;AAEhC,QAAO,OAAO;EACZ,MAAM;GACJ,WAAW;GACX,UAAU;GACV,SAAS;GACT,YAAY;GACZ,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ACA;EACN,KAAK;EACL,SAAS,EAAE,SAAS,EAAE,QAAQ,GAAG,EAAE;EACpC,EACF,CAAC;;;;;;;;;AEVJ,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,6 +1,6 @@
|
|
|
1
1
|
import { n as styled, t as useThemedStyles } from "./useThemedStyles-C2-V1GJa.js";
|
|
2
|
-
import { t as Typography } from "./Typography-
|
|
3
|
-
import { t as Label } from "./Label-
|
|
2
|
+
import { t as Typography } from "./Typography-BTM9_PzE.js";
|
|
3
|
+
import { t as Label } from "./Label-BIHK45eW.js";
|
|
4
4
|
import { t as ErrorMessage } from "./ErrorMessage-BlKbgDGA.js";
|
|
5
5
|
import { useId, useRef, useState } from "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -116,4 +116,4 @@ const TextArea = (props) => {
|
|
|
116
116
|
|
|
117
117
|
//#endregion
|
|
118
118
|
export { TextArea as t };
|
|
119
|
-
//# sourceMappingURL=TextArea-
|
|
119
|
+
//# sourceMappingURL=TextArea-B0chOPGK.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextArea-
|
|
1
|
+
{"version":3,"file":"TextArea-B0chOPGK.js","names":["value"],"sources":["../src/components/commons/inputs/TextArea/styles.ts","../src/components/commons/inputs/TextArea/index.tsx"],"sourcesContent":["// Types\nimport { styled } from '@hooks/useThemedStyles/types'\nimport type { TextAreaProps } from './types'\n\nexport function createTextAreaStyles(props: TextAreaProps) {\n const { height = '8rem', readOnly } = props\n\n return styled({\n container: {\n width: '100%',\n\n display: 'flex',\n flexDirection: 'column',\n\n rowGap: '0.375rem'\n },\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 borderWidth: 1,\n borderRadius: '0.5rem',\n resize: 'none',\n\n fontWeight: '400',\n fontSize: '1rem',\n color: 'var(--px-text-primary)',\n\n borderColor: props.errorMessage\n ? 'var(--px-color-error)'\n : 'var(--px-border-primary)',\n outlineOffset: '-1px',\n\n cursor: readOnly ? 'default' : undefined,\n\n __rules: {\n '&::placeholder': {\n fontWeight: 400,\n color: 'var(--px-text-secondary)'\n },\n\n '&:focus-within': {\n outlineOffset: '-1px',\n outline: `2px solid var(${props.errorMessage ? '--px-color-error' : '--px-color-primary'})`\n }\n }\n }\n })\n}\n","// External Libraries\nimport { useId, useRef, useState } from 'react'\n\n// Types\nimport type { TextAreaProps } from './types'\n\n// Components\nimport { Label } from '@components/commons/toolkit/Label'\nimport { Typography } from '@components/commons/toolkit/Typography'\nimport { ErrorMessage } from '@components/commons/toolkit/ErrorMessage'\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 delay,\n disabled,\n readOnly,\n maxLength,\n hideMaxLength,\n textMaxLength,\n placeholder,\n errorMessage,\n\n label,\n required,\n requiredColor,\n labelConfig,\n onChange\n } = props\n\n // Refs\n const timeoutRef = useRef<NodeJS.Timeout>(null)\n\n // States\n const [inputValue, setInputValue] = useState(value)\n\n // Hooks\n const inputId = useId()\n\n const { styles, classes } = useThemedStyles(props, createTextAreaStyles, {\n pick: p => [p.height, p.readOnly, p.placeholderColor, p.focusedRingColor],\n override: props.styles,\n applyCommonProps: true\n })\n\n // Functions\n function handleChange(e: React.ChangeEvent<HTMLTextAreaElement>) {\n if (disabled || readOnly) return\n\n const value = e.target.value\n\n setInputValue(value)\n\n if (timeoutRef.current) clearTimeout(timeoutRef.current)\n\n if (!delay) onChange?.(value)\n else {\n timeoutRef.current = setTimeout(() => onChange?.(value), delay)\n }\n }\n\n function renderLabel() {\n if (!label) return null\n\n return (\n <div>\n <Label\n label={label}\n htmlFor={inputId}\n required={required}\n requiredColor={requiredColor}\n {...labelConfig}\n />\n </div>\n )\n }\n\n return (\n <div style={styles.container}>\n {renderLabel()}\n\n <textarea\n value={inputValue}\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\n {maxLength && !hideMaxLength ? (\n <Typography variant=\"b2\" styles={{ text: { marginLeft: 'auto' } }}>\n {value?.length}/{maxLength} {textMaxLength}\n </Typography>\n ) : null}\n\n {errorMessage ? <ErrorMessage message={errorMessage} /> : null}\n </div>\n )\n}\n"],"mappings":";;;;;;;;AAIA,SAAgB,qBAAqB,OAAsB;CACzD,MAAM,EAAE,SAAS,QAAQ,aAAa;AAEtC,QAAO,OAAO;EACZ,WAAW;GACT,OAAO;GAEP,SAAS;GACT,eAAe;GAEf,QAAQ;GACT;EACD,eAAe;GACb,UAAU;GACV,MAAM;GACN,KAAK;GACL,WAAW;GACZ;EACD,UAAU;GACR;GACA,OAAO;GACP,cAAc;GACd,eAAe;GACf,aAAa;GACb,cAAc;GACd,QAAQ;GAER,YAAY;GACZ,UAAU;GACV,OAAO;GAEP,aAAa,MAAM,eACf,0BACA;GACJ,eAAe;GAEf,QAAQ,WAAW,YAAY;GAE/B,SAAS;IACP,kBAAkB;KAChB,YAAY;KACZ,OAAO;KACR;IAED,kBAAkB;KAChB,e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":3,"file":"Typography-
|
|
1
|
+
{"version":3,"file":"Typography-BTM9_PzE.js","names":["typographyVariants: Record<TypographyVariant, SlotStyle>","variantToElement: Record<\n TypographyVariant,\n keyof JSX.IntrinsicElements\n>","alignText: Record<TextAlign, SlotStyle>","Typography: React.FC<TypographyProps>"],"sources":["../src/components/commons/toolkit/Typography/utils.ts","../src/components/commons/toolkit/Typography/config.ts","../src/components/commons/toolkit/Typography/style.ts","../src/components/commons/toolkit/Typography/index.tsx"],"sourcesContent":["export function getPlaceholder(content: React.ReactNode, size: number) {\n const contentSize = typeof content === 'string' ? content.length : 0\n const finalSize = Math.max(contentSize, size)\n\n if (finalSize === 0) return ''\n\n return '*'.repeat(finalSize)\n}\n","// 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 { variant, align = 'left', color } = props\n\n return styled({\n loading: {\n width: 'fit-content',\n display: 'inline-block',\n borderRadius: '0.25rem',\n\n background: 'var(--px-bg-skeleton)',\n backgroundSize: '400% 400%',\n animation: 'gradient 3s ease infinite',\n color: 'transparent',\n\n __keyframes: {\n gradient: {\n '0%': { backgroundPosition: '0% 50%' },\n '50%': { backgroundPosition: '100% 50%' },\n '100%': { backgroundPosition: '0% 50%' }\n }\n }\n },\n\n text: {\n ...alignText[align],\n ...typographyVariants[variant],\n color: color ?? typographyVariants[variant].color\n } as SlotStyle\n })\n}\n","// External Libraries\nimport type React from 'react'\n\n// Hooks\nimport { useThemedStyles } from '@hooks/useThemedStyles'\n\n// Utils\nimport { getPlaceholder } from './utils'\nimport { variantToElement } from './config'\n\n// Types\nimport type { TypographyProps } from './types'\n\n// Styles\nimport { createTypographyStyles } from './style'\n\nexport const Typography: React.FC<TypographyProps> = props => {\n const {\n id,\n as,\n href,\n variant,\n children,\n className,\n isLoading = false,\n placeholderSize = 5,\n styles: styleTypography\n } = props\n\n const { styles } = useThemedStyles(props, createTypographyStyles, {\n pick: p => [p.isLoading, p.variant, p.align, p.color],\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 {getPlaceholder(children, placeholderSize)}\n </span>\n )\n }\n\n const sharedProps = { id, style: styles.text, className }\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":";;;;AAAA,SAAgB,eAAe,SAA0B,MAAc;CACrE,MAAM,cAAc,OAAO,YAAY,WAAW,QAAQ,SAAS;CACnE,MAAM,YAAY,KAAK,IAAI,aAAa,KAAK;AAE7C,KAAI,cAAc,EAAG,QAAO;AAE5B,QAAO,IAAI,OAAO,UAAU;;;;;ACC9B,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,I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,EAAE;GAAO,EAAE;GAAM;EACrD,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;YAE3C,eAAe,UAAU,gBAAgB;GACrC;CAIX,MAAM,cAAc;EAAE;EAAI,OAAO,OAAO;EAAM;EAAW;AAEzD,KAAI,KACF,QACE,oBAAC;EAAQ;EAAM,GAAI;EAChB;GACC;AAIR,QAAO,oBAAC;EAAU,GAAI;EAAc;GAAqB"}
|
package/dist/base-popover.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./useThemedStyles-C2-V1GJa.js";
|
|
2
|
-
import "./useDismiss-
|
|
3
|
-
import "./useFloating-
|
|
4
|
-
import "./Popover-
|
|
5
|
-
import { t as BasePopover } from "./BasePopover-
|
|
2
|
+
import "./useDismiss-DU3sm3Wt.js";
|
|
3
|
+
import "./useFloating-D8XvrX3y.js";
|
|
4
|
+
import "./Popover-Ca6y8mp2.js";
|
|
5
|
+
import { t as BasePopover } from "./BasePopover-8DnU_4ZE.js";
|
|
6
6
|
|
|
7
7
|
export { BasePopover };
|
package/dist/breadcrumb.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./useThemedStyles-C2-V1GJa.js";
|
|
2
|
-
import "./Typography-
|
|
2
|
+
import "./Typography-BTM9_PzE.js";
|
|
3
3
|
import "./Skeleton-CK7nXld2.js";
|
|
4
|
-
import { t as Breadcrumb } from "./Breadcrumb-
|
|
4
|
+
import { t as Breadcrumb } from "./Breadcrumb-26GLzOFf.js";
|
|
5
5
|
|
|
6
6
|
export { Breadcrumb };
|
package/dist/button.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./useThemedStyles-C2-V1GJa.js";
|
|
2
|
-
import "./Typography-
|
|
2
|
+
import "./Typography-BTM9_PzE.js";
|
|
3
3
|
import "./Loader-COoEBdxD.js";
|
|
4
|
-
import { t as Button } from "./Button-
|
|
4
|
+
import { t as Button } from "./Button-Bt0n0YRS.js";
|
|
5
5
|
|
|
6
6
|
export { Button };
|
package/dist/check-item.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./useThemedStyles-C2-V1GJa.js";
|
|
2
|
-
import "./
|
|
3
|
-
import "./
|
|
4
|
-
import { t as CheckItem } from "./CheckItem-
|
|
2
|
+
import "./Typography-BTM9_PzE.js";
|
|
3
|
+
import "./Icon-B_-jkpZe.js";
|
|
4
|
+
import { t as CheckItem } from "./CheckItem-D4FQlFVr.js";
|
|
5
5
|
|
|
6
6
|
export { CheckItem };
|
package/dist/checkbox.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./useThemedStyles-C2-V1GJa.js";
|
|
2
|
-
import "./
|
|
3
|
-
import "./
|
|
4
|
-
import { t as Checkbox } from "./Checkbox-
|
|
2
|
+
import "./Typography-BTM9_PzE.js";
|
|
3
|
+
import "./Icon-B_-jkpZe.js";
|
|
4
|
+
import { t as Checkbox } from "./Checkbox-MBu-eqhs.js";
|
|
5
5
|
|
|
6
6
|
export { Checkbox };
|
package/dist/chip-list.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./useThemedStyles-C2-V1GJa.js";
|
|
2
|
-
import "./Typography-
|
|
3
|
-
import "./Chip-
|
|
4
|
-
import "./Label-
|
|
2
|
+
import "./Typography-BTM9_PzE.js";
|
|
3
|
+
import "./Chip-DVyLeXhu.js";
|
|
4
|
+
import "./Label-BIHK45eW.js";
|
|
5
5
|
import "./ErrorMessage-BlKbgDGA.js";
|
|
6
|
-
import { t as ChipList } from "./ChipList-
|
|
6
|
+
import { t as ChipList } from "./ChipList-SJPLLogY.js";
|
|
7
7
|
|
|
8
8
|
export { ChipList };
|
package/dist/chip.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./useThemedStyles-C2-V1GJa.js";
|
|
2
|
-
import "./Typography-
|
|
3
|
-
import { n as types_exports, t as Chip } from "./Chip-
|
|
2
|
+
import "./Typography-BTM9_PzE.js";
|
|
3
|
+
import { n as types_exports, t as Chip } from "./Chip-DVyLeXhu.js";
|
|
4
4
|
|
|
5
5
|
export { Chip, types_exports as ChipTypes };
|
package/dist/color-picker.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./useThemedStyles-C2-V1GJa.js";
|
|
2
|
-
import "./Typography-
|
|
3
|
-
import "./Label-
|
|
2
|
+
import "./Typography-BTM9_PzE.js";
|
|
3
|
+
import "./Label-BIHK45eW.js";
|
|
4
4
|
import "./ErrorMessage-BlKbgDGA.js";
|
|
5
|
-
import { n as types_exports, t as ColorPicker } from "./ColorPicker-
|
|
5
|
+
import { n as types_exports, t as ColorPicker } from "./ColorPicker-CoW1U32M.js";
|
|
6
6
|
import "./Skeleton-CK7nXld2.js";
|
|
7
7
|
|
|
8
8
|
export { ColorPicker, types_exports as ColorPickerTypes };
|
package/dist/context-menu.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as types_d_exports, t as ContextMenu } from "./index-
|
|
1
|
+
import { n as types_d_exports, t as ContextMenu } from "./index-C_M4hYmf.js";
|
|
2
2
|
export { ContextMenu, types_d_exports as ContextMenuTypes };
|
package/dist/context-menu.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./useThemedStyles-C2-V1GJa.js";
|
|
2
|
-
import "./Switch-
|
|
3
|
-
import "./
|
|
4
|
-
import "./
|
|
5
|
-
import "./
|
|
6
|
-
import "./
|
|
7
|
-
import "./BasePopover-
|
|
8
|
-
import { n as types_exports, t as ContextMenu } from "./ContextMenu-
|
|
2
|
+
import "./Switch-CIVBbhne.js";
|
|
3
|
+
import "./Typography-BTM9_PzE.js";
|
|
4
|
+
import "./useDismiss-DU3sm3Wt.js";
|
|
5
|
+
import "./useFloating-D8XvrX3y.js";
|
|
6
|
+
import "./Popover-Ca6y8mp2.js";
|
|
7
|
+
import "./BasePopover-8DnU_4ZE.js";
|
|
8
|
+
import { n as types_exports, t as ContextMenu } from "./ContextMenu-C9wbwxr4.js";
|
|
9
9
|
|
|
10
10
|
export { ContextMenu, types_exports as ContextMenuTypes };
|
package/dist/date-picker.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import "./useThemedStyles-C2-V1GJa.js";
|
|
2
|
-
import "./
|
|
3
|
-
import "./
|
|
4
|
-
import "./
|
|
5
|
-
import "./
|
|
6
|
-
import "./
|
|
7
|
-
import { n as types_exports, t as DatePicker } from "./DatePicker-
|
|
8
|
-
import "./BasePopover-
|
|
9
|
-
import "./Label-
|
|
2
|
+
import "./Typography-BTM9_PzE.js";
|
|
3
|
+
import "./useDismiss-DU3sm3Wt.js";
|
|
4
|
+
import "./useFloating-D8XvrX3y.js";
|
|
5
|
+
import "./Popover-Ca6y8mp2.js";
|
|
6
|
+
import "./Icon-B_-jkpZe.js";
|
|
7
|
+
import { n as types_exports, t as DatePicker } from "./DatePicker-BMjFyNnT.js";
|
|
8
|
+
import "./BasePopover-8DnU_4ZE.js";
|
|
9
|
+
import "./Label-BIHK45eW.js";
|
|
10
10
|
import "./ErrorMessage-BlKbgDGA.js";
|
|
11
11
|
import "./Loader-COoEBdxD.js";
|
|
12
|
-
import "./Button-
|
|
12
|
+
import "./Button-Bt0n0YRS.js";
|
|
13
13
|
import "./MaskModule-_W1aSkxF.js";
|
|
14
14
|
|
|
15
15
|
export { DatePicker, types_exports as DatePickerTypes };
|
|
@@ -27,7 +27,7 @@ declare function createSelectStyles(props: SelectProps): {
|
|
|
27
27
|
opacity: number;
|
|
28
28
|
cursor: "not-allowed" | "pointer" | "progress";
|
|
29
29
|
boxShadow: "var(--px-shadow-default)";
|
|
30
|
-
borderColor: "var(--px-
|
|
30
|
+
borderColor: "var(--px-border-primary)" | "var(--px-color-error)";
|
|
31
31
|
__rules: {
|
|
32
32
|
'&:focus-within': {
|
|
33
33
|
outlineOffset: string;
|
|
@@ -50,6 +50,18 @@ declare function createSelectStyles(props: SelectProps): {
|
|
|
50
50
|
panel: {
|
|
51
51
|
width: string;
|
|
52
52
|
};
|
|
53
|
+
contentValueImage: {
|
|
54
|
+
display: "flex";
|
|
55
|
+
flexDirection: "row";
|
|
56
|
+
alignItems: "center";
|
|
57
|
+
columnGap: string;
|
|
58
|
+
};
|
|
59
|
+
iconContainer: {
|
|
60
|
+
display: "flex";
|
|
61
|
+
justifyContent: "center";
|
|
62
|
+
alignItems: "center";
|
|
63
|
+
maxWidth: string;
|
|
64
|
+
};
|
|
53
65
|
};
|
|
54
66
|
declare namespace types_d_exports {
|
|
55
67
|
export { SelectOption, SelectProps };
|
|
@@ -83,10 +95,11 @@ interface SelectProps extends LayoutProps, MarginProps {
|
|
|
83
95
|
interface SelectOption {
|
|
84
96
|
label: string;
|
|
85
97
|
value: string;
|
|
98
|
+
startIcon?: React.ReactNode;
|
|
86
99
|
}
|
|
87
100
|
//#endregion
|
|
88
101
|
//#region src/components/commons/inputs/Select/index.d.ts
|
|
89
102
|
declare const Select: React$1.FC<SelectProps>;
|
|
90
103
|
//#endregion
|
|
91
104
|
export { types_d_exports as n, Select as t };
|
|
92
|
-
//# sourceMappingURL=index-
|
|
105
|
+
//# sourceMappingURL=index-BDhzbGaA.d.ts.map
|
|
@@ -2,6 +2,7 @@ import React from "react";
|
|
|
2
2
|
|
|
3
3
|
//#region src/components/commons/toolkit/Switch/types.d.ts
|
|
4
4
|
interface SwitchThumbProps {
|
|
5
|
+
label?: string;
|
|
5
6
|
checked: boolean;
|
|
6
7
|
colorIndicator?: string;
|
|
7
8
|
colorActive?: string;
|
|
@@ -13,4 +14,4 @@ interface SwitchThumbProps {
|
|
|
13
14
|
declare const Switch: React.FC<SwitchThumbProps>;
|
|
14
15
|
//#endregion
|
|
15
16
|
export { Switch as t };
|
|
16
|
-
//# sourceMappingURL=index-
|
|
17
|
+
//# sourceMappingURL=index-BZTLZhoa.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as TypeStyles } from "./useThemedStyles-BmCyHvYs.js";
|
|
2
2
|
import { n as Placement } from "./types-DOVvAept.js";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/commons/toolkit/ContextMenu/styles.d.ts
|
|
7
7
|
declare function createContextMenuStyles<T>(_props: ContextMenuProps<T>): {
|
|
@@ -68,7 +68,7 @@ interface ContextMenuProps<T> {
|
|
|
68
68
|
}
|
|
69
69
|
//#endregion
|
|
70
70
|
//#region src/components/commons/toolkit/ContextMenu/index.d.ts
|
|
71
|
-
declare const ContextMenu: <T extends string>(props: ContextMenuProps<T>) =>
|
|
71
|
+
declare const ContextMenu: <T extends string>(props: ContextMenuProps<T>) => react_jsx_runtime0.JSX.Element;
|
|
72
72
|
//#endregion
|
|
73
73
|
export { types_d_exports as n, ContextMenu as t };
|
|
74
|
-
//# sourceMappingURL=index-
|
|
74
|
+
//# sourceMappingURL=index-C_M4hYmf.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as TextProps } from "./styleProps-BA0nnV0Y.js";
|
|
2
2
|
import { r as TypeStyles } from "./useThemedStyles-BmCyHvYs.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/components/commons/inputs/TextArea/styles.d.ts
|
|
6
6
|
declare function createTextAreaStyles(props: TextAreaProps): {
|
|
@@ -27,7 +27,7 @@ declare function createTextAreaStyles(props: TextAreaProps): {
|
|
|
27
27
|
fontWeight: "400";
|
|
28
28
|
fontSize: string;
|
|
29
29
|
color: "var(--px-text-primary)";
|
|
30
|
-
borderColor: "var(--px-
|
|
30
|
+
borderColor: "var(--px-border-primary)" | "var(--px-color-error)";
|
|
31
31
|
outlineOffset: string;
|
|
32
32
|
cursor: "default" | undefined;
|
|
33
33
|
__rules: {
|
|
@@ -67,7 +67,7 @@ interface TextAreaProps {
|
|
|
67
67
|
}
|
|
68
68
|
//#endregion
|
|
69
69
|
//#region src/components/commons/inputs/TextArea/index.d.ts
|
|
70
|
-
declare const TextArea: (props: TextAreaProps) =>
|
|
70
|
+
declare const TextArea: (props: TextAreaProps) => react_jsx_runtime1.JSX.Element;
|
|
71
71
|
//#endregion
|
|
72
72
|
export { TextArea as t };
|
|
73
|
-
//# sourceMappingURL=index-
|
|
73
|
+
//# sourceMappingURL=index-Cocx24nH.d.ts.map
|
|
@@ -22,7 +22,7 @@ declare function createInputStyles(props: InputProps): {
|
|
|
22
22
|
padding: string;
|
|
23
23
|
opacity: number;
|
|
24
24
|
boxShadow: "var(--px-shadow-default)";
|
|
25
|
-
borderColor: "var(--px-
|
|
25
|
+
borderColor: "var(--px-border-primary)" | "var(--px-color-error)";
|
|
26
26
|
__rules: {
|
|
27
27
|
'&:focus-within': {
|
|
28
28
|
outlineOffset: string;
|
|
@@ -103,4 +103,4 @@ interface InputMethods {
|
|
|
103
103
|
declare const Input: react0.ForwardRefExoticComponent<InputProps & react0.RefAttributes<InputMethods>>;
|
|
104
104
|
//#endregion
|
|
105
105
|
export { Input as t };
|
|
106
|
-
//# sourceMappingURL=index-
|
|
106
|
+
//# sourceMappingURL=index-goekpccU.d.ts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -5,11 +5,11 @@ import { n as types_d_exports$1, t as ColorPicker } from "./index-IRwLCtr6.js";
|
|
|
5
5
|
import { n as types_d_exports$4 } from "./types-DsHO3o0W.js";
|
|
6
6
|
import { n as types_d_exports$3, t as DatePicker } from "./index-CYAtenGA.js";
|
|
7
7
|
import { n as Locale, r as MaskType, t as MaskModule } from "./index-YmSxAVca.js";
|
|
8
|
-
import { t as Input } from "./index-
|
|
8
|
+
import { t as Input } from "./index-goekpccU.js";
|
|
9
9
|
import { t as SearchInput } from "./index-3xu8OVrG.js";
|
|
10
|
-
import { n as types_d_exports$5, t as Select } from "./index-
|
|
10
|
+
import { n as types_d_exports$5, t as Select } from "./index-BDhzbGaA.js";
|
|
11
11
|
import { t as index_d_exports } from "./index-jJAJfSGh.js";
|
|
12
|
-
import { t as TextArea } from "./index-
|
|
12
|
+
import { t as TextArea } from "./index-Cocx24nH.js";
|
|
13
13
|
import { t as Popover } from "./index-BC4vBeyW.js";
|
|
14
14
|
import { t as BasePopover } from "./index-T_MMQOp-.js";
|
|
15
15
|
import { t as Breadcrumb } from "./index-DTykQKAL.js";
|
|
@@ -19,11 +19,11 @@ import { t as Checkbox } from "./index-D2O6oLka.js";
|
|
|
19
19
|
import { r as types_d_exports } from "./types-BMD9Opqm.js";
|
|
20
20
|
import { Chip } from "./chip.js";
|
|
21
21
|
import { t as ChipList } from "./index-BJwLC4k9.js";
|
|
22
|
-
import { n as types_d_exports$2, t as ContextMenu } from "./index-
|
|
22
|
+
import { n as types_d_exports$2, t as ContextMenu } from "./index-C_M4hYmf.js";
|
|
23
23
|
import { InfoSummary, InfoSummaryItem, InfoSummaryProps } from "./info-summary.js";
|
|
24
24
|
import { t as Pagination } from "./index-DV7CHzMN.js";
|
|
25
25
|
import { ScrollPaginationContainer } from "./scroll-pagination-container.js";
|
|
26
|
-
import { t as Switch } from "./index-
|
|
26
|
+
import { t as Switch } from "./index-BZTLZhoa.js";
|
|
27
27
|
import { n as types_d_exports$6, t as TabSwitch } from "./index-NrJMrnzL.js";
|
|
28
28
|
import { Typography } from "./typography.js";
|
|
29
29
|
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-BAScxlcW.js";
|
package/dist/index.js
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import "./useThemedStyles-C2-V1GJa.js";
|
|
2
|
-
import { t as Switch } from "./Switch-
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import {
|
|
6
|
-
import "./
|
|
7
|
-
import
|
|
8
|
-
import { t as Checkbox } from "./Checkbox-
|
|
9
|
-
import { n as types_exports$3, t as DatePicker } from "./DatePicker-
|
|
2
|
+
import { t as Switch } from "./Switch-CIVBbhne.js";
|
|
3
|
+
import { t as Typography } from "./Typography-BTM9_PzE.js";
|
|
4
|
+
import { t as useDismiss } from "./useDismiss-DU3sm3Wt.js";
|
|
5
|
+
import { t as useFloating } from "./useFloating-D8XvrX3y.js";
|
|
6
|
+
import { n as types_exports$4, t as Popover } from "./Popover-Ca6y8mp2.js";
|
|
7
|
+
import "./Icon-B_-jkpZe.js";
|
|
8
|
+
import { t as Checkbox } from "./Checkbox-MBu-eqhs.js";
|
|
9
|
+
import { n as types_exports$3, t as DatePicker } from "./DatePicker-BMjFyNnT.js";
|
|
10
10
|
import { n as useTheme, t as ThemeProvider } from "./ThemeContext-CwpLofGu.js";
|
|
11
|
-
import { n as types_exports$7, t as TabSwitch } from "./TabSwitch-
|
|
12
|
-
import { t as CheckItem } from "./CheckItem-
|
|
13
|
-
import { t as InfoSummary } from "./InfoSummary-
|
|
14
|
-
import { t as BasePopover } from "./BasePopover-
|
|
15
|
-
import { n as types_exports$2, t as ContextMenu } from "./ContextMenu-
|
|
16
|
-
import { n as types_exports, t as Chip } from "./Chip-
|
|
17
|
-
import "./Label-
|
|
11
|
+
import { n as types_exports$7, t as TabSwitch } from "./TabSwitch-CVngRFFe.js";
|
|
12
|
+
import { t as CheckItem } from "./CheckItem-D4FQlFVr.js";
|
|
13
|
+
import { t as InfoSummary } from "./InfoSummary-DjhdozE3.js";
|
|
14
|
+
import { t as BasePopover } from "./BasePopover-8DnU_4ZE.js";
|
|
15
|
+
import { n as types_exports$2, t as ContextMenu } from "./ContextMenu-C9wbwxr4.js";
|
|
16
|
+
import { n as types_exports, t as Chip } from "./Chip-DVyLeXhu.js";
|
|
17
|
+
import "./Label-BIHK45eW.js";
|
|
18
18
|
import "./ErrorMessage-BlKbgDGA.js";
|
|
19
|
-
import { t as ChipList } from "./ChipList-
|
|
19
|
+
import { t as ChipList } from "./ChipList-SJPLLogY.js";
|
|
20
20
|
import { t as IconButton } from "./IconButton-DstAIotD.js";
|
|
21
|
-
import { t as Pagination } from "./Pagination-
|
|
21
|
+
import { t as Pagination } from "./Pagination-CLQ-I-Ll.js";
|
|
22
22
|
import "./Loader-COoEBdxD.js";
|
|
23
|
-
import { t as Button } from "./Button-
|
|
23
|
+
import { t as Button } from "./Button-Bt0n0YRS.js";
|
|
24
24
|
import { n as types_exports$5, t as ScrollPaginationContainer } from "./ScrollPaginationContainer-CMpmFODW.js";
|
|
25
25
|
import { a as Locale, o as MaskType, s as MaskModule } from "./MaskModule-_W1aSkxF.js";
|
|
26
|
-
import { t as Input } from "./Input-
|
|
27
|
-
import { n as types_exports$6, t as Select } from "./Select-
|
|
28
|
-
import { t as TextArea } from "./TextArea-
|
|
29
|
-
import { t as SearchInput } from "./SearchInput-
|
|
30
|
-
import { n as types_exports$1, t as ColorPicker } from "./ColorPicker-
|
|
26
|
+
import { t as Input } from "./Input-WKAFbfzS.js";
|
|
27
|
+
import { n as types_exports$6, t as Select } from "./Select-HUf25HtQ.js";
|
|
28
|
+
import { t as TextArea } from "./TextArea-B0chOPGK.js";
|
|
29
|
+
import { t as SearchInput } from "./SearchInput-N6NU3ljd.js";
|
|
30
|
+
import { n as types_exports$1, t as ColorPicker } from "./ColorPicker-CoW1U32M.js";
|
|
31
31
|
import { t as Skeleton } from "./Skeleton-CK7nXld2.js";
|
|
32
32
|
import { useVirtualAnchor } from "./use-virtual-anchor.js";
|
|
33
|
-
import { t as Breadcrumb } from "./Breadcrumb-
|
|
33
|
+
import { t as Breadcrumb } from "./Breadcrumb-26GLzOFf.js";
|
|
34
34
|
|
|
35
35
|
export { BasePopover, Breadcrumb, Button, CheckItem, Checkbox, Chip, ChipList, types_exports as ChipTypes, ColorPicker, types_exports$1 as ColorPickerTypes, ContextMenu, types_exports$2 as ContextMenuTypes, DatePicker, types_exports$3 as DatePickerTypes, IconButton, InfoSummary, Input, Locale, MaskModule, MaskType, Pagination, Popover, types_exports$4 as PopoverTypes, ScrollPaginationContainer, types_exports$5 as ScrollPaginationContainerTypes, SearchInput, Select, types_exports$6 as SelectTypes, Skeleton, Switch, TabSwitch, types_exports$7 as TabSwitchTypes, TextArea, ThemeProvider, Typography, useDismiss, useFloating, useTheme, useVirtualAnchor };
|
package/dist/info-summary.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./useThemedStyles-C2-V1GJa.js";
|
|
2
|
-
import "./Typography-
|
|
3
|
-
import { t as InfoSummary } from "./InfoSummary-
|
|
2
|
+
import "./Typography-BTM9_PzE.js";
|
|
3
|
+
import { t as InfoSummary } from "./InfoSummary-DjhdozE3.js";
|
|
4
4
|
|
|
5
5
|
export { InfoSummary };
|
package/dist/input.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Input } from "./index-
|
|
1
|
+
import { t as Input } from "./index-goekpccU.js";
|
|
2
2
|
export { Input };
|
package/dist/input.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./useThemedStyles-C2-V1GJa.js";
|
|
2
|
-
import "./
|
|
3
|
-
import "./
|
|
4
|
-
import "./Label-
|
|
2
|
+
import "./Typography-BTM9_PzE.js";
|
|
3
|
+
import "./Icon-B_-jkpZe.js";
|
|
4
|
+
import "./Label-BIHK45eW.js";
|
|
5
5
|
import "./ErrorMessage-BlKbgDGA.js";
|
|
6
6
|
import "./MaskModule-_W1aSkxF.js";
|
|
7
|
-
import { t as Input } from "./Input-
|
|
7
|
+
import { t as Input } from "./Input-WKAFbfzS.js";
|
|
8
8
|
|
|
9
9
|
export { Input };
|
package/dist/pagination.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./useThemedStyles-C2-V1GJa.js";
|
|
2
|
-
import "./
|
|
3
|
-
import "./
|
|
2
|
+
import "./Typography-BTM9_PzE.js";
|
|
3
|
+
import "./Icon-B_-jkpZe.js";
|
|
4
4
|
import "./IconButton-DstAIotD.js";
|
|
5
|
-
import { t as Pagination } from "./Pagination-
|
|
5
|
+
import { t as Pagination } from "./Pagination-CLQ-I-Ll.js";
|
|
6
6
|
import "./Loader-COoEBdxD.js";
|
|
7
|
-
import "./Button-
|
|
7
|
+
import "./Button-Bt0n0YRS.js";
|
|
8
8
|
|
|
9
9
|
export { Pagination };
|