@coopdigital/react 1.19.0 → 1.19.1

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 (143) hide show
  1. package/dist/components/Button/Button.js +1 -1
  2. package/dist/components/Card/Card.js +1 -1
  3. package/dist/components/Dialog/Dialog.js +1 -1
  4. package/dist/components/Expandable/Expandable.js +1 -1
  5. package/dist/components/Field/Field.js +1 -1
  6. package/dist/components/Searchbox/Searchbox.js +3 -4
  7. package/package.json +4 -3
  8. package/src/components/Author/Author.tsx +1 -1
  9. package/src/components/Button/Button.tsx +2 -2
  10. package/src/components/Card/Card.tsx +4 -6
  11. package/src/components/Checkbox/Checkbox.tsx +2 -2
  12. package/src/components/DatePicker/DatePicker.tsx +8 -6
  13. package/src/components/Dialog/Dialog.tsx +2 -2
  14. package/src/components/Expandable/Expandable.tsx +3 -3
  15. package/src/components/Field/Field.tsx +7 -6
  16. package/src/components/FieldMarkers/Label.tsx +1 -1
  17. package/src/components/Fieldset/Fieldset.tsx +4 -4
  18. package/src/components/Flourish/Flourish.tsx +1 -1
  19. package/src/components/LoadingSpinner/LoadingSpinner.tsx +1 -1
  20. package/src/components/PasswordInput/PasswordInput.tsx +3 -3
  21. package/src/components/Pill/Pill.tsx +3 -3
  22. package/src/components/Popover/Popover.tsx +2 -2
  23. package/src/components/Prose/Prose.tsx +1 -1
  24. package/src/components/Radio/Radio.tsx +2 -2
  25. package/src/components/Searchbox/Searchbox.context.tsx +1 -1
  26. package/src/components/Searchbox/Searchbox.tsx +9 -10
  27. package/src/components/Select/Select.tsx +2 -2
  28. package/src/components/Signpost/Signpost.tsx +2 -2
  29. package/src/components/Squircle/Squircle.tsx +2 -1
  30. package/src/components/Tag/Tag.tsx +1 -1
  31. package/src/components/TextInput/TextInput.tsx +2 -2
  32. package/src/components/Textarea/Textarea.tsx +3 -3
  33. package/src/components/ValidationSummary/ValidationSummary.tsx +5 -2
  34. package/src/components/icons/AccountCircleFilledIcon.tsx +1 -1
  35. package/src/components/icons/AccountCircleIcon.tsx +1 -1
  36. package/src/components/icons/AccountFilledIcon.tsx +1 -1
  37. package/src/components/icons/AccountIcon.tsx +1 -1
  38. package/src/components/icons/AddIcon.tsx +1 -1
  39. package/src/components/icons/AppsFilledIcon.tsx +1 -1
  40. package/src/components/icons/AppsIcon.tsx +1 -1
  41. package/src/components/icons/ArrowDownIcon.tsx +1 -1
  42. package/src/components/icons/ArrowLeftIcon.tsx +1 -1
  43. package/src/components/icons/ArrowRightIcon.tsx +1 -1
  44. package/src/components/icons/ArrowUpIcon.tsx +1 -1
  45. package/src/components/icons/BackspaceFilledIcon.tsx +1 -1
  46. package/src/components/icons/BackspaceIcon.tsx +1 -1
  47. package/src/components/icons/BasketFilledIcon.tsx +1 -1
  48. package/src/components/icons/BasketIcon.tsx +1 -1
  49. package/src/components/icons/BellFilledIcon.tsx +1 -1
  50. package/src/components/icons/BellIcon.tsx +1 -1
  51. package/src/components/icons/BroomIcon.tsx +1 -1
  52. package/src/components/icons/CalendarFilledIcon.tsx +1 -1
  53. package/src/components/icons/CalendarIcon.tsx +1 -1
  54. package/src/components/icons/CashFilledIcon.tsx +1 -1
  55. package/src/components/icons/CashIcon.tsx +1 -1
  56. package/src/components/icons/ChevronDownIcon.tsx +1 -1
  57. package/src/components/icons/ChevronLeftIcon.tsx +1 -1
  58. package/src/components/icons/ChevronRightIcon.tsx +1 -1
  59. package/src/components/icons/ChevronUpIcon.tsx +1 -1
  60. package/src/components/icons/CircleBurgerFilledIcon.tsx +1 -1
  61. package/src/components/icons/CircleBurgerIcon.tsx +1 -1
  62. package/src/components/icons/ClipboardFilledIcon.tsx +1 -1
  63. package/src/components/icons/ClipboardIcon.tsx +1 -1
  64. package/src/components/icons/ClockFilledIcon.tsx +1 -1
  65. package/src/components/icons/ClockIcon.tsx +1 -1
  66. package/src/components/icons/CloseAltFilledIcon.tsx +1 -1
  67. package/src/components/icons/CloseAltIcon.tsx +1 -1
  68. package/src/components/icons/CogIcon.tsx +1 -1
  69. package/src/components/icons/CommunityFilledIcon.tsx +1 -1
  70. package/src/components/icons/CommunityIcon.tsx +1 -1
  71. package/src/components/icons/ComputerIcon.tsx +1 -1
  72. package/src/components/icons/ContactFilledIcon.tsx +1 -1
  73. package/src/components/icons/ContactIcon.tsx +1 -1
  74. package/src/components/icons/ContactlessFilledIcon.tsx +1 -1
  75. package/src/components/icons/ContactlessIcon.tsx +1 -1
  76. package/src/components/icons/CoopLiveIcon.tsx +1 -1
  77. package/src/components/icons/CoopLocationFilledIcon.tsx +1 -1
  78. package/src/components/icons/CoopLogoIcon.tsx +1 -1
  79. package/src/components/icons/CoopMembershipCardFilledIcon.tsx +1 -1
  80. package/src/components/icons/CreditCardFilledIcon.tsx +1 -1
  81. package/src/components/icons/CreditCardIcon.tsx +1 -1
  82. package/src/components/icons/CrossIcon.tsx +1 -1
  83. package/src/components/icons/DocumentIcon.tsx +1 -1
  84. package/src/components/icons/DownloadIcon.tsx +1 -1
  85. package/src/components/icons/EnterStoreIcon.tsx +1 -1
  86. package/src/components/icons/ExitStoreIcon.tsx +1 -1
  87. package/src/components/icons/EyeFilledIcon.tsx +1 -1
  88. package/src/components/icons/EyeIcon.tsx +1 -1
  89. package/src/components/icons/EyeStrikeFilledIcon.tsx +1 -1
  90. package/src/components/icons/EyeStrikeIcon.tsx +1 -1
  91. package/src/components/icons/FeedbackFilledIcon.tsx +1 -1
  92. package/src/components/icons/FeedbackIcon.tsx +1 -1
  93. package/src/components/icons/FilterIcon.tsx +1 -1
  94. package/src/components/icons/GiftCardFilledIcon.tsx +1 -1
  95. package/src/components/icons/GiftCardIcon.tsx +1 -1
  96. package/src/components/icons/GiftFilledIcon.tsx +1 -1
  97. package/src/components/icons/GiftIcon.tsx +1 -1
  98. package/src/components/icons/HelpFilledIcon.tsx +1 -1
  99. package/src/components/icons/HelpIcon.tsx +1 -1
  100. package/src/components/icons/HomeFilledIcon.tsx +1 -1
  101. package/src/components/icons/HomeIcon.tsx +1 -1
  102. package/src/components/icons/HowDoIAssistantIcon.tsx +1 -1
  103. package/src/components/icons/InfoIcon.tsx +1 -1
  104. package/src/components/icons/KebabIcon.tsx +1 -1
  105. package/src/components/icons/LoadingIcon.tsx +1 -1
  106. package/src/components/icons/LocationFilledIcon.tsx +1 -1
  107. package/src/components/icons/LocationIcon.tsx +1 -1
  108. package/src/components/icons/LogoutIcon.tsx +1 -1
  109. package/src/components/icons/MailIcon.tsx +1 -1
  110. package/src/components/icons/MenuIcon.tsx +1 -1
  111. package/src/components/icons/MessageIcon.tsx +1 -1
  112. package/src/components/icons/MinusIcon.tsx +1 -1
  113. package/src/components/icons/NotesFilledIcon.tsx +1 -1
  114. package/src/components/icons/NotesIcon.tsx +1 -1
  115. package/src/components/icons/OpenNewIcon.tsx +1 -1
  116. package/src/components/icons/OwnBagIcon.tsx +1 -1
  117. package/src/components/icons/PadlockIcon.tsx +1 -1
  118. package/src/components/icons/PencilIcon.tsx +1 -1
  119. package/src/components/icons/PhoneIcon.tsx +1 -1
  120. package/src/components/icons/PowerIcon.tsx +1 -1
  121. package/src/components/icons/SaveFilledIcon.tsx +1 -1
  122. package/src/components/icons/SaveIcon.tsx +1 -1
  123. package/src/components/icons/ScooterIcon.tsx +1 -1
  124. package/src/components/icons/SearchFilledIcon.tsx +1 -1
  125. package/src/components/icons/SearchIcon.tsx +1 -1
  126. package/src/components/icons/SendIcon.tsx +1 -1
  127. package/src/components/icons/SpannerIcon.tsx +1 -1
  128. package/src/components/icons/StarFilledIcon.tsx +1 -1
  129. package/src/components/icons/StarIcon.tsx +1 -1
  130. package/src/components/icons/TickAltFilledIcon.tsx +1 -1
  131. package/src/components/icons/TickAltIcon.tsx +1 -1
  132. package/src/components/icons/TickIcon.tsx +1 -1
  133. package/src/components/icons/TruckIcon.tsx +1 -1
  134. package/src/components/icons/UserWipeIcon.tsx +1 -1
  135. package/src/components/icons/VoucherFilledIcon.tsx +1 -1
  136. package/src/components/icons/VoucherIcon.tsx +1 -1
  137. package/src/components/icons/WarningCircleFilledIcon.tsx +1 -1
  138. package/src/components/icons/WarningCircleIcon.tsx +1 -1
  139. package/src/components/icons/WarningFilledIcon.tsx +1 -1
  140. package/src/components/icons/WarningIcon.tsx +1 -1
  141. package/src/components/icons/WifiIcon.tsx +1 -1
  142. package/src/components/icons/WriteIcon.tsx +1 -1
  143. package/src/hooks/useSlots.ts +1 -1
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { hasUserBg } from "../../utils/index.js";
3
2
  import { LoadingSpinner } from "../LoadingSpinner/LoadingSpinner.js";
