@thecb/components 2.3.0 → 3.0.0

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/index.cjs.js CHANGED
@@ -121,6 +121,75 @@ var ALERT_COLORS = {
121
121
  link: SCIENCE_BLUE
122
122
  };
123
123
 
124
+ var colors = /*#__PURE__*/Object.freeze({
125
+ __proto__: null,
126
+ TRANSPARENT: TRANSPARENT,
127
+ WHITE: WHITE,
128
+ SOLITUDE_WHITE: SOLITUDE_WHITE,
129
+ SEASHELL_WHITE: SEASHELL_WHITE,
130
+ ALABASTER_WHITE: ALABASTER_WHITE,
131
+ AQUA_HAZE_WHITE: AQUA_HAZE_WHITE,
132
+ BLEACH_WHITE: BLEACH_WHITE,
133
+ CATSKILL_WHITE: CATSKILL_WHITE,
134
+ ATHENS_GREY: ATHENS_GREY,
135
+ ALTO_GREY: ALTO_GREY,
136
+ SILVER_GREY: SILVER_GREY,
137
+ PEWTER_GREY: PEWTER_GREY,
138
+ ASH_GREY: ASH_GREY,
139
+ IRON_GREY: IRON_GREY,
140
+ GHOST_GREY: GHOST_GREY,
141
+ DUSTY_GREY: DUSTY_GREY,
142
+ REGENT_GREY: REGENT_GREY,
143
+ STORM_GREY: STORM_GREY$1,
144
+ TROUT_GREY: TROUT_GREY,
145
+ MINESHAFT_GREY: MINESHAFT_GREY,
146
+ FIREFLY_GREY: FIREFLY_GREY,
147
+ SOOT_GREY: SOOT_GREY,
148
+ BRIGHT_GREY: BRIGHT_GREY,
149
+ CHARADE_GREY: CHARADE_GREY,
150
+ GRECIAN_GREY: GRECIAN_GREY,
151
+ BLACK_SQUEEZE: BLACK_SQUEEZE,
152
+ GREY_CHATEAU: GREY_CHATEAU,
153
+ CLOUDBURST_BLUE: CLOUDBURST_BLUE,
154
+ INFO_BLUE: INFO_BLUE,
155
+ ZODIAC_BLUE: ZODIAC_BLUE,
156
+ CONGRESS_BLUE: CONGRESS_BLUE,
157
+ SCIENCE_BLUE: SCIENCE_BLUE,
158
+ MARINER_BLUE: MARINER_BLUE,
159
+ CURIOUS_BLUE: CURIOUS_BLUE,
160
+ SELAGO_BLUE: SELAGO_BLUE,
161
+ ONAHAU_BLUE: ONAHAU_BLUE,
162
+ PICKLED_BLUE: PICKLED_BLUE,
163
+ CERULEAN_BLUE: CERULEAN_BLUE,
164
+ FOAM_BLUE: FOAM_BLUE,
165
+ CELLO_BLUE: CELLO_BLUE,
166
+ BOSTON_BLUE: BOSTON_BLUE,
167
+ HOVER_LIGHT_BLUE: HOVER_LIGHT_BLUE,
168
+ MATISSE_BLUE: MATISSE_BLUE,
169
+ FOREST_GREEN: FOREST_GREEN,
170
+ MEADOW_GREEN: MEADOW_GREEN,
171
+ POLAR_GREEN: POLAR_GREEN,
172
+ ICE_GREEN: ICE_GREEN,
173
+ HAZE_GREEN: HAZE_GREEN,
174
+ EMERALD_GREEN: EMERALD_GREEN,
175
+ HINT_GREEN: HINT_GREEN,
176
+ SEA_GREEN: SEA_GREEN,
177
+ SELECTIVE_YELLOW: SELECTIVE_YELLOW,
178
+ MUSTARD_YELLOW: MUSTARD_YELLOW,
179
+ CARROT_ORANGE: CARROT_ORANGE,
180
+ ZEST_ORANGE: ZEST_ORANGE,
181
+ APRICOT_ORANGE: APRICOT_ORANGE,
182
+ RED: RED,
183
+ CRIMSON_RED: CRIMSON_RED,
184
+ THUNDERBIRD_RED: THUNDERBIRD_RED,
185
+ RAZZMATAZZ_RED: RAZZMATAZZ_RED,
186
+ FANTASY_RED: FANTASY_RED,
187
+ COSMOS_RED: COSMOS_RED,
188
+ BLUSH_RED: BLUSH_RED,
189
+ ALERT_COLORS: ALERT_COLORS,
190
+ ERROR_COLOR: ERROR_COLOR
191
+ });
192
+
124
193
  var IconAdd = function IconAdd(_ref) {
125
194
  var _ref$fill = _ref.fill,
126
195
  fill = _ref$fill === void 0 ? CHARADE_GREY : _ref$fill,
@@ -1993,6 +2062,16 @@ var checkCardBrand = function checkCardBrand(number) {
1993
2062
  } else return "UNKNOWN";
1994
2063
  };
