@newtonedev/components 0.1.14 → 0.1.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/composites/actions/Button/Button.d.ts +17 -30
  2. package/dist/composites/actions/Button/Button.d.ts.map +1 -1
  3. package/dist/composites/actions/Button/Button.styles.d.ts +12 -24
  4. package/dist/composites/actions/Button/Button.styles.d.ts.map +1 -1
  5. package/dist/composites/actions/Button/Button.types.d.ts +4 -13
  6. package/dist/composites/actions/Button/Button.types.d.ts.map +1 -1
  7. package/dist/composites/actions/Button/index.d.ts +1 -1
  8. package/dist/composites/actions/Button/index.d.ts.map +1 -1
  9. package/dist/index.cjs +120 -215
  10. package/dist/index.cjs.map +1 -1
  11. package/dist/index.d.ts +3 -3
  12. package/dist/index.d.ts.map +1 -1
  13. package/dist/index.js +117 -216
  14. package/dist/index.js.map +1 -1
  15. package/dist/primitives/Frame/Frame.d.ts.map +1 -1
  16. package/dist/registry/registry.d.ts.map +1 -1
  17. package/package.json +1 -1
  18. package/src/composites/actions/Button/Button.styles.ts +90 -198
  19. package/src/composites/actions/Button/Button.tsx +32 -49
  20. package/src/composites/actions/Button/Button.types.ts +4 -15
  21. package/src/composites/actions/Button/index.ts +1 -1
  22. package/src/index.ts +7 -1
  23. package/src/primitives/Frame/Frame.tsx +1 -0
  24. package/src/registry/registry.ts +5 -21
  25. package/dist/_COMPONENT_TEMPLATE/ComponentName.d.ts +0 -70
  26. package/dist/_COMPONENT_TEMPLATE/ComponentName.d.ts.map +0 -1
  27. package/dist/_COMPONENT_TEMPLATE/ComponentName.styles.d.ts +0 -23
  28. package/dist/_COMPONENT_TEMPLATE/ComponentName.styles.d.ts.map +0 -1
  29. package/dist/_COMPONENT_TEMPLATE/ComponentName.types.d.ts +0 -45
  30. package/dist/_COMPONENT_TEMPLATE/ComponentName.types.d.ts.map +0 -1
  31. package/dist/_COMPONENT_TEMPLATE/index.d.ts +0 -3
  32. package/dist/_COMPONENT_TEMPLATE/index.d.ts.map +0 -1
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export { NewtoneProvider, useNewtoneTheme, useScheme, FrameContext, useFrameContext, useBreakpoint, DEFAULT_THEME_CONFIG, DEFAULT_FONT_SIZES, DEFAULT_LINE_HEIGHTS, DEFAULT_ROLE_SCALES, useTokens, computeTokens, computeSwatches, computeColors, resolveTheme, PRIMARY_DEFAULTS, SECONDARY_DEFAULTS, TERTIARY_DEFAULTS, SUCCESS_DEFAULTS, WARNING_DEFAULTS, ERROR_DEFAULTS, DEFAULT_THEME_MAPPINGS, buildGoogleFontsUrl, measureAvgCharWidth, useLocalCalibration, useTypographyCalibrations, enqueueObservation, } from 'newtone-api';
2
- export type { ColorMode, ColorGamut, ElevationLevel, FrameElevation, ColorSystemConfig, ColorSystemPaletteConfig, NewtoneThemeConfig, NewtoneThemeContext, FontConfig, FontWeights, FontSlot, TokenColor, TokenName, ContrastLevel, PaletteId, ThemeName, AppearanceName, ColorRef, AppearanceMapping, ThemeMapping, ThemeMappings, FontSizeScale, LineHeightScale, RoleSizeStep, RoleScale, RoleScales, BreakpointKey, Breakpoints, BreakpointRoleScales, FontRuntimeMetrics, FrameContextValue, UseTokensResult, PaletteDefaults, ContrastLevelDefaults, SwatchDefaults, ResolvedTokens, ResolvedSwatches, PaletteColors, ContrastLevelColors, ElevationColors, ElevationName, AppearanceTokens, ThemeTokens, ResolvedColor, DynamicRange, ColorResult, Srgb, Oklch, HexColor, } from 'newtone-api';
1
+ export { NewtoneProvider, useNewtoneTheme, useScheme, FrameContext, useFrameContext, useBreakpoint, DEFAULT_THEME_CONFIG, DEFAULT_FONT_SIZES, DEFAULT_LINE_HEIGHTS, DEFAULT_ROLE_SCALES, useTokens, computeTokens, computeSwatches, computeColors, resolveTheme, PRIMARY_DEFAULTS, SECONDARY_DEFAULTS, TERTIARY_DEFAULTS, SUCCESS_DEFAULTS, WARNING_DEFAULTS, ERROR_DEFAULTS, NON_PRIMARY_RELATIVE_DEFAULTS, DEFAULT_THEME_MAPPINGS, buildGoogleFontsUrl, measureAvgCharWidth, useLocalCalibration, useTypographyCalibrations, enqueueObservation, } from 'newtone-api';
2
+ export type { ColorMode, ColorGamut, ElevationLevel, FrameElevation, ColorSystemConfig, ColorSystemPaletteConfig, NewtoneThemeConfig, NewtoneThemeContext, FontConfig, FontWeights, FontSlot, TokenColor, TokenName, SwatchSlotName, ContrastLevel, PaletteId, ThemeName, AppearanceName, ColorRef, AppearanceMapping, ThemeMapping, ThemeMappings, FontSizeScale, LineHeightScale, RoleSizeStep, RoleScale, RoleScales, BreakpointKey, Breakpoints, BreakpointRoleScales, FontRuntimeMetrics, FrameContextValue, UseTokensResult, PaletteDefaults, ContrastLevelDefaults, SwatchDefaults, RelativeContrastDefaults, RelativePaletteDefaults, PaletteKeySteps, RelativeSwatchDefaults, ResolvedTokens, ResolvedSwatches, PaletteColors, ContrastLevelColors, ElevationColors, ElevationName, AppearanceTokens, ThemeTokens, ResolvedColor, DynamicRange, ColorResult, Srgb, Oklch, HexColor, } from 'newtone-api';
3
3
  export { useFocusVisible } from './primitives/useFocusVisible';