3
+ import { hasUserBg } from "../../utils/index.js";
4
4
  import clsx from "clsx";
5
5
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
6
6
  import React, { useCallback, useState } from "react";
@@ -1,6 +1,6 @@
1
1
  import { Image } from "../Image/Image.js";
2
- import { hasUserBg } from "../../utils/index.js";
3
2
  import { ChevronRightIcon } from "../icons/ChevronRightIcon.js";
3
+ import { hasUserBg } from "../../utils/index.js";
4
4
  import { useSlots } from "../../hooks/useSlots.js";
5
5
  import clsx from "clsx";
6
6
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { hasUserBg } from "../../utils/index.js";
3
2
  import { CrossIcon } from "../icons/CrossIcon.js";
3
+ import { hasUserBg } from "../../utils/index.js";
4
4
  import clsx from "clsx";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
6
  import { createContext, useContext, useEffect, useRef } from "react";
@@ -1,5 +1,5 @@
1
- import { hasUserBg } from "../../utils/index.js";
2
1
  import { ChevronDownIcon } from "../icons/ChevronDownIcon.js";
2
+ import { hasUserBg } from "../../utils/index.js";
3
3
  import { useSlots } from "../../hooks/useSlots.js";
4
4
  import clsx from "clsx";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { getSlotProp } from "../../utils/index.js";