1995
2064
 
2065
+ var general = /*#__PURE__*/Object.freeze({
2066
+ __proto__: null,
2067
+ noop: noop$1,
2068
+ displayCurrency: displayCurrency,
2069
+ convertCentsToMoneyInt: convertCentsToMoneyInt,
2070
+ safeChildren: safeChildren,
2071
+ generateClickHandler: generateClickHandler,
2072
+ checkCardBrand: checkCardBrand
2073
+ });
2074
+
1996
2075
  /*
1997
2076
  Box component to create generic boxes
1998
2077
  Supply padding, border, background, and color values
@@ -9642,6 +9721,18 @@ var FONT_WEIGHT_REGULAR = "400";
9642
9721
  var FONT_WEIGHT_BOLD = "700";
9643
9722
  var FONT_WEIGHT_SEMIBOLD = "600";
9644
9723
 
9724
+ var style_constants = /*#__PURE__*/Object.freeze({
9725
+ __proto__: null,
9726
+ HEADER_HEIGHT: HEADER_HEIGHT,
9727
+ FOOTER_HEIGHT: FOOTER_HEIGHT,
9728
+ SPACER_HEIGHT: SPACER_HEIGHT,
9729
+ JUMBO_HEIGHT: JUMBO_HEIGHT,
9730
+ COMPACT_JUMBO_HEIGHT: COMPACT_JUMBO_HEIGHT,
9731
+ FONT_WEIGHT_REGULAR: FONT_WEIGHT_REGULAR,
9732
+ FONT_WEIGHT_BOLD: FONT_WEIGHT_BOLD,
9733
+ FONT_WEIGHT_SEMIBOLD: FONT_WEIGHT_SEMIBOLD
9734
+ });
9735
+
9645
9736
  function _templateObject4$1() {
9646
9737
  var data = _taggedTemplateLiteral(["\n ", "\n "]);
9647
9738
 
@@ -43071,6 +43162,19 @@ var expirationDateFormat = src_2(expirationDateFormats, formatDelimiter);
43071
43162
  var phoneFormat = src_2(phoneFormats, formatDelimiter);
43072
43163
  var moneyFormat = src_2(moneyFormats, formatDelimiter);
43073
43164
 
43165
+ var formats = /*#__PURE__*/Object.freeze({
43166
+ __proto__: null,
43167
+ formatDelimiter: formatDelimiter,
43168
+ phoneFormats: phoneFormats,
43169
+ moneyFormats: moneyFormats,
43170
+ expirationDateFormats: expirationDateFormats,
43171
+ zipFormat: zipFormat,
43172
+ creditCardFormat: creditCardFormat,
43173
+ expirationDateFormat: expirationDateFormat,
43174
+ phoneFormat: phoneFormat,
43175
+ moneyFormat: moneyFormat
43176
+ });
43177
+
43074
43178
  var AddressForm = function AddressForm(_ref) {
43075
43179
  var _zipErrorMessages;
43076
43180
 
@@ -48891,13 +48995,22 @@ var SidebarStackContent = function SidebarStackContent(_ref) {
48891
48995
 
48892
48996
  var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$x));
48893
48997
 
48894
- exports.ALABASTER_WHITE = ALABASTER_WHITE;
48895
- exports.ALERT_COLORS = ALERT_COLORS;
48896
- exports.ALTO_GREY = ALTO_GREY;
48897
- exports.APRICOT_ORANGE = APRICOT_ORANGE;
48898
- exports.AQUA_HAZE_WHITE = AQUA_HAZE_WHITE;
48899
- exports.ASH_GREY = ASH_GREY;
48900
- exports.ATHENS_GREY = ATHENS_GREY;
48998
+
48999
+
49000
+ var index$5 = /*#__PURE__*/Object.freeze({
49001
+ __proto__: null,
49002
+ colors: colors,
49003
+ fontWeights: style_constants
49004
+ });
49005
+
49006
+
49007
+
49008
+ var index$6 = /*#__PURE__*/Object.freeze({
49009
+ __proto__: null,
49010
+ formats: formats,
49011
+ general: general
49012
+ });
49013
+
48901
49014
  exports.AccountNumberImage = AccountNumberImage;
48902
49015
  exports.AccountsAddIcon = AccountsAddIcon$1;
48903
49016
  exports.AccountsIcon = AccountsIcon$1;
@@ -48905,27 +49018,11 @@ exports.AccountsIconSmall = AccountsIconSmall$1;
48905
49018
  exports.AddressForm = AddressForm;
48906
49019
  exports.Alert = Alert$1;
48907
49020
  exports.AmountCallout = AmountCallout$1;
48908
- exports.BLACK_SQUEEZE = BLACK_SQUEEZE;
48909
- exports.BLEACH_WHITE = BLEACH_WHITE;
48910
- exports.BLUSH_RED = BLUSH_RED;
48911
- exports.BOSTON_BLUE = BOSTON_BLUE;
48912
- exports.BRIGHT_GREY = BRIGHT_GREY;
48913
49021
  exports.BankIcon = BankIcon;
48914
49022
  exports.Box = Box;
48915
49023
  exports.Breadcrumb = Breadcrumbs;
48916
49024
  exports.ButtonWithAction = ButtonWithAction;
48917
49025
  exports.ButtonWithLink = ButtonWithLink;
48918
- exports.CARROT_ORANGE = CARROT_ORANGE;
48919
- exports.CATSKILL_WHITE = CATSKILL_WHITE;
48920
- exports.CELLO_BLUE = CELLO_BLUE;
48921
- exports.CERULEAN_BLUE = CERULEAN_BLUE;
48922
- exports.CHARADE_GREY = CHARADE_GREY;
48923
- exports.CLOUDBURST_BLUE = CLOUDBURST_BLUE;
48924
- exports.COMPACT_JUMBO_HEIGHT = COMPACT_JUMBO_HEIGHT;
48925
- exports.CONGRESS_BLUE = CONGRESS_BLUE;
48926
- exports.COSMOS_RED = COSMOS_RED;
48927
- exports.CRIMSON_RED = CRIMSON_RED;
48928
- exports.CURIOUS_BLUE = CURIOUS_BLUE;
48929
49026
  exports.Center = Center;
48930
49027
  exports.CenterSingle = CenterSingle$1;
48931
49028
  exports.CenterStack = CenterStack$1;
@@ -48938,26 +49035,15 @@ exports.Cluster = Cluster;
48938
49035
  exports.CollapsibleSection = CollapsibleSection$1;
48939
49036
  exports.CountryDropdown = CountryDropdown;
48940
49037
  exports.Cover = Cover;
48941
- exports.DUSTY_GREY = DUSTY_GREY;
48942
49038
  exports.DefaultPageTemplate = DefaultPageTemplate;
48943
49039
  exports.DisplayBox = DisplayBox$1;
48944
49040
  exports.DisplayCard = DisplayCard;
48945
49041
  exports.Dropdown = Dropdown$1;
48946
- exports.EMERALD_GREEN = EMERALD_GREEN;
48947
- exports.ERROR_COLOR = ERROR_COLOR;
48948
49042
  exports.EditNameForm = EditNameForm;
48949
49043
  exports.EditableList = EditableList;
48950
49044
  exports.EditableTable = EditableTable;
48951
49045
  exports.EmailForm = EmailForm;
48952
49046
  exports.ExternalLink = ExternalLink;
48953
- exports.FANTASY_RED = FANTASY_RED;
48954
- exports.FIREFLY_GREY = FIREFLY_GREY;
48955
- exports.FOAM_BLUE = FOAM_BLUE;
48956
- exports.FONT_WEIGHT_BOLD = FONT_WEIGHT_BOLD;
48957
- exports.FONT_WEIGHT_REGULAR = FONT_WEIGHT_REGULAR;
48958
- exports.FONT_WEIGHT_SEMIBOLD = FONT_WEIGHT_SEMIBOLD;
48959
- exports.FOOTER_HEIGHT = FOOTER_HEIGHT;
48960
- exports.FOREST_GREEN = FOREST_GREEN;
48961
49047
  exports.ForgotPasswordForm = ForgotPasswordForm;
48962
49048
  exports.ForgotPasswordIcon = ForgotPasswordIcon$1;
48963
49049
  exports.FormContainer = FormContainer$1;
@@ -48968,35 +49054,19 @@ exports.FormSelect = FormSelect;
48968
49054
  exports.FormattedAddress = FormattedAddress$1;
48969
49055
  exports.FormattedCreditCard = FormattedCreditCard$1;
48970
49056
  exports.Frame = Frame;
48971
- exports.GHOST_GREY = GHOST_GREY;
48972
- exports.GRECIAN_GREY = GRECIAN_GREY;
48973
- exports.GREY_CHATEAU = GREY_CHATEAU;
48974
49057
  exports.GenericCard = GenericCard;
48975
49058
  exports.GoToEmailIcon = GoToEmailIcon$1;
48976
49059
  exports.Grid = Grid;
48977
- exports.HAZE_GREEN = HAZE_GREEN;
48978
- exports.HEADER_HEIGHT = HEADER_HEIGHT;
48979
- exports.HINT_GREEN = HINT_GREEN;
48980
- exports.HOVER_LIGHT_BLUE = HOVER_LIGHT_BLUE;
48981
49060
  exports.HamburgerButton = HamburgerButton;
48982
49061
  exports.Heading = Heading$1;
48983
49062
  exports.HighlightTabRow = index$3;
48984
- exports.ICE_GREEN = ICE_GREEN;
48985
- exports.INFO_BLUE = INFO_BLUE;
48986
- exports.IRON_GREY = IRON_GREY;
48987
49063
  exports.Imposter = Imposter;
48988
49064
  exports.InternalLink = InternalLink;
48989
- exports.JUMBO_HEIGHT = JUMBO_HEIGHT;
48990
49065
  exports.Jumbo = Jumbo$1;
48991
49066
  exports.LabeledAmount = LabeledAmount$1;
48992
49067
  exports.LineItem = LineItem$1;
48993
49068
  exports.Loading = Loading;
48994
49069
  exports.LoginForm = LoginForm;
48995
- exports.MARINER_BLUE = MARINER_BLUE;
48996
- exports.MATISSE_BLUE = MATISSE_BLUE;
48997
- exports.MEADOW_GREEN = MEADOW_GREEN;
48998
- exports.MINESHAFT_GREY = MINESHAFT_GREY;
48999
- exports.MUSTARD_YELLOW = MUSTARD_YELLOW;
49000
49070
  exports.Modal = Modal$1;
49001
49071
  exports.Module = index$4;
49002
49072
  exports.Motion = Motion;
@@ -49004,11 +49074,7 @@ exports.NavFooter = NavFooter;
49004
49074
  exports.NavHeader = NavHeader;
49005
49075
  exports.NavMenuDesktop = NavMenuDesktop$1;
49006
49076
  exports.NavMenuMobile = NavMenuMobile$1;
49007
- exports.ONAHAU_BLUE = ONAHAU_BLUE;
49008
49077
  exports.Obligation = Obligation;
49009
- exports.PEWTER_GREY = PEWTER_GREY;
49010
- exports.PICKLED_BLUE = PICKLED_BLUE;
49011
- exports.POLAR_GREEN = POLAR_GREEN;
49012
49078
  exports.Paragraph = Paragraph$1;
49013
49079
  exports.PartialAmountForm = PartialAmountForm;
49014
49080
  exports.PasswordRequirements = PasswordRequirements;
@@ -49025,9 +49091,6 @@ exports.ProcessingFee = ProcessingFee$1;
49025
49091
  exports.ProfileIconSmall = ProfileIconSmall$1;
49026
49092
  exports.PropertiesAddIcon = PropertiesAddIcon$1;
49027
49093
  exports.PropertiesIconSmall = PropertiesIconSmall$1;
49028
- exports.RAZZMATAZZ_RED = RAZZMATAZZ_RED;
49029
- exports.RED = RED;
49030
- exports.REGENT_GREY = REGENT_GREY;
49031
49094
  exports.RadioButton = RadioButton$2;
49032
49095
  exports.RadioSection = RadioSection$1;
49033
49096
  exports.Reel = Reel;
@@ -49036,16 +49099,6 @@ exports.ResetConfirmationForm = ResetConfirmationForm$1;
49036
49099
  exports.ResetPasswordForm = ResetPasswordForm;
49037
49100
  exports.ResetPasswordSuccess = ResetPasswordSuccess;
49038
49101
  exports.RoutingNumberImage = RoutingNumberImage;
49039
- exports.SCIENCE_BLUE = SCIENCE_BLUE;
49040
- exports.SEASHELL_WHITE = SEASHELL_WHITE;
49041
- exports.SEA_GREEN = SEA_GREEN;
49042
- exports.SELAGO_BLUE = SELAGO_BLUE;
49043
- exports.SELECTIVE_YELLOW = SELECTIVE_YELLOW;
49044
- exports.SILVER_GREY = SILVER_GREY;
49045
- exports.SOLITUDE_WHITE = SOLITUDE_WHITE;
49046
- exports.SOOT_GREY = SOOT_GREY;
49047
- exports.SPACER_HEIGHT = SPACER_HEIGHT;
49048
- exports.STORM_GREY = STORM_GREY$1;
49049
49102
  exports.SettingsIconSmall = SettingsIconSmall$1;
49050
49103
  exports.Sidebar = Sidebar;
49051
49104
  exports.SidebarSingleContent = SidebarSingleContent$1;
@@ -49055,9 +49108,6 @@ exports.Spinner = Spinner$2;
49055
49108
  exports.Stack = Stack;
49056
49109
  exports.StateProvinceDropdown = FormStateDropdown;
49057
49110
  exports.Switcher = Switcher;
49058
- exports.THUNDERBIRD_RED = THUNDERBIRD_RED;
49059
- exports.TRANSPARENT = TRANSPARENT;
49060
- exports.TROUT_GREY = TROUT_GREY;
49061
49111
  exports.TabSidebar = TabSidebar$1;
49062
49112
  exports.TableListItem = TableListItem;
49063
49113
  exports.TermsAndConditions = TermsAndConditions;
@@ -49065,24 +49115,8 @@ exports.TermsAndConditionsModal = TermsAndConditionsModal$1;
49065
49115
  exports.Text = Text$1;
49066
49116
  exports.ToggleSwitch = ToggleSwitch$1;
49067
49117
  exports.VerifiedEmailIcon = VerifiedEmailIcon$1;
49068
- exports.WHITE = WHITE;
49069
49118
  exports.WorkflowTile = WorkflowTile;
49070
- exports.ZEST_ORANGE = ZEST_ORANGE;
49071
- exports.ZODIAC_BLUE = ZODIAC_BLUE;
49072
- exports.checkCardBrand = checkCardBrand;
49073
- exports.convertCentsToMoneyInt = convertCentsToMoneyInt;
49119
+ exports.constants = index$5;
49074
49120
  exports.createPartialAmountFormState = createPartialAmountFormState;
49075
- exports.creditCardFormat = creditCardFormat;
49076
- exports.displayCurrency = displayCurrency;
49077
- exports.expirationDateFormat = expirationDateFormat;
49078
- exports.expirationDateFormats = expirationDateFormats;
49079
- exports.formatDelimiter = formatDelimiter;
49080
- exports.generateClickHandler = generateClickHandler;
49081
- exports.moneyFormat = moneyFormat;
49082
- exports.moneyFormats = moneyFormats;
49083
- exports.noop = noop$1;
49084
- exports.phoneFormat = phoneFormat;
49085
- exports.phoneFormats = phoneFormats;
49086
- exports.safeChildren = safeChildren;
49121
+ exports.util = index$6;
49087
49122
  exports.withWindowSize = withWindowSize;
49088
- exports.zipFormat = zipFormat;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "2.3.0",
3
+ "version": "3.0.0",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -1,2 +1,4 @@
1
- export * from "./colors";
2
- export * from "./style_constants";
1
+ import * as colors from "./colors";
2
+ import * as fontWeights from "./style_constants";
3
+
4
+ export { colors, fontWeights };
package/src/index.js CHANGED
@@ -1,3 +1,4 @@
1
1
  export * from "./components";
2
- export * from "./constants";
3
- export * from "./util";
2
+ import * as constants from "./constants";
3
+ import * as util from "./util";
4
+ export { constants, util };
package/src/util/index.js CHANGED
@@ -1,2 +1,4 @@
1
- export * from "./formats";
2
- export * from "./general";
1
+ import * as formats from "./formats";
2
+ import * as general from "./general";
3
+
4
+ export { formats, general };
package/.tool-versions DELETED
@@ -1 +0,0 @@
1
- nodejs 10.13.0