@everlywell/ui-kit 0.8.0 → 0.8.2

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/index.mjs CHANGED
@@ -798,9 +798,10 @@ const Qn = mo, ra = vo, $o = () => /* @__PURE__ */ or.jsx(
798
798
  }) => /* @__PURE__ */ or.jsxs(yo, { ...a, children: [
799
799
  /* @__PURE__ */ or.jsx($o, {}),
800
800
  e
801
- ] }), yt = ["viridian", "terracotta"], Mo = Ir({
801
+ ] }), yt = ["redCS", "greenCS"], Mo = Ir({
802
802
  // The styles all button have in common
803
803
  baseStyle: {
804
+ fontFamily: "body",
804
805
  fontWeight: "medium",
805
806
  lineHeight: "body",
806
807
  letterSpacing: "normal",
@@ -867,16 +868,17 @@ const Qn = mo, ra = vo, $o = () => /* @__PURE__ */ or.jsx(
867
868
  },
868
869
  // Two variants: primary and secondary
869
870
  variants: {
871
+ // solid
870
872
  primary: (e) => {
871
873
  const { colorScheme: a } = e;
872
874
  return yt.includes(a) ? {
873
- bg: `${a}.base`,
875
+ bg: `${a}.500`,
874
876
  color: "tints.white",
875
877
  ":hover, &.hover": {
876
- bg: `${a}.dark`
878
+ bg: `${a}.900`
877
879
  },
878
880
  ":active, &.active": {
879
- bg: `${a}.dark`
881
+ bg: `${a}.900`
880
882
  },
881
883
  ":disabled": {
882
884
  bg: "tints.lightGrey",
@@ -886,10 +888,10 @@ const Qn = mo, ra = vo, $o = () => /* @__PURE__ */ or.jsx(
886
888
  bg: "tints.white",
887
889
  color: "tints.black",
888
890
  ":hover, &.hover": {
889
- bg: "viridian.wash"
891
+ bg: "greenCS.50"
890
892
  },
891
893
  ":active, &.active": {
892
- bg: "viridian.wash"
894
+ bg: "greenCS.50"
893
895
  },
894
896
  ":disabled": {
895
897
  bg: "tints.lightGrey",
@@ -897,18 +899,19 @@ const Qn = mo, ra = vo, $o = () => /* @__PURE__ */ or.jsx(
897
899
  }
898
900
  };
899
901
  },
902
+ //outline
900
903
  secondary: (e) => {
901
904
  const { colorScheme: a } = e;
902
905
  return yt.includes(a) ? {
903
- color: `${a}.base`,
904
- boxShadow: (l) => `inset 0 0 0 2px ${l.colors[a].base}`,
906
+ color: `${a}.500`,
907
+ boxShadow: (l) => `inset 0 0 0 2px ${l.colors[a][500]}`,
905
908
  ":hover, &.hover": {
906
- color: `${a}.dark`,
907
- boxShadow: (l) => `inset 0 0 0 2px ${l.colors[a].dark}`
909
+ color: `${a}.900`,
910
+ boxShadow: (l) => `inset 0 0 0 2px ${l.colors[a][900]}`
908
911
  },
909
912
  ":active, &.active": {
910
- color: `${a}.dark`,
911
- boxShadow: (l) => `inset 0 0 0 2px ${l.colors[a].dark}`
913
+ color: `${a}.900`,
914
+ boxShadow: (l) => `inset 0 0 0 2px ${l.colors[a][900]}`
912
915
  },
913
916
  ":disabled": {
914
917
  color: "tints.lightGrey",
@@ -916,15 +919,15 @@ const Qn = mo, ra = vo, $o = () => /* @__PURE__ */ or.jsx(
916
919
  opacity: 0.7
917
920
  }
918
921
  } : {
919
- color: "white",
922
+ color: "tints.white",
920
923
  boxShadow: (l) => `inset 0 0 0 2px ${l.colors.tints.white}`,
921
924
  ":hover, &.hover": {
922
925
  color: "tints.white",
923
- boxShadow: (l) => `inset 0 0 0 2px ${l.colors.viridian.wash}`
926
+ boxShadow: (l) => `inset 0 0 0 2px ${l.colors.greenCS[50]}`
924
927
  },
925
928
  ":active, &.active": {
926
929
  color: "tints.white",
927
- boxShadow: (l) => `inset 0 0 0 2px ${l.colors.viridian.wash}`
930
+ boxShadow: (l) => `inset 0 0 0 2px ${l.colors.greenCS[50]}`
928
931
  },
929
932
  ":disabled": {
930
933
  color: "tints.lightGrey",
@@ -939,7 +942,7 @@ const Qn = mo, ra = vo, $o = () => /* @__PURE__ */ or.jsx(
939
942
  defaultProps: {
940
943
  size: "md",
941
944
  variant: "primary",
942
- colorScheme: "viridian"
945
+ colorScheme: "greenCS"
943
946
  }
944
947
  });
945
948
  function Et(e) {
@@ -2849,12 +2852,12 @@ const { defineMultiStyleConfig: Cn, definePartsStyle: En } = Hr(wn.keys), Fn = C
2849
2852
  closeButton: {
2850
2853
  bg: "tints.cream",
2851
2854
  borderRadius: "50%",
2852
- p: 1,
2855
+ p: 3,
2853
2856
  _hover: {
2854
2857
  bg: "tints.darkCream"
2855
2858
  },
2856
2859
  "& .chakra-icon": {
2857
- p: 1
2860
+ fontSize: "0.75rem"
2858
2861
  }
2859
2862
  },
2860
2863
  body: {
@@ -3014,8 +3017,6 @@ const { defineMultiStyleConfig: Cn, definePartsStyle: En } = Hr(wn.keys), Fn = C
3014
3017
  variant: "primary"
3015
3018
  }
3016
3019
  }), Vn = {
3017
- // this will enable us to use white as a colorScheme
3018
- white: { ...Rt.colors.whiteAlpha, base: "#FFFFFF" },
3019
3020
  tints: {
3020
3021
  black: "#0F0F0F",
3021
3022
  darkGrey: "#545454",
@@ -3028,26 +3029,6 @@ const { defineMultiStyleConfig: Cn, definePartsStyle: En } = Hr(wn.keys), Fn = C
3028
3029
  white: "#FFFFFF"
3029
3030
  },
3030
3031
  viridian: {
3031
- 50: "#EFF9F5",
3032
- // wash
3033
- 100: "#A1DEC1",
3034
- // lighter
3035
- 200: "#68CA9C",
3036
- // light
3037
- 300: "#28724F",
3038
- // base
3039
- 400: "#28724F",
3040
- // base
3041
- 500: "#28724F",
3042
- // base
3043
- 600: "#28724F",
3044
- // base
3045
- 700: "#28724F",
3046
- // base
3047
- 800: "#28724F",
3048
- // base
3049
- 900: "#143927",
3050
- // dark
3051
3032
  dark: "#143927",
3052
3033
  base: "#28724F",
3053
3034
  light: "#68CA9C",
@@ -3062,26 +3043,6 @@ const { defineMultiStyleConfig: Cn, definePartsStyle: En } = Hr(wn.keys), Fn = C
3062
3043
  wash: "#FFFEF2"
3063
3044
  },
3064
3045
  terracotta: {
3065
- 50: "#FFF4F4",
3066
- // wash
3067
- 100: "#FFC9C7",
3068
- // lighter
3069
- 200: "#FF9E99",
3070
- // light
3071
- 300: "#FF6B62",
3072
- // base
3073
- 400: "#FF6B62",
3074
- // base
3075
- 500: "#FF6B62",
3076
- // base
3077
- 600: "#FF6B62",
3078
- // base
3079
- 700: "#FF6B62",
3080
- // base
3081
- 800: "#FF6B62",
3082
- // base
3083
- 900: "#650500",
3084
- // dark
3085
3046
  dark: "#650500",
3086
3047
  base: "#FF6B62",
3087
3048
  light: "#FF9E99",
@@ -3116,6 +3077,53 @@ const { defineMultiStyleConfig: Cn, definePartsStyle: En } = Hr(wn.keys), Fn = C
3116
3077
  lighter: "#CBECF9",
3117
3078
  wash: "#F5FBFE"
3118
3079
  },
3080
+ // color schemes
3081
+ redCS: {
3082
+ 50: "#CC0F05",
3083
+ // wash
3084
+ 100: "#CC0F05",
3085
+ // lighter
3086
+ 200: "#CC0F05",
3087
+ // light
3088
+ 300: "#CC0F05",
3089
+ // base
3090
+ 400: "#CC0F05",
3091
+ // base
3092
+ 500: "#CC0F05",
3093
+ // base
3094
+ 600: "#CC0F05",
3095
+ // base
3096
+ 700: "#CC0F05",
3097
+ // base
3098
+ 800: "#CC0F05",
3099
+ // base
3100
+ 900: "#650500"
3101
+ // dark
3102
+ },
3103
+ greenCS: {
3104
+ 50: "#EFF9F5",
3105
+ // wash
3106
+ 100: "#A1DEC1",
3107
+ // lighter
3108
+ 200: "#68CA9C",
3109
+ // light
3110
+ 300: "#28724F",
3111
+ // base
3112
+ 400: "#28724F",
3113
+ // base
3114
+ 500: "#28724F",
3115
+ // base
3116
+ 600: "#28724F",
3117
+ // base
3118
+ 700: "#28724F",
3119
+ // base
3120
+ 800: "#28724F",
3121
+ // base
3122
+ 900: "#143927"
3123
+ // dark
3124
+ },
3125
+ whiteCS: { ...Rt.colors.whiteAlpha, base: "#FFFFFF" },
3126
+ // contextual colors
3119
3127
  utility: {
3120
3128
  warning: "#CC0F05",
3121
3129
  sale: "#EE574F",
@@ -1,6 +1,7 @@
1
1
  import { StyleFunctionProps } from '@chakra-ui/react';
2
2
  declare const _default: {
3
3
  baseStyle?: {
4
+ fontFamily: string;
4
5
  fontWeight: string;
5
6
  lineHeight: string;
6
7
  letterSpacing: string;