3
2
  import { useId as useId$1 } from "../../hooks/useId.js";
3
+ import { getSlotProp } from "../../utils/index.js";
4
4
  import { FieldContext } from "./Field.context.js";
5
5
  import { Error } from "../FieldMarkers/Error.js";
6
6
  import { Hint } from "../FieldMarkers/Hint.js";
@@ -1,12 +1,11 @@
1
1
  "use client";
2
- import { getSlotProp, hasUserBorder } from "../../utils/index.js";
3
2
  import { useId as useId$1 } from "../../hooks/useId.js";
4
3
  import { SearchIcon } from "../icons/SearchIcon.js";
4
+ import { getSlotProp, hasUserBorder } from "../../utils/index.js";
5
5
  import { Button } from "../Button/Button.js";
6
6
  import { useSlots } from "../../hooks/useSlots.js";
7
7
  import TextInput_default from "../TextInput/index.js";
8
- import { FieldLabel } from "../Field/Field.js";
9
- import Field_default from "../Field/index.js";
8
+ import { Field, FieldLabel } from "../Field/Field.js";
10
9
  import { SearchboxContext, useSearchbox } from "./Searchbox.context.js";
11
10
  import clsx from "clsx";
12
11
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -60,7 +59,7 @@ const Searchbox = ({ action, children, className, id, label, labelVisible = fals
60
59
  children: label
61
60
  }), /* @__PURE__ */ jsxs("div", {
62
61
  className: clsx("coop-searchbox--inner"),
63
- children: [/* @__PURE__ */ jsx(Field_default, { children: slots.SearchboxInput }), slots.SearchboxButton]
62
+ children: [/* @__PURE__ */ jsx(Field, { children: slots.SearchboxInput }), slots.SearchboxButton]
64
63
  })]