4
4
  export type { FocusVisibleResult } from './primitives/useFocusVisible';
5
5
  export { Frame } from './primitives/Frame/Frame';
@@ -12,7 +12,7 @@ export type { WrapperProps } from './primitives/Wrapper/Wrapper.types';
12
12
  export { Text } from './primitives/Text';
13
13
  export type { TextProps, TextSize, TextWeight, TextColor, TextScope, TextRole, TextAlign, TextSpanProps, } from './primitives/Text';
14
14
  export { Button } from './composites/actions/Button/Button';
15
- export type { ButtonProps, ButtonVariant, ButtonSemantic, ButtonSize, ButtonIconPosition } from './composites/actions/Button/Button.types';
15
+ export type { ButtonProps, ButtonVariant, ButtonSize, ButtonIconPosition } from './composites/actions/Button/Button.types';
16
16
  export { Card } from './composites/layout/Card/Card';
17
17
  export type { CardProps } from './composites/layout/Card/Card.types';
18
18
  export { Chip } from './composites/display/Chip/Chip';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,eAAe,EACf,eAAe,EACf,SAAS,EACT,YAAY,EACZ,eAAe,EACf,aAAa,EACb,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,EACpB,mBAAmB,EACnB,SAAS,EACT,aAAa,EACb,eAAe,EACf,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,sBAAsB,EACtB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,yBAAyB,EACzB,kBAAkB,GACnB,MAAM,aAAa,CAAC;AACrB,YAAY,EACV,SAAS,EACT,UAAU,EACV,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,wBAAwB,EACxB,kBAAkB,EAClB,mBAAmB,EACnB,UAAU,EACV,WAAW,EACX,QAAQ,EACR,UAAU,EACV,SAAS,EACT,aAAa,EACb,SAAS,EACT,SAAS,EACT,cAAc,EACd,QAAQ,EACR,iBAAiB,EACjB,YAAY,EACZ,aAAa,EACb,aAAa,EACb,eAAe,EACf,YAAY,EACZ,SAAS,EACT,UAAU,EACV,aAAa,EACb,WAAW,EACX,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf,qBAAqB,EACrB,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,aAAa,EACb,mBAAmB,EACnB,eAAe,EACf,aAAa,EACb,gBAAgB,EAChB,WAAW,EACX,aAAa,EACb,YAAY,EACZ,WAAW,EACX,IAAI,EACJ,KAAK,EACL,QAAQ,GACT,MAAM,aAAa,CAAC;AAGrB,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,YAAY,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAEvE,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACjD,YAAY,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AC;AAG3E,OAAO,EAAE,YAAY,EAAE,MAAM,iDAAiD,CAAC;AAC/E,YAAY,EAAE,iBAAiB,EAAE,MAAM,uDAAuD,CAAC;AAE/F,OAAO,EAAE,YAAY,EAAE,MAAM,iDAAiD,CAAC;AAC/E,YAAY,EAAE,iBAAiB,EAAE,MAAM,uDAAuD,CAAC;AAG/F,YAAY,EACV,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,kBAAkB,EAClB,aAAa,EACb,mBAAmB,GACpB,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,UAAU,EACV,UAAU,EACV,YAAY,EACZ,WAAW,EACX,uBAAuB,EACvB,qBAAqB,EACrB,YAAY,GACb,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,eAAe,EACf,eAAe,EACf,SAAS,EACT,YAAY,EACZ,eAAe,EACf,aAAa,EACb,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,EACpB,mBAAmB,EACnB,SAAS,EACT,aAAa,EACb,eAAe,EACf,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,6BAA6B,EAC7B,sBAAsB,EACtB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,yBAAyB,EACzB,kBAAkB,GACnB,MAAM,aAAa,CAAC;AACrB,YAAY,EACV,SAAS,EACT,UAAU,EACV,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,wBAAwB,EACxB,kBAAkB,EAClB,mBAAmB,EACnB,UAAU,EACV,WAAW,EACX,QAAQ,EACR,UAAU,EACV,SAAS,EACT,cAAc,EACd,aAAa,EACb,SAAS,EACT,SAAS,EACT,cAAc,EACd,QAAQ,EACR,iBAAiB,EACjB,YAAY,EACZ,aAAa,EACb,aAAa,EACb,eAAe,EACf,YAAY,EACZ,SAAS,EACT,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AAEjF,OAAO,EAAE,SAAS,EAAE,MAAM,+CAA+C,CAAC;AAC1E,YAAY,EAAE,cAAc,EAAE,MAAM,qDAAqD,CAAC;AAE1F,OAAO,EAAE,gBAAgB,EAAE,MAAM,6DAA6D,CAAC;AAC/F,YAAY,EAAE,qBAAqB,EAAE,MAAM,mEAAmE,CAAC;AAE/G,OAAO,EAAE,QAAQ,EAAE,MAAM,uCAAuC,CAAC;AACjE,YAAY,EAAE,aAAa,EAAE,MAAM,6CAA6C,CAAC;AAEjF,OAAO,EAAE,OAAO,EAAE,MAAM,qCAAqC,CAAC;AAC9D,YAAY,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AAE9E,OAAO,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAC;AAC3D,YAAY,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAG3E,OAAO,EAAE,YAAY,EAAE,MAAM,iDAAiD,CAAC;AAC/E,YAAY,EAAE,iBAAiB,EAAE,MAAM,uDAAuD,CAAC;AAE/F,OAAO,EAAE,YAAY,EAAE,MAAM,iDAAiD,CAAC;AAC/E,YAAY,EAAE,iBAAiB,EAAE,MAAM,uDAAuD,CAAC;AAG/F,YAAY,EACV,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,kBAAkB,EAClB,aAAa,EACb,mBAAmB,GACpB,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,UAAU,EACV,UAAU,EACV,YAAY,EACZ,WAAW,EACX,uBAAuB,EACvB,qBAAqB,EACrB,YAAY,GACb,MAAM,YAAY,CAAC"}
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { useTokens, useNewtoneTheme, useFrameContext, useBreakpoint, useTypographyCalibrations, useLocalCalibration, enqueueObservation, computeTokens, _ThemeContext, FrameContext } from 'newtone-api';
2
- export { DEFAULT_FONT_SIZES, DEFAULT_LINE_HEIGHTS, DEFAULT_ROLE_SCALES, DEFAULT_THEME_CONFIG, DEFAULT_THEME_MAPPINGS, ERROR_DEFAULTS, FrameContext, NewtoneProvider, PRIMARY_DEFAULTS, SECONDARY_DEFAULTS, SUCCESS_DEFAULTS, TERTIARY_DEFAULTS, WARNING_DEFAULTS, buildGoogleFontsUrl, computeColors, computeSwatches, computeTokens, enqueueObservation, measureAvgCharWidth, resolveTheme, useBreakpoint, useFrameContext, useLocalCalibration, useNewtoneTheme, useScheme, useTokens, useTypographyCalibrations } from 'newtone-api';
2
+ export { DEFAULT_FONT_SIZES, DEFAULT_LINE_HEIGHTS, DEFAULT_ROLE_SCALES, DEFAULT_THEME_CONFIG, DEFAULT_THEME_MAPPINGS, ERROR_DEFAULTS, FrameContext, NON_PRIMARY_RELATIVE_DEFAULTS, NewtoneProvider, PRIMARY_DEFAULTS, SECONDARY_DEFAULTS, SUCCESS_DEFAULTS, TERTIARY_DEFAULTS, WARNING_DEFAULTS, buildGoogleFontsUrl, computeColors, computeSwatches, computeTokens, enqueueObservation, measureAvgCharWidth, resolveTheme, useBreakpoint, useFrameContext, useLocalCalibration, useNewtoneTheme, useScheme, useTokens, useTypographyCalibrations } from 'newtone-api';
3
3
  import React16, { createContext, useState, useMemo, useEffect, useContext, useCallback, useRef } from 'react';
