@veracity/vui 4.1.0-alpha.381237.2603160811 → 4.1.0-alpha.381237.2603160927
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/input/consts.js +1 -1
- package/dist/input/consts.js.map +1 -1
- package/dist/input/theme.js +1 -0
- package/dist/input/theme.js.map +1 -1
- package/dist/label/label.js +3 -2
- package/dist/label/label.js.map +1 -1
- package/dist/theme/components.d.ts +3 -0
- package/dist/theme/defaultTheme.d.ts +3 -0
- package/package.json +2 -3
package/dist/input/consts.js
CHANGED
package/dist/input/consts.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consts.js","names":[],"sources":["../../src/input/consts.ts"],"sourcesContent":["export const inputColors = {\n border: 'sandstone.60',\n placeholder: 'sandstone.55',\n inputText: 'sandstone.10',\n helpText: 'sandstone.30',\n icons: '
|
|
1
|
+
{"version":3,"file":"consts.js","names":[],"sources":["../../src/input/consts.ts"],"sourcesContent":["export const inputColors = {\n border: 'sandstone.60',\n placeholder: 'sandstone.55',\n inputText: 'sandstone.10',\n helpText: 'sandstone.30',\n icons: 'warmGrey.30',\n disabled: 'sandstone.95',\n focus: 'focusColor',\n error: 'energyRed.45',\n loading: 'seaBlue.80',\n success: 'landGreen.35',\n} as const\n\nexport const stateIcons = {\n error: 'uiExclamationTriangle',\n loading: 'uiSpinnerThird',\n success: 'uiCheck',\n} as const\n\nexport const inputStateMapping: Record<string, { variant?: string; iconProps: object }> = {\n error: {\n variant: 'red',\n iconProps: {\n color: inputColors.error,\n name: stateIcons.error,\n },\n },\n loading: {\n variant: 'grey',\n iconProps: {\n animation: 'vui-spin 0.6s linear infinite',\n name: stateIcons.loading,\n pathFill: [inputColors.loading, inputColors.icons],\n },\n },\n success: {\n variant: 'green',\n iconProps: {\n color: inputColors.success,\n name: stateIcons.success,\n },\n },\n}\n\nexport const displayValueOnlyTextSize = {\n sm: 'xs',\n md: 'sm',\n lg: 'md',\n xl: 'lg',\n} as const\n\nexport const clearIconSize = {\n sm: 'sm',\n md: 'sm',\n lg: 'sm',\n xl: 'md',\n} as const\n\nexport const helpTextSize = {\n sm: 'sm',\n md: 'sm',\n lg: 'md',\n xl: 'md',\n} as const\n\nexport const helpTextMargin = '60px' as const\n"],"mappings":";AAAA,MAAa,cAAc;CACzB,QAAQ;CACR,aAAa;CACb,WAAW;CACX,UAAU;CACV,OAAO;CACP,UAAU;CACV,OAAO;CACP,OAAO;CACP,SAAS;CACT,SAAS;CACV;AAED,MAAa,aAAa;CACxB,OAAO;CACP,SAAS;CACT,SAAS;CACV;AAED,MAAa,oBAA6E;CACxF,OAAO;EACL,SAAS;EACT,WAAW;GACT,OAAO,YAAY;GACnB,MAAM,WAAW;GAClB;EACF;CACD,SAAS;EACP,SAAS;EACT,WAAW;GACT,WAAW;GACX,MAAM,WAAW;GACjB,UAAU,CAAC,YAAY,SAAS,YAAY,MAAM;GACnD;EACF;CACD,SAAS;EACP,SAAS;EACT,WAAW;GACT,OAAO,YAAY;GACnB,MAAM,WAAW;GAClB;EACF;CACF;AAED,MAAa,2BAA2B;CACtC,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACL;AAED,MAAa,gBAAgB;CAC3B,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACL;AAED,MAAa,eAAe;CAC1B,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACL;AAED,MAAa,iBAAiB"}
|
package/dist/input/theme.js
CHANGED
package/dist/input/theme.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.js","names":[],"sources":["../../src/input/theme.ts"],"sourcesContent":["import { inputColors } from './consts'\n\nconst baseStyle = {\n container: {\n focusWithinRing: 3,\n color: inputColors.inputText,\n fontSize: 'lg',\n lineHeight: '135%',\n },\n input: {\n placeholderTextColor: inputColors.placeholder,\n },\n}\n\nconst defaultProps = {\n size: 'lg',\n variant: 'grey',\n}\n\nconst parts = ['container', 'icon', 'input', 'label']\n\nconst sizes = {\n sm: {\n container: {\n fontSize: 'sm',\n h: 24,\n },\n icon: {\n size: 'xs',\n },\n input: {},\n label: {\n fontSize: 'sm',\n },\n },\n md: {\n container: {\n fontSize: 'md',\n h: 32,\n },\n icon: {\n size: 'sm',\n },\n input: {},\n label: {\n fontSize: 'md',\n },\n },\n lg: {\n container: {\n fontSize: 'md',\n h: 40,\n },\n icon: {\n size: 'md',\n },\n input: {},\n label: {\n fontSize: 'md',\n },\n },\n xl: {\n container: {\n fontSize: 'lg',\n h: 48,\n },\n icon: {\n size: 'lg',\n },\n input: {},\n label: {\n fontSize: 'md',\n },\n },\n}\n\nconst variants = {\n grey: {\n container: {\n borderColor: inputColors.border,\n focusWithinRingColor: inputColors.focus,\n },\n },\n green: {\n container: {\n borderColor: inputColors.success,\n focusWithinRingColor: inputColors.success,\n },\n },\n red: {\n container: {\n borderColor: inputColors.error,\n focusWithinRingColor: inputColors.error,\n },\n },\n}\n\nexport default {\n baseStyle,\n defaultProps,\n parts,\n sizes,\n variants,\n}\n"],"mappings":";;;AAEA,MAAM,YAAY;CAChB,WAAW;EACT,iBAAiB;EACjB,OAAO,YAAY;EACnB,UAAU;EACV,YAAY;EACb;CACD,OAAO,EACL,sBAAsB,YAAY,aACnC;CACF;AAED,MAAM,eAAe;CACnB,MAAM;CACN,SAAS;CACV;AAED,MAAM,QAAQ;CAAC;CAAa;CAAQ;CAAS;CAAQ;AAErD,MAAM,QAAQ;CACZ,IAAI;EACF,WAAW;GACT,UAAU;GACV,GAAG;GACJ;EACD,MAAM,EACJ,MAAM,MACP;EACD,OAAO,EAAE;EACT,OAAO,EACL,UAAU,MACX;EACF;CACD,IAAI;EACF,WAAW;GACT,UAAU;GACV,GAAG;GACJ;EACD,MAAM,EACJ,MAAM,MACP;EACD,OAAO,EAAE;EACT,OAAO,EACL,UAAU,MACX;EACF;CACD,IAAI;EACF,WAAW;GACT,UAAU;GACV,GAAG;GACJ;EACD,MAAM,EACJ,MAAM,MACP;EACD,OAAO,EAAE;EACT,OAAO,EACL,UAAU,MACX;EACF;CACD,IAAI;EACF,WAAW;GACT,UAAU;GACV,GAAG;GACJ;EACD,MAAM,EACJ,MAAM,MACP;EACD,OAAO,EAAE;EACT,OAAO,EACL,UAAU,MACX;EACF;CACF;AAED,MAAM,WAAW;CACf,MAAM,EACJ,WAAW;EACT,aAAa,YAAY;EACzB,sBAAsB,YAAY;EACnC,EACF;CACD,OAAO,EACL,WAAW;EACT,aAAa,YAAY;EACzB,sBAAsB,YAAY;EACnC,EACF;CACD,KAAK,EACH,WAAW;EACT,aAAa,YAAY;EACzB,sBAAsB,YAAY;EACnC,EACF;CACF;AAED,oBAAe;CACb;CACA;CACA;CACA;CACA;CACD"}
|
|
1
|
+
{"version":3,"file":"theme.js","names":[],"sources":["../../src/input/theme.ts"],"sourcesContent":["import { inputColors } from './consts'\n\nconst baseStyle = {\n container: {\n focusWithinRing: 3,\n color: inputColors.inputText,\n fontSize: 'lg',\n lineHeight: '135%',\n },\n icon: {\n color: inputColors.icons,\n },\n input: {\n placeholderTextColor: inputColors.placeholder,\n },\n}\n\nconst defaultProps = {\n size: 'lg',\n variant: 'grey',\n}\n\nconst parts = ['container', 'icon', 'input', 'label']\n\nconst sizes = {\n sm: {\n container: {\n fontSize: 'sm',\n h: 24,\n },\n icon: {\n size: 'xs',\n },\n input: {},\n label: {\n fontSize: 'sm',\n },\n },\n md: {\n container: {\n fontSize: 'md',\n h: 32,\n },\n icon: {\n size: 'sm',\n },\n input: {},\n label: {\n fontSize: 'md',\n },\n },\n lg: {\n container: {\n fontSize: 'md',\n h: 40,\n },\n icon: {\n size: 'md',\n },\n input: {},\n label: {\n fontSize: 'md',\n },\n },\n xl: {\n container: {\n fontSize: 'lg',\n h: 48,\n },\n icon: {\n size: 'lg',\n },\n input: {},\n label: {\n fontSize: 'md',\n },\n },\n}\n\nconst variants = {\n grey: {\n container: {\n borderColor: inputColors.border,\n focusWithinRingColor: inputColors.focus,\n },\n },\n green: {\n container: {\n borderColor: inputColors.success,\n focusWithinRingColor: inputColors.success,\n },\n },\n red: {\n container: {\n borderColor: inputColors.error,\n focusWithinRingColor: inputColors.error,\n },\n },\n}\n\nexport default {\n baseStyle,\n defaultProps,\n parts,\n sizes,\n variants,\n}\n"],"mappings":";;;AAEA,MAAM,YAAY;CAChB,WAAW;EACT,iBAAiB;EACjB,OAAO,YAAY;EACnB,UAAU;EACV,YAAY;EACb;CACD,MAAM,EACJ,OAAO,YAAY,OACpB;CACD,OAAO,EACL,sBAAsB,YAAY,aACnC;CACF;AAED,MAAM,eAAe;CACnB,MAAM;CACN,SAAS;CACV;AAED,MAAM,QAAQ;CAAC;CAAa;CAAQ;CAAS;CAAQ;AAErD,MAAM,QAAQ;CACZ,IAAI;EACF,WAAW;GACT,UAAU;GACV,GAAG;GACJ;EACD,MAAM,EACJ,MAAM,MACP;EACD,OAAO,EAAE;EACT,OAAO,EACL,UAAU,MACX;EACF;CACD,IAAI;EACF,WAAW;GACT,UAAU;GACV,GAAG;GACJ;EACD,MAAM,EACJ,MAAM,MACP;EACD,OAAO,EAAE;EACT,OAAO,EACL,UAAU,MACX;EACF;CACD,IAAI;EACF,WAAW;GACT,UAAU;GACV,GAAG;GACJ;EACD,MAAM,EACJ,MAAM,MACP;EACD,OAAO,EAAE;EACT,OAAO,EACL,UAAU,MACX;EACF;CACD,IAAI;EACF,WAAW;GACT,UAAU;GACV,GAAG;GACJ;EACD,MAAM,EACJ,MAAM,MACP;EACD,OAAO,EAAE;EACT,OAAO,EACL,UAAU,MACX;EACF;CACF;AAED,MAAM,WAAW;CACf,MAAM,EACJ,WAAW;EACT,aAAa,YAAY;EACzB,sBAAsB,YAAY;EACnC,EACF;CACD,OAAO,EACL,WAAW;EACT,aAAa,YAAY;EACzB,sBAAsB,YAAY;EACnC,EACF;CACD,KAAK,EACH,WAAW;EACT,aAAa,YAAY;EACzB,sBAAsB,YAAY;EACnC,EACF;CACF;AAED,oBAAe;CACb;CACA;CACA;CACA;CACA;CACD"}
|
package/dist/label/label.js
CHANGED
|
@@ -10,7 +10,7 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
|
10
10
|
//#region src/label/label.tsx
|
|
11
11
|
const LabelBase = styled.labelBox`
|
|
12
12
|
display: block;
|
|
13
|
-
color:
|
|
13
|
+
color: sandstone.10;
|
|
14
14
|
width: 100%;
|
|
15
15
|
|
|
16
16
|
&[aria-disabled='true'] {
|
|
@@ -41,7 +41,8 @@ const LabelContent = ({ text, markAsOptional, optionalText = "(optional)", toolt
|
|
|
41
41
|
children: /* @__PURE__ */ jsx(Tooltip, {
|
|
42
42
|
text: tooltipText,
|
|
43
43
|
children: /* @__PURE__ */ jsx(Icon, {
|
|
44
|
-
|
|
44
|
+
color: "seaBlue.28",
|
|
45
|
+
mb: "-3px",
|
|
45
46
|
name: "uiInfoCircle",
|
|
46
47
|
size: "xs",
|
|
47
48
|
role: "button"
|
package/dist/label/label.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"label.js","names":[],"sources":["../../src/label/label.tsx"],"sourcesContent":["import { omitThemingProps, styled, useStyleConfig, vui } from '../core'\nimport Icon from '../icon'\nimport type { SystemProps } from '../system'\nimport T from '../t'\nimport Tooltip from '../tooltip'\nimport { cs } from '../utils'\nimport type { LabelProps } from './label.types'\n\nexport const LabelBase = styled.labelBox`\n display: block;\n color:
|
|
1
|
+
{"version":3,"file":"label.js","names":[],"sources":["../../src/label/label.tsx"],"sourcesContent":["import { omitThemingProps, styled, useStyleConfig, vui } from '../core'\nimport Icon from '../icon'\nimport type { SystemProps } from '../system'\nimport T from '../t'\nimport Tooltip from '../tooltip'\nimport { cs } from '../utils'\nimport type { LabelProps } from './label.types'\n\nexport const LabelBase = styled.labelBox`\n display: block;\n color: sandstone.10;\n width: 100%;\n\n &[aria-disabled='true'] {\n color: sandstone.75;\n cursor: not-allowed;\n }\n`\n\ntype LabelContentProps = Pick<LabelProps, 'text' | 'markAsOptional' | 'optionalText' | 'tooltipText'> & {\n helperStyles: SystemProps\n}\n\nconst LabelContent = ({\n text,\n markAsOptional,\n optionalText = '(optional)',\n tooltipText,\n helperStyles,\n}: LabelContentProps) => {\n const textProps = { variant: 'label' as const, fontSize: 'inherit' as const }\n const helperProps = { ...textProps, ...helperStyles }\n\n return (\n <>\n <T {...textProps}>{text}</T>\n {!!text && markAsOptional && <T {...helperProps}>{optionalText}</T>}\n {!!text && !!tooltipText && (\n <T {...helperStyles}>\n <Tooltip text={tooltipText}>\n <Icon color=\"seaBlue.28\" mb=\"-3px\" name=\"uiInfoCircle\" size=\"xs\" role=\"button\" />\n </Tooltip>\n </T>\n )}\n </>\n )\n}\n\n/** Displays a label element, optionally with helper text, an optional indicator, and an info tooltip. */\nexport const Label = vui<'label', LabelProps>((props, ref) => {\n const { children, className, markAsOptional, optionalText, tooltipText, text, ...rest } = omitThemingProps(props)\n const styles = useStyleConfig('Label', props)\n\n return (\n <T as={LabelBase} className={cs('vui-label', className)} ref={ref} {...rest}>\n {children ?? (\n <LabelContent\n helperStyles={styles.helper}\n markAsOptional={markAsOptional}\n optionalText={optionalText}\n text={text}\n tooltipText={tooltipText}\n />\n )}\n </T>\n )\n})\n\nLabel.displayName = 'Label'\nexport default Label\n"],"mappings":";;;;;;;;;;AAQA,MAAa,YAAY,OAAO,QAAQ;;;;;;;;;;AAexC,MAAM,gBAAgB,EACpB,MACA,gBACA,eAAe,cACf,aACA,mBACuB;CACvB,MAAM,YAAY;EAAE,SAAS;EAAkB,UAAU;EAAoB;CAC7E,MAAM,cAAc;EAAE,GAAG;EAAW,GAAG;EAAc;AAErD,QACE;EACE,oBAAC;GAAE,GAAI;aAAY;IAAS;EAC3B,CAAC,CAAC,QAAQ,kBAAkB,oBAAC;GAAE,GAAI;aAAc;IAAiB;EAClE,CAAC,CAAC,QAAQ,CAAC,CAAC,eACX,oBAAC;GAAE,GAAI;aACL,oBAAC;IAAQ,MAAM;cACb,oBAAC;KAAK,OAAM;KAAa,IAAG;KAAO,MAAK;KAAe,MAAK;KAAK,MAAK;MAAW;KACzE;IACR;KAEL;;;AAKP,MAAa,QAAQ,KAA0B,OAAO,QAAQ;CAC5D,MAAM,EAAE,UAAU,WAAW,gBAAgB,cAAc,aAAa,MAAM,GAAG,SAAS,iBAAiB,MAAM;CACjH,MAAM,SAAS,eAAe,SAAS,MAAM;AAE7C,QACE,oBAAC;EAAE,IAAI;EAAW,WAAW,GAAG,aAAa,UAAU;EAAO;EAAK,GAAI;YACpE,YACC,oBAAC;GACC,cAAc,OAAO;GACL;GACF;GACR;GACO;IACb;GAEF;EAEN;AAEF,MAAM,cAAc"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veracity/vui",
|
|
3
|
-
"version": "4.1.0-alpha.381237.
|
|
3
|
+
"version": "4.1.0-alpha.381237.2603160927",
|
|
4
4
|
"description": "Veracity UI is a React component library crafted for use within Veracity applications and pages. Based on Styled Components and @xstyled.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Veracity",
|
|
@@ -62,7 +62,6 @@
|
|
|
62
62
|
"@floating-ui/core": "1.7.5",
|
|
63
63
|
"@floating-ui/dom": "1.7.6",
|
|
64
64
|
"@floating-ui/react-dom": "2.1.8",
|
|
65
|
-
"@floating-ui/utils": "0.2.11"
|
|
66
|
-
"csstype": "3.2.3"
|
|
65
|
+
"@floating-ui/utils": "0.2.11"
|
|
67
66
|
}
|
|
68
67
|
}
|