65
64
  })
66
65
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@coopdigital/react",
3
3
  "type": "module",
4
- "version": "1.19.0",
4
+ "version": "1.19.1",
5
5
  "private": false,
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -49,6 +49,7 @@
49
49
  "test:e2e:ci": "npx playwright test --shard=$CI_NODE_INDEX/$CI_NODE_TOTAL",
50
50
  "build": "tsx scripts build",
51
51
  "build:docs": "tsx scripts build-docs",
52
+ "build:docs:all": "tsx scripts build-docs --all",
52
53
  "build:icons": "tsx scripts build-icons",
53
54
  "build:manifest": "tsx scripts build-manifest",
54
55
  "build:storybook": "storybook build --disable-telemetry",
@@ -102,12 +103,12 @@
102
103
  "storybook": "$storybook"
103
104
  },
104
105
  "dependencies": {
105
- "@coopdigital/styles": "^1.13.1",
106
+ "@coopdigital/styles": "^1.13.2",
106
107
  "@radix-ui/react-popover": "^1.1.23",
107
108
  "clsx": "^2.1.1",
108
109
  "date-fns": "^4.4.0",
109
110
  "merge-refs": "^2.0.0",
110
111
  "react-day-picker": "^10.0.1"
111
112
  },
112
- "gitHead": "773b6e1ec18be0a33b2dd40a336f7a6bee54a259"
113
+ "gitHead": "63e8cb1427d5e504b3390bb1c1028a30c76c9053"
113
114
  }
@@ -2,7 +2,7 @@ import type { HTMLAttributes, JSX, Ref } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { Image, ImageProps } from "../Image"
5
+ import { Image, ImageProps } from "@/components/Image"
6
6
 
