@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.cjs CHANGED
@@ -382,7 +382,8 @@ function Frame({
382
382
  resolvedConfig.typography,
383
383
  resolvedConfig.icons,
384
384
  resolvedConfig.themeMappings,
385
- resolvedConfig.swatchDefaults
385
+ resolvedConfig.swatchDefaults,
386
+ resolvedConfig.relativeSwatchDefaults
386
387
  );
387
388
  }, [resolvedConfig, mode, gamut, resolvedElevation]);
388
389
  const styles = React16.useMemo(
@@ -962,64 +963,43 @@ var Text3 = Object.assign(TextBase, {
962
963
  });
963
964
 
964
965
  // src/composites/actions/Button/Button.styles.ts
966
+ var BUTTON_HEIGHTS = {
967
+ sm: 40,
968
+ md: 48,
969
+ lg: 56,
970
+ xl: 64
971
+ };
965
972
  function computeButtonPadding(size, hasIcon, hasText, iconPosition) {
966
973
  const basePadding = {
967
- sm: 8,
968
- md: 12,
969
- lg: 16
974
+ sm: 12,
975
+ md: 16,
976
+ lg: 20,
977
+ xl: 24
970
978
  };
971
979
  const base = basePadding[size];
972
980
  const textExtra = 8;
973
981
  if (!hasText && hasIcon) {
974
- return {
975
- paddingLeft: base,
976
- paddingRight: base,
977
- paddingTop: base,
978
- paddingBottom: base
979
- };
982
+ return { paddingLeft: base, paddingRight: base };
980
983
  }
981
984
  if (hasText && !hasIcon) {
982
- return {
983
- paddingLeft: base + textExtra,
984
- paddingRight: base + textExtra,
985
- paddingTop: base,
986
- paddingBottom: base
987
- };
985
+ return { paddingLeft: base + textExtra, paddingRight: base + textExtra };
988
986
  }
989
987
  if (hasText && hasIcon) {
990
988
  if (iconPosition === "left") {
991
- return {
992
- paddingLeft: base,
993
- paddingRight: base + textExtra,
994
- paddingTop: base,
995
- paddingBottom: base
996
- };
989
+ return { paddingLeft: base, paddingRight: base + textExtra };
997
990
  } else {
998
- return {
999
- paddingLeft: base + textExtra,
1000
- paddingRight: base,
1001
- paddingTop: base,
1002
- paddingBottom: base
1003
- };
991
+ return { paddingLeft: base + textExtra, paddingRight: base };
1004
992
  }
1005
993
  }
1006
- return {
1007
- paddingLeft: base,
1008
- paddingRight: base,
1009
- paddingTop: base,
1010
- paddingBottom: base
1011
- };
1012
- }
1013
- function semanticToTheme(semantic) {
1014
- if (semantic === "accent") return "primary";
1015
- return semantic;
994
+ return { paddingLeft: base, paddingRight: base };
1016
995
  }
1017
- function getButtonConfig(variant, semantic, size, disabled, tokens) {
996
+ function getButtonConfig(variant, size, disabled, tokens, theme) {
1018
997
  const sizeConfig = getSizeConfig(size, tokens);
1019
- const variantColors = getVariantColors(variant, semantic, disabled, tokens);
998
+ const variantColors = getVariantColors(variant, disabled, tokens, theme);
1020
999
  return {
1021
1000
  variantColors,
1022
1001
  sizeTokens: {
1002
+ height: sizeConfig.height,
1023
1003
  padding: sizeConfig.padding,
1024
1004
  gap: sizeConfig.gap,
1025
1005
  borderRadius: sizeConfig.borderRadius,
@@ -1031,147 +1011,89 @@ function getButtonConfig(variant, semantic, size, disabled, tokens) {
1031
1011
  function getSizeConfig(size, tokens) {
1032
1012
  const configs = {
1033
1013
  sm: {
1034
- padding: 8,
1014
+ height: BUTTON_HEIGHTS.sm,
1015
+ padding: 12,
1035
1016
  gap: tokens.spacing["08"],
1036
1017
  borderRadius: 8,
1037
1018
  textSize: "md",
1038
- // 16px
1039
- iconSize: 24
1019
+ iconSize: 20
1040
1020
  },
1041
1021
  md: {
1042
- padding: 12,
1022
+ height: BUTTON_HEIGHTS.md,
1023
+ padding: 16,
1043
1024
  gap: tokens.spacing["08"],
1044
1025
  borderRadius: 12,
1045
1026
  textSize: "md",
1046
- // 16px
1047
1027
  iconSize: 24
1048
1028
  },
1049
1029
  lg: {
1050
- padding: 16,
1030
+ height: BUTTON_HEIGHTS.lg,
1031
+ padding: 20,
1051
1032
  gap: tokens.spacing["08"],
1052
- borderRadius: 16,
1033
+ borderRadius: 14,
1053
1034
  textSize: "md",
1054
- // 16px
1035
+ iconSize: 24
1036
+ },
1037
+ xl: {
1038
+ height: BUTTON_HEIGHTS.xl,
1039
+ padding: 24,
1040
+ gap: tokens.spacing["08"],
1041
+ borderRadius: 16,
1042
+ textSize: "lg",
1055
1043
  iconSize: 24
1056
1044
  }
1057
1045
  };
1058
1046
  return configs[size];
1059
1047
  }
1060
- function getVariantColors(variant, semantic, disabled, tokens) {
1048
+ function getVariantColors(variant, disabled, tokens, theme) {
1049
+ const t = tokens.colors[theme];
1061
1050
  if (disabled) {
1062
- const baseColors = getVariantColorsForState(variant, semantic, tokens);
1063
- const disabledBg = tokens.colors.primary.main.fontSecondary;
1051
+ const baseColors = getVariantColorsForState(variant, tokens, theme);
1064
1052
  return {
1065
1053
  ...baseColors,
1066
- bg: disabledBg,
1067
- hoveredBg: disabledBg,
1068
- pressedBg: disabledBg,
1069
- textColor: tokens.colors.primary.main.fontTertiary,
1070
- iconColor: tokens.colors.primary.main.fontTertiary
1054
+ bg: "transparent",
1055
+ hoveredBg: "transparent",
1056
+ pressedBg: "transparent",
1057
+ textColor: t.main.fontDisabled,
1058
+ iconColor: t.main.fontDisabled,
1059
+ borderWidth: 1,
1060
+ borderColor: t.main.divider
1071
1061
  };
1072
1062
  }
1073
- return getVariantColorsForState(variant, semantic, tokens);
1063
+ return getVariantColorsForState(variant, tokens, theme);
1074
1064
  }
1075
- function getVariantColorsForState(variant, semantic, tokens) {
1065
+ function getVariantColorsForState(variant, tokens, theme) {
1066
+ const t = tokens.colors[theme];
1076
1067
  if (variant === "primary") {
1077
- if (semantic === "neutral") {
1078
- return {
1079
- bg: tokens.colors.primary.main.fontPrimary,
1080
- hoveredBg: tokens.colors.primary.main.fontSecondary,
1081
- pressedBg: tokens.colors.primary.main.fontPrimary,
1082
- textColor: tokens.colors.primary.main.divider,
1083
- iconColor: tokens.colors.primary.main.divider,
1084
- borderWidth: 1,
1085
- borderColor: "transparent"
1086
- };
1087
- }
1088
- const t = tokens.colors[semanticToTheme(semantic)];
1089
1068
  return {
1090
- bg: t.emphasis.background,
1091
- hoveredBg: t.emphasis.fontPrimary,
1092
- pressedBg: t.emphasis.fontSecondary,
1093
- textColor: t.main.background,
1094
- iconColor: t.main.background,
1095
- borderWidth: 1,
1069
+ bg: t.emphasis.actionEnabled,
1070
+ hoveredBg: t.emphasis.actionHovered,
1071
+ pressedBg: t.emphasis.actionPressed,
1072
+ textColor: t.emphasis.accentSmall,
1073
+ iconColor: t.emphasis.accentSmall,
1074
+ borderWidth: 0,
1096
1075
  borderColor: "transparent"
1097
1076
  };
1098
1077
  }
1099
1078
  if (variant === "secondary") {
1100
- if (semantic === "neutral") {
1101
- return {
1102
- bg: "transparent",
1103
- hoveredBg: tokens.colors.primary.main.fontPrimary,
1104
- pressedBg: tokens.colors.primary.main.fontSecondary,
1105
- textColor: tokens.colors.primary.main.divider,
1106
- iconColor: tokens.colors.primary.main.divider,
1107
- borderWidth: 1,
1108
- borderColor: tokens.colors.primary.main.fontSecondary
1109
- };
1110
- }
1111
- const t = tokens.colors[semanticToTheme(semantic)];
1112
- return {
1113
- bg: t.tinted.background,
1114
- hoveredBg: t.tinted.fontPrimary,
1115
- pressedBg: t.tinted.fontSecondary,
1116
- textColor: t.emphasis.divider,
1117
- iconColor: t.emphasis.divider,
1118
- borderWidth: 1,
1119
- borderColor: "transparent"
1120
- };
1121
- }
1122
- if (variant === "tertiary") {
1123
- if (semantic === "neutral") {
1124
- return {
1125
- bg: "transparent",
1126
- hoveredBg: tokens.colors.primary.main.fontPrimary,
1127
- pressedBg: tokens.colors.primary.main.fontSecondary,
1128
- textColor: tokens.colors.primary.main.divider,
1129
- iconColor: tokens.colors.primary.main.divider,
1130
- borderWidth: 1,
1131
- borderColor: "transparent"
1132
- };
1133
- }
1134
- const t = tokens.colors[semanticToTheme(semantic)];
1135
1079
  return {
1136
- bg: "transparent",
1137
- hoveredBg: t.tinted.background,
1138
- pressedBg: t.tinted.fontPrimary,
1139
- textColor: t.emphasis.divider,
1140
- iconColor: t.emphasis.divider,
1141
- borderWidth: 1,
1142
- borderColor: "transparent"
1143
- };
1144
- }
1145
- if (variant === "link") {
1146
- if (semantic === "neutral") {
1147
- return {
1148
- bg: "transparent",
1149
- hoveredBg: "transparent",
1150
- pressedBg: "transparent",
1151
- textColor: tokens.colors.primary.main.fontSecondary,
1152
- iconColor: tokens.colors.primary.main.fontSecondary,
1153
- borderWidth: 0,
1154
- borderColor: "transparent"
1155
- };
1156
- }
1157
- const t = tokens.colors[semanticToTheme(semantic)];
1158
- return {
1159
- bg: "transparent",
1160
- hoveredBg: "transparent",
1161
- pressedBg: "transparent",
1162
- textColor: t.emphasis.divider,
1163
- iconColor: t.emphasis.divider,
1080
+ bg: t.main.actionEnabled,
1081
+ hoveredBg: t.main.actionHovered,
1082
+ pressedBg: t.main.actionPressed,
1083
+ textColor: t.main.fontPrimary,
1084
+ iconColor: t.main.fontPrimary,
1164
1085
  borderWidth: 0,
1165
1086
  borderColor: "transparent"
1166
1087
  };
1167
1088
  }
1168
1089
  return {
1169
1090
  bg: "transparent",
1170
- hoveredBg: "transparent",
1171
- pressedBg: "transparent",
1172
- textColor: tokens.colors.primary.main.divider,
1173
- iconColor: tokens.colors.primary.main.divider,
1174
- borderWidth: 0
1091
+ hoveredBg: t.main.actionEnabled,
1092
+ pressedBg: t.main.actionHovered,
1093
+ textColor: t.main.fontSecondary,
1094
+ iconColor: t.main.fontSecondary,
1095
+ borderWidth: 0,
1096
+ borderColor: "transparent"
1175
1097
  };
1176
1098
  }
1177
1099
  function Button({
@@ -1179,7 +1101,6 @@ function Button({
1179
1101
  icon,
1180
1102
  iconPosition = "left",
1181
1103
  variant = "primary",
1182
- semantic = "neutral",
1183
1104
  size = "md",
1184
1105
  disabled = false,
1185
1106
  loading = false,
@@ -1189,58 +1110,54 @@ function Button({
1189
1110
  ...pressableProps
1190
1111
  }) {
1191
1112
  const tokens = newtoneApi.useTokens();
1113
+ const frameCtx = newtoneApi.useFrameContext();
1114
+ const theme = frameCtx?.theme ?? "primary";
1192
1115
  const isDisabled = disabled || loading;
1193
1116
  const { variantColors, sizeTokens } = React16__default.default.useMemo(
1194
- () => getButtonConfig(variant, semantic, size, isDisabled, tokens),
1195
- [variant, semantic, size, isDisabled, tokens]
1117
+ () => getButtonConfig(variant, size, isDisabled, tokens, theme),
1118
+ [variant, size, isDisabled, tokens, theme]
1196
1119
  );
1197
1120
  const padding = React16__default.default.useMemo(
1198
- () => variant === "link" ? { paddingLeft: 0, paddingRight: 0, paddingTop: 0, paddingBottom: 0 } : computeButtonPadding(size, !!icon, !!children, iconPosition),
1199
- [size, icon, children, iconPosition, variant]
1121
+ () => computeButtonPadding(size, !!icon, !!children, iconPosition),
1122
+ [size, icon, children, iconPosition]
1200
1123
  );
1201
- return /* @__PURE__ */ React16__default.default.createElement(reactNative.Pressable, { disabled: isDisabled, ...pressableProps }, ({ pressed, hovered }) => (
1202
- // Wrapper handles layout: direction, gap, alignment (padding via style)
1203
- /* @__PURE__ */ React16__default.default.createElement(
1204
- Wrapper,
1124
+ return /* @__PURE__ */ React16__default.default.createElement(reactNative.Pressable, { disabled: isDisabled, ...pressableProps }, ({ pressed, hovered }) => /* @__PURE__ */ React16__default.default.createElement(
1125
+ Wrapper,
1126
+ {
1127
+ direction: "horizontal",
1128
+ align: "center",
1129
+ justify: "center",
1130
+ gap: sizeTokens.gap,
1131
+ style: [
1132
+ {
1133
+ height: sizeTokens.height,
1134
+ paddingLeft: padding.paddingLeft,
1135
+ paddingRight: padding.paddingRight,
1136
+ backgroundColor: pressed && !isDisabled ? variantColors.pressedBg : hovered && !isDisabled ? variantColors.hoveredBg : variantColors.bg,
1137
+ borderRadius: sizeTokens.borderRadius,
1138
+ borderWidth: variantColors.borderWidth,
1139
+ borderColor: variantColors.borderColor || "transparent",
1140
+ opacity: isDisabled ? loading ? 0.6 : 0.4 : 1,
1141
+ ...fullWidth && { width: "100%", alignSelf: "stretch" }
1142
+ },
1143
+ ...Array.isArray(style) ? style : style ? [style] : []
1144
+ ]
1145
+ },
1146
+ icon && iconPosition === "left" && /* @__PURE__ */ React16__default.default.createElement(Icon, { name: icon, size: sizeTokens.iconSize, color: variantColors.iconColor }),
1147
+ children && /* @__PURE__ */ React16__default.default.createElement(
1148
+ Text3,
1205
1149
  {
1206
- direction: "horizontal",
1207
- align: "center",
1208
- justify: "center",
1209
- gap: sizeTokens.gap,
1150
+ role: "label",
1151
+ size: sizeTokens.textSize,
1152
+ centerVertically: true,
1210
1153
  style: [
1211
- {
1212
- ...padding,
1213
- // Asymmetric horizontal padding for text optical balance
1214
- backgroundColor: pressed && !isDisabled ? variantColors.pressedBg : hovered && !isDisabled ? variantColors.hoveredBg : variantColors.bg,
1215
- borderRadius: variant === "link" ? 0 : sizeTokens.borderRadius,
1216
- borderWidth: variantColors.borderWidth,
1217
- borderColor: variantColors.borderColor || "transparent",
1218
- opacity: isDisabled ? loading ? 0.6 : 0.4 : variant === "link" && pressed ? 0.7 : 1,
1219
- ...fullWidth && { width: "100%", alignSelf: "stretch" }
1220
- },
1221
- ...Array.isArray(style) ? style : style ? [style] : []
1154
+ { color: variantColors.textColor },
1155
+ ...Array.isArray(textStyle) ? textStyle : textStyle ? [textStyle] : []
1222
1156
  ]
1223
1157
  },
1224
- icon && iconPosition === "left" && /* @__PURE__ */ React16__default.default.createElement(Icon, { name: icon, size: sizeTokens.iconSize, color: variantColors.iconColor }),
1225
- children && // Text primitive with semantic props + color style override
1226
- /* @__PURE__ */ React16__default.default.createElement(
1227
- Text3,
1228
- {
1229
- role: "label",
1230
- size: sizeTokens.textSize,
1231
- centerVertically: true,
1232
- style: [
1233
- {
1234
- color: variantColors.textColor,
1235
- ...variant === "link" && hovered && { textDecorationLine: "underline" }
1236
- },
1237
- ...Array.isArray(textStyle) ? textStyle : textStyle ? [textStyle] : []
1238
- ]
1239
- },
1240
- children
1241
- ),
1242
- icon && iconPosition === "right" && /* @__PURE__ */ React16__default.default.createElement(Icon, { name: icon, size: sizeTokens.iconSize, color: variantColors.iconColor })
1243
- )
1158
+ children
1159
+ ),
1160
+ icon && iconPosition === "right" && /* @__PURE__ */ React16__default.default.createElement(Icon, { name: icon, size: sizeTokens.iconSize, color: variantColors.iconColor })
1244
1161
  ));
1245
1162
  }
1246
1163
  function getCardStyles(tokens, disabled, theme = "primary", appearance = "main") {
@@ -1274,7 +1191,7 @@ function Card({
1274
1191
  }
1275
1192
 
1276
1193
  // src/composites/display/Chip/Chip.styles.ts
1277
- function semanticToTheme2(semantic) {
1194
+ function semanticToTheme(semantic) {
1278
1195
  if (semantic === "accent") return "primary";
1279
1196
  return semantic;
1280
1197
  }
@@ -1297,7 +1214,7 @@ function getVariantColors2(variant, semantic, selected, disabled, tokens) {
1297
1214
  borderColor: "transparent"
1298
1215
  };
1299
1216
  }
1300
- const t2 = tokens.colors[semanticToTheme2(semantic)];
1217
+ const t2 = tokens.colors[semanticToTheme(semantic)];
1301
1218
  return {
1302
1219
  bg: t2.emphasis.background,
1303
1220
  hoveredBg: t2.emphasis.fontPrimary,
@@ -1331,7 +1248,7 @@ function getVariantColors2(variant, semantic, selected, disabled, tokens) {
1331
1248
  borderColor: "transparent"
1332
1249
  };
1333
1250
  }
1334
- const t2 = tokens.colors[semanticToTheme2(semantic)];
1251
+ const t2 = tokens.colors[semanticToTheme(semantic)];
1335
1252
  return {
1336
1253
  bg: t2.emphasis.background,
1337
1254
  hoveredBg: t2.emphasis.fontPrimary,
@@ -1354,7 +1271,7 @@ function getVariantColors2(variant, semantic, selected, disabled, tokens) {
1354
1271
  borderColor: "transparent"
1355
1272
  };
1356
1273
  }
1357
- const t2 = tokens.colors[semanticToTheme2(semantic)];
1274
+ const t2 = tokens.colors[semanticToTheme(semantic)];
1358
1275
  return {
1359
1276
  bg: t2.tinted.background,
1360
1277
  hoveredBg: t2.tinted.fontPrimary,
@@ -1376,7 +1293,7 @@ function getVariantColors2(variant, semantic, selected, disabled, tokens) {
1376
1293
  borderColor: tokens.colors.primary.main.divider
1377
1294
  };
1378
1295
  }
1379
- const t = tokens.colors[semanticToTheme2(semantic)];
1296
+ const t = tokens.colors[semanticToTheme(semantic)];
1380
1297
  return {
1381
1298
  bg: "transparent",
1382
1299
  hoveredBg: t.tinted.background,
@@ -2947,17 +2864,13 @@ var COMPONENTS = [
2947
2864
  variants: [
2948
2865
  { id: "primary-md", label: "Primary", props: { variant: "primary", size: "md" } },
2949
2866
  { id: "secondary-md", label: "Secondary", props: { variant: "secondary", size: "md" } },
2950
- { id: "tertiary-md", label: "Tertiary", props: { variant: "tertiary", size: "md" } },
2867
+ { id: "ghost-md", label: "Ghost", props: { variant: "ghost", size: "md" } },
2951
2868
  { id: "primary-sm", label: "Primary Small", props: { variant: "primary", size: "sm" } },
2952
2869
  { id: "primary-lg", label: "Primary Large", props: { variant: "primary", size: "lg" } },
2953
- { id: "accent-primary", label: "Accent Primary", props: { variant: "primary", size: "md", semantic: "accent" } },
2954
- { id: "accent-secondary", label: "Accent Secondary", props: { variant: "secondary", size: "md", semantic: "accent" } },
2955
- { id: "success-primary", label: "Success Primary", props: { variant: "primary", size: "md", semantic: "success" } },
2956
- { id: "error-primary", label: "Error Primary", props: { variant: "primary", size: "md", semantic: "error" } },
2957
- { id: "warning-primary", label: "Warning Primary", props: { variant: "primary", size: "md", semantic: "warning" } },
2870
+ { id: "primary-xl", label: "Primary XL", props: { variant: "primary", size: "xl" } },
2958
2871
  { id: "icon-left", label: "Icon Left", props: { variant: "primary", size: "md", icon: "add" } },
2959
2872
  { id: "icon-right", label: "Icon Right", props: { variant: "primary", size: "md", icon: "arrow_forward", iconPosition: "right" } },
2960
- { id: "icon-only", label: "Icon Only", props: { variant: "tertiary", size: "md", icon: "settings" } }
2873
+ { id: "icon-only", label: "Icon Only", props: { variant: "ghost", size: "md", icon: "settings" } }
2961
2874
  ],
2962
2875
  editableProps: [
2963
2876
  {
@@ -2967,23 +2880,10 @@ var COMPONENTS = [
2967
2880
  options: [
2968
2881
  { label: "Primary", value: "primary" },
2969
2882
  { label: "Secondary", value: "secondary" },
2970
- { label: "Tertiary", value: "tertiary" }
2883
+ { label: "Ghost", value: "ghost" }
2971
2884
  ],
2972
2885
  defaultValue: "primary"
2973
2886
  },
2974
- {
2975
- name: "semantic",
2976
- label: "Semantic",
2977
- control: "select",
2978
- options: [
2979
- { label: "Neutral", value: "neutral" },
2980
- { label: "Accent", value: "accent" },
2981
- { label: "Success", value: "success" },
2982
- { label: "Warning", value: "warning" },
2983
- { label: "Error", value: "error" }
2984
- ],
2985
- defaultValue: "neutral"
2986
- },
2987
2887
  {
2988
2888
  name: "size",
2989
2889
  label: "Size",
@@ -2991,7 +2891,8 @@ var COMPONENTS = [
2991
2891
  options: [
2992
2892
  { label: "Small", value: "sm" },
2993
2893
  { label: "Medium", value: "md" },
2994
- { label: "Large", value: "lg" }
2894
+ { label: "Large", value: "lg" },
2895
+ { label: "Extra Large", value: "xl" }
2995
2896
  ],
2996
2897
  defaultValue: "md"
2997
2898
  },
@@ -3901,6 +3802,10 @@ Object.defineProperty(exports, "FrameContext", {
3901
3802
  enumerable: true,
3902
3803
  get: function () { return newtoneApi.FrameContext; }
3903
3804
  });
3805
+ Object.defineProperty(exports, "NON_PRIMARY_RELATIVE_DEFAULTS", {
3806
+ enumerable: true,
3807
+ get: function () { return newtoneApi.NON_PRIMARY_RELATIVE_DEFAULTS; }
3808
+ });
3904
3809
  Object.defineProperty(exports, "NewtoneProvider", {
3905
3810
  enumerable: true,
3906
3811
  get: function () { return newtoneApi.NewtoneProvider; }