@windstream/react-shared-components 0.2.34 → 0.2.35

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.d.ts CHANGED
@@ -66,7 +66,7 @@ declare const Input: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAtt
66
66
  size?: "slim" | "medium" | "large" | undefined;
67
67
  label?: string | undefined;
68
68
  errorText?: string | undefined;
69
- prefixIconName?: "search" | "location_on" | undefined;
69
+ prefixIconName?: "location_on" | "search" | undefined;
70
70
  prefixIconSize?: 20 | 24 | 40 | 48 | undefined;
71
71
  prefixIconFill?: boolean | undefined;
72
72
  suffixIconFill?: boolean | undefined;
@@ -171,7 +171,7 @@ interface ListItemProps extends LiHTMLAttributes<HTMLLIElement> {
171
171
 
172
172
  declare const ListItem: React$1.ForwardRefExoticComponent<ListItemProps & React$1.RefAttributes<HTMLLIElement>>;
173
173
 
174
- declare const List: React__default.ForwardRefExoticComponent<ListProps & React__default.RefAttributes<HTMLUListElement | HTMLOListElement>>;
174
+ declare const List: React__default.ForwardRefExoticComponent<ListProps & React__default.RefAttributes<HTMLOListElement | HTMLUListElement>>;
175
175
 
176
176
  declare const iconNameList: readonly ["info", "download", "featured_seasonal_and_gifts", "visibility", "paid", "check_box", "check_box_outline_blank", "radio_button_unchecked", "radio_button_checked", "counter_1", "counter_2", "counter_3", "error", "search", "cancel", "router", "broadcast_on_home", "check", "check_circle", "lock", "shield_lock", "phone_in_talk", "call", "chevron_left", "chevron_right", "keyboard_arrow_down", "keyboard_arrow_up", "arrow_back", "arrow_forward", "help", "home_pin", "location_on", "timer", "schedule", "add", "remove", "bolt", "rocket", "cloud_sync", "close", "groups", "speed", "mail", "credit_card", "language", "forum", "contract", "local_atm", "headset_mic", "sensors", "wifi", "settings", "home", "devices", "build", "thumb_up", "desktop_windows", "block", "all_inclusive", "verified_user", "extension", "stadia_controller", "visibility_off", "close_fullscreen", "progress_activity", "travel_explore", "share", "business_center", "upload", "videocam", "expand_circle_right", "add_circle", "do_not_disturb_on", "expand_circle_up", "expand_circle_down", "replay", "fiber_manual_record", "menu", "dangerous", "star", "play_arrow", "calendar_clock", "shopping_cart"];
177
177
  declare const OpticalSizes: readonly ["20dp", "24dp", "40dp", "48dp"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@windstream/react-shared-components",
3
- "version": "0.2.34",
3
+ "version": "0.2.35",
4
4
  "type": "module",
5
5
  "description": "Shared React components for Kinetic applications",
6
6
  "main": "dist/index.js",
@@ -285,6 +285,27 @@ describe("PrimaryHero", () => {
285
285
  });
286
286
 
287
287
  describe("Pricing description disclaimer", () => {
288
+ it("renders pricingDescription with subheading and responsive alignment classes", () => {
289
+ render(
290
+ <PrimaryHero
291
+ {...baseProps}
292
+ pricingDescription="Building a new home? Contact us to see if you're eligible for Kinetic Internet."
293
+ />
294
+ );
295
+
296
+ const pricingText = screen.getByText(
297
+ "Building a new home? Contact us to see if you're eligible for Kinetic Internet."
298
+ );
299
+
300
+ expect(pricingText).toBeInTheDocument();
301
+ expect(pricingText).toHaveClass("subheading1");
302
+ expect(pricingText).toHaveClass(
303
+ "text-left",
304
+ "sm:text-center",
305
+ "xl:text-left"
306
+ );
307
+ });
308
+
288
309
  it("renders pricingDescriptionDisclaimer (desktop and mobile)", () => {
289
310
  render(
290
311
  <PrimaryHero
@@ -300,7 +321,6 @@ describe("PrimaryHero", () => {
300
321
  expect(screen.queryByText("Taxes apply")).not.toBeInTheDocument();
301
322
  });
302
323
  });
303
-
304
324
  describe("Images", () => {
305
325
  it("renders carousel image (mobile and desktop)", () => {
306
326
  render(
@@ -126,15 +126,19 @@ export const PrimaryHero: React.FC<PrimaryHeroProps> = props => {
126
126
 
127
127
  {pricingDescription ? (
128
128
  <Text
129
- data-cy="hero-pricing-disclaimer"
130
- className={cx("text-left sm:text-center xl:text-left")}
129
+ data-cy="hero-pricing-description"
130
+ className={cx("subheading1", "text-left sm:text-center xl:text-left")}
131
131
  >
132
132
  {pricingDescription}
133
133
  </Text>
134
134
  ) : null}
135
135
 
136
136
  {pricingDescriptionDisclaimer ? (
137
- <Text data-cy="hero-pricing-disclaimer" as="p" className="body3">
137
+ <Text
138
+ data-cy="hero-pricing-disclaimer"
139
+ as="p"
140
+ className={cx("body3", "text-left sm:text-center xl:text-left")}
141
+ >
138
142
  {pricingDescriptionDisclaimer}
139
143
  </Text>
140
144
  ) : null}