4
4
  import { Text, View, Pressable, TextInput as TextInput$1, ScrollView, PanResponder, Animated, StyleSheet } from 'react-native';
5
5
  import { SEMANTIC_WEIGHT_MAP, ROLE_DEFAULT_WEIGHTS, BREAKPOINT_ROLE_SCALE, scaleRoleStep, resolveResponsiveSize, estimateLineWidths, REFERENCE_LINE_HEIGHT_RATIO, buildFontFeatureSettings } from '@newtonedev/fonts';
@@ -377,7 +377,8 @@ function Frame({
377
377
  resolvedConfig.typography,
378
378
  resolvedConfig.icons,
379
379
  resolvedConfig.themeMappings,
380
- resolvedConfig.swatchDefaults
380
+ resolvedConfig.swatchDefaults,
381
+ resolvedConfig.relativeSwatchDefaults
381
382
  );
382
383
  }, [resolvedConfig, mode, gamut, resolvedElevation]);
383
384
  const styles = useMemo(
@@ -957,64 +958,43 @@ var Text3 = Object.assign(TextBase, {
957
958
  });
958
959
 
959
960
  // src/composites/actions/Button/Button.styles.ts
961
+ var BUTTON_HEIGHTS = {
962
+ sm: 40,
963
+ md: 48,
964
+ lg: 56,
965
+ xl: 64
966
+ };
960
967
  function computeButtonPadding(size, hasIcon, hasText, iconPosition) {
961
968
  const basePadding = {
962
- sm: 8,
963
- md: 12,
964
- lg: 16
969
+ sm: 12,
970
+ md: 16,
971
+ lg: 20,
972
+ xl: 24
965
973
  };
966
974
  const base = basePadding[size];
967
975
  const textExtra = 8;
968
976
  if (!hasText && hasIcon) {
969
- return {
970
- paddingLeft: base,
971
- paddingRight: base,
972
- paddingTop: base,
973
- paddingBottom: base
974
- };
977
+ return { paddingLeft: base, paddingRight: base };
975
978
  }
976
979
  if (hasText && !hasIcon) {
977
- return {
978
- paddingLeft: base + textExtra,
979
- paddingRight: base + textExtra,
980
- paddingTop: base,
981
- paddingBottom: base
982
- };
980
+ return { paddingLeft: base + textExtra, paddingRight: base + textExtra };
983
981
  }
984
982
  if (hasText && hasIcon) {
985
983
  if (iconPosition === "left") {
986
- return {
987
- paddingLeft: base,
988
- paddingRight: base + textExtra,
989
- paddingTop: base,
990
- paddingBottom: base
991
- };
984
+ return { paddingLeft: base, paddingRight: base + textExtra };
992
985
  } else {
993
- return {
994
- paddingLeft: base + textExtra,
995
- paddingRight: base,
996
- paddingTop: base,
997
- paddingBottom: base
998
- };
986
+ return { paddingLeft: base + textExtra, paddingRight: base };
999
987
  }
1000
988
  }
1001
- return {
1002
- paddingLeft: base,
1003
- paddingRight: base,
1004
- paddingTop: base,
1005
- paddingBottom: base
1006
- };
1007
- }
1008
- function semanticToTheme(semantic) {
1009
- if (semantic === "accent") return "primary";
1010
- return semantic;
989
+ return { paddingLeft: base, paddingRight: base };
1011
990
  }
1012
- function getButtonConfig(variant, semantic, size, disabled, tokens) {
991
+ function getButtonConfig(variant, size, disabled, tokens, theme) {
1013
992
  const sizeConfig = getSizeConfig(size, tokens);
1014
- const variantColors = getVariantColors(variant, semantic, disabled, tokens);
993
+ const variantColors = getVariantColors(variant, disabled, tokens, theme);
1015
994
  return {
1016
995
  variantColors,
1017
996
  sizeTokens: {
997
+ height: sizeConfig.height,
1018
998
  padding: sizeConfig.padding,
1019
999
  gap: sizeConfig.gap,
1020
1000
  borderRadius: sizeConfig.borderRadius,
@@ -1026,147 +1006,89 @@ function getButtonConfig(variant, semantic, size, disabled, tokens) {
1026
1006
  function getSizeConfig(size, tokens) {
1027
1007
  const configs = {
1028
1008
  sm: {
1029
- padding: 8,
1009
+ height: BUTTON_HEIGHTS.sm,
1010
+ padding: 12,
1030
1011
  gap: tokens.spacing["08"],
1031
1012
  borderRadius: 8,
1032
1013
  textSize: "md",
1033
- // 16px
1034
- iconSize: 24
1014
+ iconSize: 20
1035
1015
  },
1036
1016
  md: {
1037
- padding: 12,
1017
+ height: BUTTON_HEIGHTS.md,
1018
+ padding: 16,
1038
1019
  gap: tokens.spacing["08"],
1039
1020
  borderRadius: 12,
1040
1021
  textSize: "md",
1041
- // 16px
1042
1022
  iconSize: 24
1043
1023
  },
1044
1024
  lg: {
1045
- padding: 16,
1025
+ height: BUTTON_HEIGHTS.lg,
1026
+ padding: 20,
1046
1027
  gap: tokens.spacing["08"],
1047
- borderRadius: 16,
1028
+ borderRadius: 14,
1048
1029
  textSize: "md",
1049
- // 16px
1030
+ iconSize: 24
1031
+ },
1032
+ xl: {
1033
+ height: BUTTON_HEIGHTS.xl,
1034
+ padding: 24,
1035
+ gap: tokens.spacing["08"],
1036
+ borderRadius: 16,
1037
+ textSize: "lg",
1050
1038
  iconSize: 24
1051
1039
  }
1052
1040
  };
1053
1041
  return configs[size];
1054
1042
  }
1055
- function getVariantColors(variant, semantic, disabled, tokens) {
1043
+ function getVariantColors(variant, disabled, tokens, theme) {
1044
+ const t = tokens.colors[theme];
1056
1045
  if (disabled) {
1057
- const baseColors = getVariantColorsForState(variant, semantic, tokens);
1058
- const disabledBg = tokens.colors.primary.main.fontSecondary;
1046
+ const baseColors = getVariantColorsForState(variant, tokens, theme);
1059
1047
  return {
1060
1048
  ...baseColors,
1061
- bg: disabledBg,
1062
- hoveredBg: disabledBg,
1063
- pressedBg: disabledBg,
1064
- textColor: tokens.colors.primary.main.fontTertiary,
1065
- iconColor: tokens.colors.primary.main.fontTertiary
1049
+ bg: "transparent",
1050
+ hoveredBg: "transparent",
1051
+ pressedBg: "transparent",
1052
+ textColor: t.main.fontDisabled,
1053
+ iconColor: t.main.fontDisabled,
1054
+ borderWidth: 1,
1055
+ borderColor: t.main.divider
1066
1056
  };
1067
1057
  }
1068
- return getVariantColorsForState(variant, semantic, tokens);
1058
+ return getVariantColorsForState(variant, tokens, theme);
1069
1059
  }
1070
- function getVariantColorsForState(variant, semantic, tokens) {
1060
+ function getVariantColorsForState(variant, tokens, theme) {
1061
+ const t = tokens.colors[theme];
1071
1062
  if (variant === "primary") {
1072
- if (semantic === "neutral") {
1073
- return {
1074
- bg: tokens.colors.primary.main.fontPrimary,
1075
- hoveredBg: tokens.colors.primary.main.fontSecondary,
1076
- pressedBg: tokens.colors.primary.main.fontPrimary,
1077
- textColor: tokens.colors.primary.main.divider,
1078
- iconColor: tokens.colors.primary.main.divider,
1079
- borderWidth: 1,
1080
- borderColor: "transparent"
1081
- };
1082
- }
1083
- const t = tokens.colors[semanticToTheme(semantic)];
1084
1063
  return {
1085
- bg: t.emphasis.background,
1086
- hoveredBg: t.emphasis.fontPrimary,
1087
- pressedBg: t.emphasis.fontSecondary,
1088
- textColor: t.main.background,
1089
- iconColor: t.main.background,
1090
- borderWidth: 1,
1064
+ bg: t.emphasis.actionEnabled,
1065
+ hoveredBg: t.emphasis.actionHovered,
1066
+ pressedBg: t.emphasis.actionPressed,
1067
+ textColor: t.emphasis.accentSmall,
1068
+ iconColor: t.emphasis.accentSmall,
1069
+ borderWidth: 0,
1091
1070
  borderColor: "transparent"
1092
1071
  };
1093
1072
  }
1094
1073
  if (variant === "secondary") {
1095
- if (semantic === "neutral") {
1096
- return {
1097
- bg: "transparent",
1098
- hoveredBg: tokens.colors.primary.main.fontPrimary,
1099
- pressedBg: tokens.colors.primary.main.fontSecondary,
1100
- textColor: tokens.colors.primary.main.divider,
1101
- iconColor: tokens.colors.primary.main.divider,
1102
- borderWidth: 1,
1103
- borderColor: tokens.colors.primary.main.fontSecondary
1104
- };
1105
- }
1106
- const t = tokens.colors[semanticToTheme(semantic)];
1107
- return {
1108
- bg: t.tinted.background,
1109
- hoveredBg: t.tinted.fontPrimary,
1110
- pressedBg: t.tinted.fontSecondary,
1111
- textColor: t.emphasis.divider,
1112
- iconColor: t.emphasis.divider,
1113
- borderWidth: 1,
1114
- borderColor: "transparent"
1115
- };
1116
- }
1117
- if (variant === "tertiary") {
1118
- if (semantic === "neutral") {
1119
- return {
1120
- bg: "transparent",
1121
- hoveredBg: tokens.colors.primary.main.fontPrimary,
1122
- pressedBg: tokens.colors.primary.main.fontSecondary,
1123
- textColor: tokens.colors.primary.main.divider,
1124
- iconColor: tokens.colors.primary.main.divider,
1125
- borderWidth: 1,
1126
- borderColor: "transparent"
1127
- };
1128
- }
1129
- const t = tokens.colors[semanticToTheme(semantic)];
1130
- return {
1131
- bg: "transparent",
1132
- hoveredBg: t.tinted.background,
1133
- pressedBg: t.tinted.fontPrimary,
1134
- textColor: t.emphasis.divider,
1135
- iconColor: t.emphasis.divider,
1136
- borderWidth: 1,
1137
- borderColor: "transparent"
1138
- };
1139
- }
1140
- if (variant === "link") {
1141
- if (semantic === "neutral") {
1142
- return {
1143
- bg: "transparent",
1144
- hoveredBg: "transparent",
1145
- pressedBg: "transparent",
1146
- textColor: tokens.colors.primary.main.fontSecondary,
1147
- iconColor: tokens.colors.primary.main.fontSecondary,
1148
- borderWidth: 0,
1149
- borderColor: "transparent"
1150
- };
1151
- }
1152
- const t = tokens.colors[semanticToTheme(semantic)];
1153
1074
  return {
1154
- bg: "transparent",
1155
- hoveredBg: "transparent",
1156
- pressedBg: "transparent",
1157
- textColor: t.emphasis.divider,
1158
- iconColor: t.emphasis.divider,
1075
+ bg: t.main.actionEnabled,
1076
+ hoveredBg: t.main.actionHovered,
1077
+ pressedBg: t.main.actionPressed,
1078
+ textColor: t.main.fontPrimary,
1079
+ iconColor: t.main.fontPrimary,
1159
1080
  borderWidth: 0,
1160
1081
  borderColor: "transparent"
1161
1082
  };
1162
1083
  }
1163
1084
  return {
1164
1085
  bg: "transparent",
1165
- hoveredBg: "transparent",
1166
- pressedBg: "transparent",
1167
- textColor: tokens.colors.primary.main.divider,
1168
- iconColor: tokens.colors.primary.main.divider,
1169
- borderWidth: 0
1086
+ hoveredBg: t.main.actionEnabled,
1087
+ pressedBg: t.main.actionHovered,
1088
+ textColor: t.main.fontSecondary,
1089
+ iconColor: t.main.fontSecondary,
1090
+ borderWidth: 0,
1091
+ borderColor: "transparent"
1170
1092
  };
1171
1093
  }
1172
1094
  function Button({
@@ -1174,7 +1096,6 @@ function Button({
1174
1096
  icon,
1175
1097
  iconPosition = "left",
1176
1098
  variant = "primary",
1177
- semantic = "neutral",
1178
1099
  size = "md",
1179
1100
  disabled = false,
1180
1101
  loading = false,
@@ -1184,58 +1105,54 @@ function Button({
1184
1105
  ...pressableProps
1185
1106
  }) {
1186
1107
  const tokens = useTokens();
1108
+ const frameCtx = useFrameContext();
1109
+ const theme = frameCtx?.theme ?? "primary";
1187
1110
  const isDisabled = disabled || loading;
1188
1111
  const { variantColors, sizeTokens } = React16.useMemo(
1189
- () => getButtonConfig(variant, semantic, size, isDisabled, tokens),
1190
- [variant, semantic, size, isDisabled, tokens]
1112
+ () => getButtonConfig(variant, size, isDisabled, tokens, theme),
1113
+ [variant, size, isDisabled, tokens, theme]
1191
1114
  );
1192
1115
  const padding = React16.useMemo(
1193
- () => variant === "link" ? { paddingLeft: 0, paddingRight: 0, paddingTop: 0, paddingBottom: 0 } : computeButtonPadding(size, !!icon, !!children, iconPosition),
1194
- [size, icon, children, iconPosition, variant]
1116
+ () => computeButtonPadding(size, !!icon, !!children, iconPosition),
1117
+ [size, icon, children, iconPosition]
1195
1118
  );
1196
- return /* @__PURE__ */ React16.createElement(Pressable, { disabled: isDisabled, ...pressableProps }, ({ pressed, hovered }) => (
1197
- // Wrapper handles layout: direction, gap, alignment (padding via style)
1198
- /* @__PURE__ */ React16.createElement(
1199
- Wrapper,
1119
+ return /* @__PURE__ */ React16.createElement(Pressable, { disabled: isDisabled, ...pressableProps }, ({ pressed, hovered }) => /* @__PURE__ */ React16.createElement(
1120
+ Wrapper,
1121
+ {
1122
+ direction: "horizontal",
1123
+ align: "center",
1124
+ justify: "center",
1125
+ gap: sizeTokens.gap,
1126
+ style: [
1127
+ {
1128
+ height: sizeTokens.height,
1129
+ paddingLeft: padding.paddingLeft,
1130
+ paddingRight: padding.paddingRight,
1131
+ backgroundColor: pressed && !isDisabled ? variantColors.pressedBg : hovered && !isDisabled ? variantColors.hoveredBg : variantColors.bg,
1132
+ borderRadius: sizeTokens.borderRadius,
1133
+ borderWidth: variantColors.borderWidth,
1134
+ borderColor: variantColors.borderColor || "transparent",
1135
+ opacity: isDisabled ? loading ? 0.6 : 0.4 : 1,
1136
+ ...fullWidth && { width: "100%", alignSelf: "stretch" }
1137
+ },
1138
+ ...Array.isArray(style) ? style : style ? [style] : []
1139
+ ]
1140
+ },
1141
+ icon && iconPosition === "left" && /* @__PURE__ */ React16.createElement(Icon, { name: icon, size: sizeTokens.iconSize, color: variantColors.iconColor }),
1142
+ children && /* @__PURE__ */ React16.createElement(
1143
+ Text3,
1200
1144
  {
1201
- direction: "horizontal",
1202
- align: "center",
1203
- justify: "center",
1204
- gap: sizeTokens.gap,
1145
+ role: "label",
1146
+ size: sizeTokens.textSize,
1147
+ centerVertically: true,
1205
1148
  style: [
1206
- {
1207
- ...padding,
1208
- // Asymmetric horizontal padding for text optical balance
1209
- backgroundColor: pressed && !isDisabled ? variantColors.pressedBg : hovered && !isDisabled ? variantColors.hoveredBg : variantColors.bg,
1210
- borderRadius: variant === "link" ? 0 : sizeTokens.borderRadius,
1211
- borderWidth: variantColors.borderWidth,
1212
- borderColor: variantColors.borderColor || "transparent",
1213
- opacity: isDisabled ? loading ? 0.6 : 0.4 : variant === "link" && pressed ? 0.7 : 1,
1214
- ...fullWidth && { width: "100%", alignSelf: "stretch" }
1215
- },
1216
- ...Array.isArray(style) ? style : style ? [style] : []
1149
+ { color: variantColors.textColor },
1150
+ ...Array.isArray(textStyle) ? textStyle : textStyle ? [textStyle] : []
1217
1151
  ]
1218
1152
  },
1219
- icon && iconPosition === "left" && /* @__PURE__ */ React16.createElement(Icon, { name: icon, size: sizeTokens.iconSize, color: variantColors.iconColor }),
1220
- children && // Text primitive with semantic props + color style override
1221
- /* @__PURE__ */ React16.createElement(
1222
- Text3,
1223
- {
1224
- role: "label",
1225
- size: sizeTokens.textSize,
1226
- centerVertically: true,
1227
- style: [
1228
- {
1229
- color: variantColors.textColor,
1230
- ...variant === "link" && hovered && { textDecorationLine: "underline" }
1231
- },
1232
- ...Array.isArray(textStyle) ? textStyle : textStyle ? [textStyle] : []
1233
- ]
1234
- },
1235
- children
1236
- ),
1237
- icon && iconPosition === "right" && /* @__PURE__ */ React16.createElement(Icon, { name: icon, size: sizeTokens.iconSize, color: variantColors.iconColor })
1238
- )
1153
+ children
1154
+ ),
1155
+ icon && iconPosition === "right" && /* @__PURE__ */ React16.createElement(Icon, { name: icon, size: sizeTokens.iconSize, color: variantColors.iconColor })
1239
1156
  ));
1240
1157
  }
1241
1158
  function getCardStyles(tokens, disabled, theme = "primary", appearance = "main") {
@@ -1269,7 +1186,7 @@ function Card({
1269
1186
  }
1270
1187
 
1271
1188
  // src/composites/display/Chip/Chip.styles.ts
1272
- function semanticToTheme2(semantic) {
1189
+ function semanticToTheme(semantic) {
1273
1190
  if (semantic === "accent") return "primary";
1274
1191
  return semantic;
1275
1192
  }
@@ -1292,7 +1209,7 @@ function getVariantColors2(variant, semantic, selected, disabled, tokens) {
1292
1209
  borderColor: "transparent"
1293
1210
  };
1294
1211
  }
1295
- const t2 = tokens.colors[semanticToTheme2(semantic)];
1212
+ const t2 = tokens.colors[semanticToTheme(semantic)];
1296
1213
  return {
1297
1214
  bg: t2.emphasis.background,
1298
1215
  hoveredBg: t2.emphasis.fontPrimary,
@@ -1326,7 +1243,7 @@ function getVariantColors2(variant, semantic, selected, disabled, tokens) {
1326
1243
  borderColor: "transparent"
1327
1244
  };
1328
1245
  }
1329
- const t2 = tokens.colors[semanticToTheme2(semantic)];
1246
+ const t2 = tokens.colors[semanticToTheme(semantic)];
1330
1247
  return {
1331
1248
  bg: t2.emphasis.background,
1332
1249
  hoveredBg: t2.emphasis.fontPrimary,
@@ -1349,7 +1266,7 @@ function getVariantColors2(variant, semantic, selected, disabled, tokens) {
1349
1266
  borderColor: "transparent"
1350
1267
  };
1351
1268
  }
1352
- const t2 = tokens.colors[semanticToTheme2(semantic)];
1269
+ const t2 = tokens.colors[semanticToTheme(semantic)];
1353
1270
  return {
1354
1271
  bg: t2.tinted.background,
1355
1272
  hoveredBg: t2.tinted.fontPrimary,
@@ -1371,7 +1288,7 @@ function getVariantColors2(variant, semantic, selected, disabled, tokens) {
1371
1288
  borderColor: tokens.colors.primary.main.divider
1372
1289
  };
1373
1290
  }
1374
- const t = tokens.colors[semanticToTheme2(semantic)];
1291
+ const t = tokens.colors[semanticToTheme(semantic)];
1375
1292
  return {
1376
1293
  bg: "transparent",
1377
1294
  hoveredBg: t.tinted.background,
@@ -2942,17 +2859,13 @@ var COMPONENTS = [
2942
2859
  variants: [
2943
2860
  { id: "primary-md", label: "Primary", props: { variant: "primary", size: "md" } },
2944
2861
  { id: "secondary-md", label: "Secondary", props: { variant: "secondary", size: "md" } },
2945
- { id: "tertiary-md", label: "Tertiary", props: { variant: "tertiary", size: "md" } },
2862
+ { id: "ghost-md", label: "Ghost", props: { variant: "ghost", size: "md" } },
2946
2863
  { id: "primary-sm", label: "Primary Small", props: { variant: "primary", size: "sm" } },
2947
2864
  { id: "primary-lg", label: "Primary Large", props: { variant: "primary", size: "lg" } },
2948
- { id: "accent-primary", label: "Accent Primary", props: { variant: "primary", size: "md", semantic: "accent" } },
2949
- { id: "accent-secondary", label: "Accent Secondary", props: { variant: "secondary", size: "md", semantic: "accent" } },
2950
- { id: "success-primary", label: "Success Primary", props: { variant: "primary", size: "md", semantic: "success" } },
2951
- { id: "error-primary", label: "Error Primary", props: { variant: "primary", size: "md", semantic: "error" } },
2952
- { id: "warning-primary", label: "Warning Primary", props: { variant: "primary", size: "md", semantic: "warning" } },
2865
+ { id: "primary-xl", label: "Primary XL", props: { variant: "primary", size: "xl" } },
2953
2866
  { id: "icon-left", label: "Icon Left", props: { variant: "primary", size: "md", icon: "add" } },
2954
2867
  { id: "icon-right", label: "Icon Right", props: { variant: "primary", size: "md", icon: "arrow_forward", iconPosition: "right" } },
2955
- { id: "icon-only", label: "Icon Only", props: { variant: "tertiary", size: "md", icon: "settings" } }
2868
+ { id: "icon-only", label: "Icon Only", props: { variant: "ghost", size: "md", icon: "settings" } }
2956
2869
  ],
2957
2870
  editableProps: [
2958
2871
  {
@@ -2962,23 +2875,10 @@ var COMPONENTS = [
2962
2875
  options: [
2963
2876
  { label: "Primary", value: "primary" },
2964
2877
  { label: "Secondary", value: "secondary" },
2965
- { label: "Tertiary", value: "tertiary" }
2878
+ { label: "Ghost", value: "ghost" }
2966
2879
  ],
2967
2880
  defaultValue: "primary"
2968
2881
  },
2969
- {
2970
- name: "semantic",
2971
- label: "Semantic",
2972
- control: "select",
2973
- options: [
2974
- { label: "Neutral", value: "neutral" },
2975
- { label: "Accent", value: "accent" },
2976
- { label: "Success", value: "success" },
2977
- { label: "Warning", value: "warning" },
2978
- { label: "Error", value: "error" }
2979
- ],
2980
- defaultValue: "neutral"
2981
- },
2982
2882
  {
2983
2883
  name: "size",
2984
2884
  label: "Size",
@@ -2986,7 +2886,8 @@ var COMPONENTS = [
2986
2886
  options: [
2987
2887
  { label: "Small", value: "sm" },
2988
2888
  { label: "Medium", value: "md" },
2989
- { label: "Large", value: "lg" }
2889
+ { label: "Large", value: "lg" },
2890
+ { label: "Extra Large", value: "xl" }
2990
2891
  ],
2991
2892
  defaultValue: "md"
2992
2893
  },