7
7
  export interface AuthorProps extends HTMLAttributes<HTMLDivElement> {
8
8
  /** **(Optional)** Specify the Author name. */
@@ -5,8 +5,8 @@ import type { ButtonHTMLAttributes, ForwardRefExoticComponent, JSX, Ref } from "
5
5
  import clsx from "clsx"
6
6
  import React, { useCallback, useState } from "react"
7
7
 
8
- import { hasUserBg } from "../../utils"
9
- import { LoadingSpinner } from "./../LoadingSpinner"
8
+ import { LoadingSpinner } from "@/components/LoadingSpinner"
9
+ import { hasUserBg } from "@/utils"
10
10
 
11
11
  export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
12
12
  /** **(Optional)** Specify a custom element to override default `a` or `button`. */
@@ -3,10 +3,10 @@ import type { ForwardRefExoticComponent, HTMLAttributes, JSX, Ref } from "react"
3
3
  import clsx from "clsx"
4
4
  import React from "react"
5
5
 
6
- import { useSlots } from "../../hooks/useSlots"
7
- import { hasUserBg } from "../../utils"
8
- import { ChevronRightIcon } from "../icons/ChevronRightIcon"
9
- import { Image, ImageProps } from "../Image"
6
+ import { ChevronRightIcon } from "@/components/icons/ChevronRightIcon"
7
+ import { Image, ImageProps } from "@/components/Image"
8
+ import { useSlots } from "@/hooks/useSlots"
9
+ import { hasUserBg } from "@/utils"
10
10
 
11
11
  export interface CardProps extends HTMLAttributes<HTMLDivElement> {
12
12
  /** **(Optional)** Specify how the card behaves across screen sizes.
@@ -98,7 +98,6 @@ function getCardLinkElement(as: CardProps["hrefAs"], href?: string) {
98
98
 
99
99
  const Card = ({
100
100
  adaptive,
101
- // behaviour,
102
101
  chevron = false,
103
102
  children,
104
103
  className,
@@ -116,7 +115,6 @@ const Card = ({
116
115
 
117
116
  const componentProps = {
118
117
  className: clsx("coop-card", !hasUserBg(className) && "bg-white", className),
119
- // "data-behaviour": behaviour ?? undefined,
120
118
  "data-adaptive": adaptive ?? undefined,
121
119
  "data-orientation": orientation ?? undefined,
122
120
  "data-signpost": signpost ?? undefined,
@@ -3,8 +3,8 @@ import type { InputHTMLAttributes, JSX, Ref } from "react"
3
3
 
4
4
  import clsx from "clsx"
5
5
 
6
- import { StandardSizes } from "../../../src/types"
7
- import { useField } from "../Field/Field.context"
6
+ import { useField } from "@/components/Field/Field.context"
7
+ import { StandardSizes } from "@/types"
8
8
 
9
9
  export interface CheckboxProps extends Omit<
10
10
  InputHTMLAttributes<HTMLInputElement>,
@@ -13,7 +13,14 @@ import clsx from "clsx"
13
13
  import { useCallback, useMemo, useReducer } from "react"
14
14
  import { DayPicker } from "react-day-picker"
15
15
 
16
- import type { StandardSizes } from "../../types"
16
+ import type { StandardSizes } from "@/types"
17
+
18
+ import { Button } from "@/components/Button"
19
+ import { useField } from "@/components/Field/Field.context"
20
+ import { CalendarIcon, CrossIcon, TickIcon } from "@/components/icons"
21
+ import { Popover } from "@/components/Popover"
22
+ import { TextInput } from "@/components/TextInput"
23
+
17
24
  import type {
18
25
  DateRange,
19
26
  DateRangeStr,
@@ -23,11 +30,6 @@ import type {
23
30
  TDateSingle,
24
31
  } from "./datepicker-utils"
25
32
 
26
- import { Button } from "../Button"
27
- import { useField } from "../Field/Field.context"
28
- import { CalendarIcon, CrossIcon, TickIcon } from "../icons"
29
- import { Popover } from "../Popover"
30
- import { TextInput } from "../TextInput"
31
33
  import {
32
34
  getDateValues,
33
35
  getDefaultMonth,
@@ -17,8 +17,8 @@ import React, {
17
17
  useRef,
18
18
  } from "react"
19
19
 
20
- import { hasUserBg } from "../../utils"
21
- import { CrossIcon } from "../icons"
20
+ import { CrossIcon } from "@/components/icons"
21
+ import { hasUserBg } from "@/utils"
22
22
 
23
23
  const DialogContext = createContext<{
24
24
  ref: RefObject<HTMLDialogElement | null> | null
@@ -2,9 +2,9 @@ import type { DetailsHTMLAttributes, HTMLAttributes, JSX, Ref } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useSlots } from "../../hooks/useSlots"
6
- import { hasUserBg } from "../../utils"
7
- import { ChevronDownIcon } from "../icons"
5
+ import { ChevronDownIcon } from "@/components/icons"
6
+ import { useSlots } from "@/hooks/useSlots"
7
+ import { hasUserBg } from "@/utils"
8
8
 
9
9
  export interface ExpandableProps extends DetailsHTMLAttributes<HTMLDetailsElement> {
10
10
  /** Main content inside the component. This should be an `Expandable.Summary` and `Expandable.Content`. */
@@ -4,12 +4,13 @@ import type { HTMLAttributes, JSX, Ref } from "react"
4
4
  import clsx from "clsx"
5
5
  import React from "react"
6
6
 
7
- import { useId } from "../../hooks/useId"
8
- import { SlotConfig } from "../../types"
9
- import { getSlotProp } from "../../utils"
10
- import { Error as BaseError, type ErrorProps } from "../FieldMarkers/Error"
11
- import { Hint as BaseHint, type HintProps } from "../FieldMarkers/Hint"
12
- import { Label as BaseLabel, type LabelProps } from "../FieldMarkers/Label"
7
+ import { Error as BaseError, type ErrorProps } from "@/components/FieldMarkers/Error"
8
+ import { Hint as BaseHint, type HintProps } from "@/components/FieldMarkers/Hint"
9
+ import { Label as BaseLabel, type LabelProps } from "@/components/FieldMarkers/Label"
10
+ import { useId } from "@/hooks/useId"
11
+ import { SlotConfig } from "@/types"
12
+ import { getSlotProp } from "@/utils"
13
+
13
14
  import { FieldConfig, FieldContext } from "./Field.context"
14
15
 
15
16
  interface FieldProps extends HTMLAttributes<HTMLDivElement> {
@@ -1,7 +1,7 @@
1
1
  import clsx from "clsx"
2
2
  import { JSX, LabelHTMLAttributes, Ref } from "react"
3
3
 
4
- import { useField } from "../Field/Field.context"
4
+ import { useField } from "@/components/Field/Field.context"
5
5
 
6
6
  export interface LabelProps extends LabelHTMLAttributes<HTMLLabelElement> {
7
7
  /** **(Optional)** Main label for the form element. Accepts any valid JSX or string. */
@@ -1,10 +1,10 @@
1
1
  import clsx from "clsx"
2
2
  import { type FieldsetHTMLAttributes, HTMLAttributes, type JSX, Ref } from "react"
3
3
 
4
- import { StandardSizes } from "../../../src/types"
5
- import { Error as BaseError, type ErrorProps } from "../FieldMarkers/Error"
6
- import { Hint as BaseHint, type HintProps } from "../FieldMarkers/Hint"
7
- import { Legend as BaseLegend, type LegendProps } from "../FieldMarkers/Legend"
4
+ import { Error as BaseError, type ErrorProps } from "@/components/FieldMarkers/Error"
5
+ import { Hint as BaseHint, type HintProps } from "@/components/FieldMarkers/Hint"
6
+ import { Legend as BaseLegend, type LegendProps } from "@/components/FieldMarkers/Legend"
7
+ import { StandardSizes } from "@/types"
8
8
 
9
9
  export interface FieldsetProps extends FieldsetHTMLAttributes<HTMLFieldSetElement> {
10
10
  /** Form elements inside the Fieldset.
@@ -2,7 +2,7 @@ import type { JSX, ReactNode, Ref, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { Black, BrandBlue, Darks, Lights, OfferRed, Tints, White } from "../../types/colors"
5
+ import { Black, BrandBlue, Darks, Lights, OfferRed, Tints, White } from "@/types/colors"
6
6
 
7
7
  export interface FlourishProps extends SVGProps<SVGSVGElement> {
8
8
  /** Specify the text to be highlighted by the Flourish. */
@@ -2,7 +2,7 @@ import type { JSX, Ref, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { LoadingIcon } from "../icons"
5
+ import { LoadingIcon } from "@/components/icons"
6
6
 
7
7
  export interface LoadingSpinnerProps extends SVGProps<SVGSVGElement> {
8
8
  /** **(Optional)** Specify additional CSS classes to be applied to the component. */
@@ -3,9 +3,9 @@ import type { JSX } from "react"
3
3
 
4
4
  import { useCallback, useState } from "react"
5
5
 
6
- import { Button } from "../Button"
7
- import { useField } from "../Field/Field.context"
8
- import { TextInput, type TextInputProps } from "../TextInput"
6
+ import { Button } from "@/components/Button"
7
+ import { useField } from "@/components/Field/Field.context"
8
+ import { TextInput, type TextInputProps } from "@/components/TextInput"
9
9
 
10
10
  export interface PasswordInputProps extends Omit<
11
11
  TextInputProps,
@@ -3,9 +3,9 @@ import type { ForwardRefExoticComponent, HTMLAttributes, JSX, Ref } from "react"
3
3
  import clsx from "clsx"
4
4
  import React from "react"
5
5
 
6
- import { useSlots } from "../../hooks/useSlots"
7
- import { StandardSizes } from "../../types"
8
- import { hasUserBg } from "../../utils"
6
+ import { useSlots } from "@/hooks/useSlots"
7
+ import { StandardSizes } from "@/types"
8
+ import { hasUserBg } from "@/utils"
9
9
 
10
10
  export interface PillProps extends HTMLAttributes<HTMLAnchorElement> {
11
11
  /** **(Optional)** Specify a custom element to override default `a` or `span`. */
@@ -10,8 +10,8 @@ import type { JSX, ReactNode, Ref } from "react"
10
10
  import * as RadixPopover from "@radix-ui/react-popover"
11
11
  import clsx from "clsx"
12
12
 
13
- import { useSlots } from "../../hooks/useSlots"
14
- import { bgClassToColor, hasUserBg } from "../../utils"
13
+ import { useSlots } from "@/hooks/useSlots"
14
+ import { bgClassToColor, hasUserBg } from "@/utils"
15
15
 
16
16
  export interface PopoverProps extends RadixPopoverProps {
17
17
  /** Content inside the Popover.
@@ -2,7 +2,7 @@ import type { HTMLAttributes, JSX, ReactNode, Ref } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { StandardSizes } from "../../types"
5
+ import { StandardSizes } from "@/types"
6
6
 
7
7
  export interface ProseProps extends HTMLAttributes<HTMLDivElement> {
8
8
  /** **(Optional)** Main content inside the component. It can be any valid JSX or string. */
@@ -2,8 +2,8 @@
2
2
  import clsx from "clsx"
3
3
  import { type InputHTMLAttributes, type JSX, Ref } from "react"
4
4
 
5
- import { StandardSizes } from "../../types"
6
- import { useField } from "../Field/Field.context"
5
+ import { useField } from "@/components/Field/Field.context"
6
+ import { StandardSizes } from "@/types"
7
7
 
8
8
  export interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "type"> {
9
9
  /** **(Optional)** Specify additional CSS classes to be applied to the component. */
@@ -1,6 +1,6 @@
1
1
  import { createContext, RefObject, useContext } from "react"
2
2
 
3
- import { StandardSizes } from "../../types"
3
+ import { StandardSizes } from "@/types"
4
4
 
5
5
  interface SearchboxContextValue {
6
6
  buttonId?: string
@@ -5,16 +5,15 @@ import type { FormHTMLAttributes, JSX, RefObject } from "react"
5
5
  import clsx from "clsx"
6
6
  import React, { useCallback, useState } from "react"
7
7
 
8
- import { useId } from "../../hooks/useId"
9
- import { useSlots } from "../../hooks/useSlots"
10
- import { StandardSizes } from "../../types"
11
- import { getSlotProp, hasUserBorder } from "../../utils"
12
- import { Button, type ButtonProps } from "../Button"
13
- import Field from "../Field"
14
- import { FieldLabel } from "../Field/Field"
15
- import { SearchIcon } from "../icons"
16
- import TextInput, { TextInputProps } from "../TextInput"
17
- import { SearchboxContext, useSearchbox } from "./Searchbox.context"
8
+ import { Button, type ButtonProps } from "@/components/Button"
9
+ import { Field, FieldLabel } from "@/components/Field"
10
+ import { SearchIcon } from "@/components/icons"
11
+ import { SearchboxContext, useSearchbox } from "@/components/Searchbox/Searchbox.context"
12
+ import TextInput, { TextInputProps } from "@/components/TextInput"
13
+ import { useId } from "@/hooks/useId"
14
+ import { useSlots } from "@/hooks/useSlots"
15
+ import { StandardSizes } from "@/types"
16
+ import { getSlotProp, hasUserBorder } from "@/utils"
18
17
 
19
18
  export interface SearchboxProps extends FormHTMLAttributes<HTMLFormElement> {
20
19
  /** **(Optional)** Specify a server endpoint to submit the form. Will be ignored if onSubmit is also set. */
@@ -10,8 +10,8 @@ import type {
10
10
 
11
11
  import clsx from "clsx"
12
12
 
13
- import { StandardSizes } from "../../../src/types"
14
- import { useField } from "../Field/Field.context"
13
+ import { useField } from "@/components/Field/Field.context"
14
+ import { StandardSizes } from "@/types"
15
15
 
16
16
  export interface SelectProps extends Omit<SelectHTMLAttributes<HTMLSelectElement>, "size"> {
17
17
  /** **(Optional)** Options inside the Select. This should be a set of `Select.Option` or `Select.OptionGroup` components. */
@@ -3,8 +3,8 @@ import type { ForwardRefExoticComponent, HTMLAttributes, JSX, Ref } from "react"
3
3
  import clsx from "clsx"
4
4
  import React from "react"
5
5
 
6
- import { ChevronRightIcon } from "../icons"
7
- import { Image, ImageProps } from "../Image"
6
+ import { ChevronRightIcon } from "@/components/icons"
7
+ import { Image, ImageProps } from "@/components/Image"
8
8
 
9
9
  export interface SignpostProps extends HTMLAttributes<HTMLDivElement> {
10
10
  /** **(Optional)** Specify a custom element to override default `a`. */
@@ -2,7 +2,8 @@ import type { HTMLAttributes, JSX, Ref } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { hasUserBg } from "../../../src/utils"
5
+ import { hasUserBg } from "@/utils"
6
+
6
7
  export interface SquircleProps extends HTMLAttributes<HTMLDivElement> {
7
8
  /** **(Optional)** Main content inside the component. It can be any valid JSX or string. */
8
9
  children?: React.ReactNode
@@ -3,7 +3,7 @@ import type { ForwardRefExoticComponent, HTMLAttributes, JSX, Ref } from "react"
3
3
  import clsx from "clsx"
4
4
  import React from "react"
5
5
 
6
- import { hasUserBg } from "../../../src/utils"
6
+ import { hasUserBg } from "@/utils"
7
7
 
8
8
  export interface TagProps extends HTMLAttributes<HTMLAnchorElement> {
9
9
  /** **(Optional)** Specify a custom element to override default `a` or `span`. */
@@ -3,8 +3,8 @@ import type { InputHTMLAttributes, JSX, Ref } from "react"
3
3
 
4
4
  import clsx from "clsx"
5
5
 
6
- import { StandardSizes } from "../../../src/types"
7
- import { useField } from "../Field/Field.context"
6
+ import { useField } from "@/components/Field/Field.context"
7
+ import { StandardSizes } from "@/types"
8
8
 
9
9
  export interface TextInputProps extends Omit<
10
10
  InputHTMLAttributes<HTMLInputElement>,
@@ -5,9 +5,9 @@ import type { ChangeEvent, JSX, Ref, TextareaHTMLAttributes } from "react"
5
5
  import clsx from "clsx"
6
6
  import { useState } from "react"
7
7
 
8
- import { useDebounce } from "../../hooks/useDebounce"
9
- import { StandardSizes } from "../../types"
10
- import { useField } from "../Field/Field.context"
8
+ import { useField } from "@/components/Field/Field.context"
9
+ import { useDebounce } from "@/hooks/useDebounce"
10
+ import { StandardSizes } from "@/types"
11
11
 
12
12
  const DEBOUNCE_DELAY = 750
13
13
 
@@ -7,8 +7,11 @@ import clsx from "clsx"
7
7
  import mergeRefs from "merge-refs"
8
8
  import React, { useEffect, useRef } from "react"
9
9
 
10
- import { useSlots } from "../../hooks/useSlots"
11
- import { getFieldElement, sanitizeFieldId } from "./validationsummary-utils"
10
+ import {
11
+ getFieldElement,
12
+ sanitizeFieldId,
13
+ } from "@/components/ValidationSummary/validationsummary-utils"
14
+ import { useSlots } from "@/hooks/useSlots"
12
15
 
13
16
  export interface ValidationSummaryProps extends HTMLAttributes<HTMLDivElement> {
14
17
  /** **(Optional)** Specify if the summary should be focused and the parent form scrolled into view if there are errors.
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string