@ogcio/design-system-react 1.11.1 → 1.11.3

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 (293) hide show
  1. package/dist/accordion/accordion-item.d.ts +11 -0
  2. package/dist/accordion/accordion-item.js +76 -0
  3. package/dist/accordion/accordion.d.ts +10 -0
  4. package/dist/accordion/accordion.js +39 -0
  5. package/dist/alert/alert.d.ts +89 -0
  6. package/dist/alert/alert.js +115 -0
  7. package/dist/assets/logos/gov-of-ireland/harp-gold-text-green.d.ts +2 -0
  8. package/dist/assets/logos/gov-of-ireland/harp-gold-text-green.js +322 -0
  9. package/dist/assets/logos/gov-of-ireland/harp-white.d.ts +2 -0
  10. package/dist/assets/logos/gov-of-ireland/harp-white.js +322 -0
  11. package/dist/assets/logos/harp/harp-white.d.ts +2 -0
  12. package/dist/assets/logos/harp/harp-white.js +60 -0
  13. package/dist/autocomplete/autocomplete.d.ts +4 -0
  14. package/dist/autocomplete/autocomplete.js +252 -0
  15. package/dist/autocomplete/types.d.ts +61 -0
  16. package/dist/autocomplete/types.js +13 -0
  17. package/dist/blockquote/blockquote.d.ts +3 -0
  18. package/dist/blockquote/blockquote.js +7 -0
  19. package/dist/breadcrumbs/breadcrumbs.d.ts +5 -0
  20. package/dist/breadcrumbs/breadcrumbs.js +38 -0
  21. package/dist/breadcrumbs/types.d.ts +17 -0
  22. package/dist/breadcrumbs/types.js +1 -0
  23. package/dist/button/button.d.ts +9 -0
  24. package/dist/button/button.js +38 -0
  25. package/dist/button/helpers.d.ts +13 -0
  26. package/dist/button/helpers.js +39 -0
  27. package/dist/button/types.d.ts +13 -0
  28. package/dist/button/types.js +4 -0
  29. package/dist/button-group/button-group.d.ts +21 -0
  30. package/dist/button-group/button-group.js +85 -0
  31. package/dist/card/card-legacy.d.ts +5 -0
  32. package/dist/card/card-legacy.js +68 -0
  33. package/dist/card/card-next.d.ts +13 -0
  34. package/dist/card/card-next.js +84 -0
  35. package/dist/card/card.d.ts +2 -0
  36. package/dist/card/card.js +26 -0
  37. package/dist/card/types.d.ts +92 -0
  38. package/dist/card/types.js +1 -0
  39. package/dist/checkbox/checkbox-group.d.ts +4 -0
  40. package/dist/checkbox/checkbox-group.js +7 -0
  41. package/dist/checkbox/checkbox.d.ts +4 -0
  42. package/dist/checkbox/checkbox.js +7 -0
  43. package/dist/checkbox/types.d.ts +14 -0
  44. package/dist/checkbox/types.js +5 -0
  45. package/dist/chip/chip.d.ts +9 -0
  46. package/dist/chip/chip.js +37 -0
  47. package/dist/cn.d.ts +2 -0
  48. package/dist/cn.js +19 -0
  49. package/dist/combo-box/combo-box.content.d.ts +12 -0
  50. package/dist/combo-box/combo-box.content.js +685 -0
  51. package/dist/combo-box/combo-box.d.ts +2 -0
  52. package/dist/combo-box/combo-box.js +17 -0
  53. package/dist/combo-box/dropdown-item.d.ts +2 -0
  54. package/dist/combo-box/dropdown-item.js +154 -0
  55. package/dist/combo-box/types.d.ts +18 -0
  56. package/dist/combo-box/types.js +1 -0
  57. package/dist/common/types.d.ts +7 -0
  58. package/dist/common/types.js +1 -0
  59. package/dist/container/container.d.ts +16 -0
  60. package/dist/container/container.js +37 -0
  61. package/dist/cookie-banner/cookie-banner.content.d.ts +3 -0
  62. package/dist/cookie-banner/cookie-banner.content.js +21 -0
  63. package/dist/cookie-banner/cookie-banner.d.ts +12 -0
  64. package/dist/cookie-banner/cookie-banner.js +31 -0
  65. package/dist/details/details.d.ts +4 -0
  66. package/dist/details/details.js +55 -0
  67. package/dist/drawer/drawer.content.d.ts +3 -0
  68. package/dist/drawer/drawer.content.js +68 -0
  69. package/dist/drawer/drawer.d.ts +26 -0
  70. package/dist/drawer/drawer.js +48 -0
  71. package/dist/error-text/error-text.d.ts +7 -0
  72. package/dist/error-text/error-text.js +40 -0
  73. package/dist/error-text/types.d.ts +8 -0
  74. package/dist/error-text/types.js +1 -0
  75. package/dist/file-upload/file-upload.d.ts +9 -0
  76. package/dist/file-upload/file-upload.js +6 -0
  77. package/dist/footer/footer.d.ts +11 -0
  78. package/dist/footer/footer.js +108 -0
  79. package/dist/forms/form-field-with-tag/form-field-with-tag.d.ts +24 -0
  80. package/dist/forms/form-field-with-tag/form-field-with-tag.js +50 -0
  81. package/dist/forms/form-field.d.ts +11 -0
  82. package/dist/forms/form-field.js +41 -0
  83. package/dist/forms/form.d.ts +4 -0
  84. package/dist/forms/form.js +5 -0
  85. package/dist/header/components/header-menu.d.ts +13 -0
  86. package/dist/header/components/header-menu.js +126 -0
  87. package/dist/header/components/header-search.d.ts +7 -0
  88. package/dist/header/components/header-search.js +59 -0
  89. package/dist/header/components/header-slot.d.ts +12 -0
  90. package/dist/header/components/header-slot.js +129 -0
  91. package/dist/header/header.d.ts +2 -0
  92. package/dist/header/header.js +201 -0
  93. package/dist/header/helper.d.ts +2 -0
  94. package/dist/header/helper.js +79 -0
  95. package/dist/header/types.d.ts +76 -0
  96. package/dist/header/types.js +1 -0
  97. package/dist/heading/heading.d.ts +82 -0
  98. package/dist/heading/heading.js +50 -0
  99. package/dist/hint-text/hint-text.d.ts +7 -0
  100. package/dist/hint-text/hint-text.js +30 -0
  101. package/dist/hint-text/types.d.ts +7 -0
  102. package/dist/hint-text/types.js +1 -0
  103. package/dist/hooks/use-breakpoint.d.ts +12 -0
  104. package/dist/hooks/use-breakpoint.js +24 -0
  105. package/dist/hooks/use-dom-id.d.ts +1 -0
  106. package/dist/hooks/use-dom-id.js +8 -0
  107. package/dist/i18n/config.d.ts +7 -0
  108. package/dist/i18n/config.js +13 -0
  109. package/dist/i18n/utility.d.ts +1 -0
  110. package/dist/i18n/utility.js +5 -0
  111. package/dist/i18next-DxWa09nx.js +1395 -0
  112. package/dist/icon/icon.d.ts +15 -0
  113. package/dist/icon/icon.js +173 -0
  114. package/dist/icon/icons.d.ts +2 -0
  115. package/dist/icon/icons.js +144 -0
  116. package/dist/icon/svg.d.ts +7 -0
  117. package/dist/icon/svg.js +22 -0
  118. package/dist/icon/svgs/bluesky.d.ts +5 -0
  119. package/dist/icon/svgs/bluesky.js +24 -0
  120. package/dist/icon/svgs/facebook.d.ts +5 -0
  121. package/dist/icon/svgs/facebook.js +24 -0
  122. package/dist/icon/svgs/instagram.d.ts +5 -0
  123. package/dist/icon/svgs/instagram.js +24 -0
  124. package/dist/icon/svgs/linkedin.d.ts +5 -0
  125. package/dist/icon/svgs/linkedin.js +24 -0
  126. package/dist/icon/svgs/placeholder.d.ts +5 -0
  127. package/dist/icon/svgs/placeholder.js +30 -0
  128. package/dist/icon/svgs/threads.d.ts +5 -0
  129. package/dist/icon/svgs/threads.js +24 -0
  130. package/dist/icon/svgs/tiktok.d.ts +5 -0
  131. package/dist/icon/svgs/tiktok.js +24 -0
  132. package/dist/icon/svgs/x.d.ts +5 -0
  133. package/dist/icon/svgs/x.js +24 -0
  134. package/dist/icon/svgs/youtube.d.ts +5 -0
  135. package/dist/icon/svgs/youtube.js +29 -0
  136. package/dist/icon-button/icon-button.d.ts +10 -0
  137. package/dist/icon-button/icon-button.js +43 -0
  138. package/dist/index-DNkhmzZp.js +2419 -0
  139. package/dist/index-ntYL1VRC.js +64 -0
  140. package/dist/index.d.ts +102 -0
  141. package/dist/index.js +190 -0
  142. package/dist/input-checkbox/input-checkbox.d.ts +3 -0
  143. package/dist/input-checkbox/input-checkbox.js +51 -0
  144. package/dist/input-checkbox/types.d.ts +12 -0
  145. package/dist/input-checkbox/types.js +8 -0
  146. package/dist/input-checkbox-group/input-checkbox-group.d.ts +2 -0
  147. package/dist/input-checkbox-group/input-checkbox-group.js +24 -0
  148. package/dist/input-checkbox-group/types.d.ts +7 -0
  149. package/dist/input-checkbox-group/types.js +1 -0
  150. package/dist/input-file/input-file.d.ts +2 -0
  151. package/dist/input-file/input-file.js +20 -0
  152. package/dist/input-file/types.d.ts +1 -0
  153. package/dist/input-file/types.js +1 -0
  154. package/dist/input-password/input-password.d.ts +2 -0
  155. package/dist/input-password/input-password.js +30 -0
  156. package/dist/input-password/types.d.ts +2 -0
  157. package/dist/input-password/types.js +1 -0
  158. package/dist/input-radio/input-radio.d.ts +3 -0
  159. package/dist/input-radio/input-radio.js +68 -0
  160. package/dist/input-radio/types.d.ts +14 -0
  161. package/dist/input-radio/types.js +8 -0
  162. package/dist/input-radio-group/input-radio-group.d.ts +3 -0
  163. package/dist/input-radio-group/input-radio-group.js +28 -0
  164. package/dist/input-radio-group/types.d.ts +5 -0
  165. package/dist/input-radio-group/types.js +1 -0
  166. package/dist/input-text/input-text.d.ts +19 -0
  167. package/dist/input-text/input-text.js +140 -0
  168. package/dist/input-text/type.d.ts +27 -0
  169. package/dist/input-text/type.js +1 -0
  170. package/dist/label/label.d.ts +11 -0
  171. package/dist/label/label.js +27 -0
  172. package/dist/label/types.d.ts +7 -0
  173. package/dist/label/types.js +1 -0
  174. package/dist/link/link.d.ts +47 -0
  175. package/dist/link/link.js +104 -0
  176. package/dist/list/list.d.ts +13 -0
  177. package/dist/list/list.js +44 -0
  178. package/dist/list-item/list-item.d.ts +9 -0
  179. package/dist/list-item/list-item.js +19 -0
  180. package/dist/modal/modal.content.d.ts +2 -0
  181. package/dist/modal/modal.content.js +19 -0
  182. package/dist/modal/modal.d.ts +11 -0
  183. package/dist/modal/modal.js +222 -0
  184. package/dist/modal/types.d.ts +39 -0
  185. package/dist/modal/types.js +1 -0
  186. package/dist/pagination/pagination.d.ts +8 -0
  187. package/dist/pagination/pagination.js +104 -0
  188. package/dist/paragraph/paragraph.d.ts +17 -0
  189. package/dist/paragraph/paragraph.js +60 -0
  190. package/dist/phase-banner/phase-banner.d.ts +5 -0
  191. package/dist/phase-banner/phase-banner.js +10 -0
  192. package/dist/popover/popover.d.ts +2 -0
  193. package/dist/popover/popover.js +946 -0
  194. package/dist/popover/types.d.ts +10 -0
  195. package/dist/popover/types.js +1 -0
  196. package/dist/primitives/anchor.d.ts +7 -0
  197. package/dist/primitives/anchor.js +14 -0
  198. package/dist/primitives/input.d.ts +3 -0
  199. package/dist/primitives/input.js +9 -0
  200. package/dist/progress-bar/progress-bar.d.ts +7 -0
  201. package/dist/progress-bar/progress-bar.js +40 -0
  202. package/dist/progress-stepper/progress-stepper.d.ts +5 -0
  203. package/dist/progress-stepper/progress-stepper.js +198 -0
  204. package/dist/progress-stepper/types.d.ts +49 -0
  205. package/dist/progress-stepper/types.js +7 -0
  206. package/dist/radio/radio-group.d.ts +4 -0
  207. package/dist/radio/radio-group.js +7 -0
  208. package/dist/radio/radio.d.ts +4 -0
  209. package/dist/radio/radio.js +7 -0
  210. package/dist/radio/types.d.ts +14 -0
  211. package/dist/radio/types.js +5 -0
  212. package/dist/score-select/score-select.d.ts +3 -0
  213. package/dist/score-select/score-select.js +124 -0
  214. package/dist/score-select/type.d.ts +14 -0
  215. package/dist/score-select/type.js +1 -0
  216. package/dist/section-break/section-break.d.ts +7 -0
  217. package/dist/section-break/section-break.js +38 -0
  218. package/dist/select/select-menu.d.ts +7 -0
  219. package/dist/select/select-menu.js +141 -0
  220. package/dist/select/select-native.d.ts +5 -0
  221. package/dist/select/select-native.js +27 -0
  222. package/dist/select/select-next.d.ts +5 -0
  223. package/dist/select/select-next.js +162 -0
  224. package/dist/select/select.d.ts +5 -0
  225. package/dist/select/select.js +10 -0
  226. package/dist/select/types.d.ts +62 -0
  227. package/dist/select/types.js +1 -0
  228. package/dist/side-nav/side-nav.d.ts +6 -0
  229. package/dist/side-nav/side-nav.js +171 -0
  230. package/dist/side-nav/types.d.ts +18 -0
  231. package/dist/side-nav/types.js +1 -0
  232. package/dist/spinner/spinner.d.ts +35 -0
  233. package/dist/spinner/spinner.js +84 -0
  234. package/dist/stack/stack.d.ts +3 -0
  235. package/dist/stack/stack.js +186 -0
  236. package/dist/stack/types.d.ts +32 -0
  237. package/dist/stack/types.js +1 -0
  238. package/dist/styles.css +3 -0
  239. package/dist/summary-list/summary-list.d.ts +14 -0
  240. package/dist/summary-list/summary-list.js +46 -0
  241. package/dist/summary-list/types.d.ts +20 -0
  242. package/dist/summary-list/types.js +1 -0
  243. package/dist/table/caption.d.ts +5 -0
  244. package/dist/table/caption.js +15 -0
  245. package/dist/table/column-group.d.ts +2 -0
  246. package/dist/table/column-group.js +10 -0
  247. package/dist/table/column.d.ts +2 -0
  248. package/dist/table/column.js +10 -0
  249. package/dist/table/table-body.d.ts +2 -0
  250. package/dist/table/table-body.js +10 -0
  251. package/dist/table/table-content.d.ts +1 -0
  252. package/dist/table/table-content.js +26 -0
  253. package/dist/table/table-data.d.ts +8 -0
  254. package/dist/table/table-data.js +35 -0
  255. package/dist/table/table-foot.d.ts +2 -0
  256. package/dist/table/table-foot.js +10 -0
  257. package/dist/table/table-head.d.ts +2 -0
  258. package/dist/table/table-head.js +10 -0
  259. package/dist/table/table-header.d.ts +8 -0
  260. package/dist/table/table-header.js +35 -0
  261. package/dist/table/table-row.d.ts +2 -0
  262. package/dist/table/table-row.js +10 -0
  263. package/dist/table/table.d.ts +25 -0
  264. package/dist/table/table.js +33 -0
  265. package/dist/tabs/tab-item.d.ts +17 -0
  266. package/dist/tabs/tab-item.js +42 -0
  267. package/dist/tabs/tab-list.d.ts +5 -0
  268. package/dist/tabs/tab-list.js +62 -0
  269. package/dist/tabs/tab-panel.d.ts +7 -0
  270. package/dist/tabs/tab-panel.js +22 -0
  271. package/dist/tabs/tabs-content.d.ts +1 -0
  272. package/dist/tabs/tabs-content.js +17 -0
  273. package/dist/tabs/tabs.d.ts +7 -0
  274. package/dist/tabs/tabs.js +24 -0
  275. package/dist/tag/tag.d.ts +19 -0
  276. package/dist/tag/tag.js +27 -0
  277. package/dist/text-input/text-input.d.ts +23 -0
  278. package/dist/text-input/text-input.js +7 -0
  279. package/dist/textarea/textarea.d.ts +13 -0
  280. package/dist/textarea/textarea.js +98 -0
  281. package/dist/toast/ds-toast.d.ts +82 -0
  282. package/dist/toast/ds-toast.js +116 -0
  283. package/dist/toast/toast.d.ts +6 -0
  284. package/dist/toast/toast.js +125 -0
  285. package/dist/toast/types.d.ts +24 -0
  286. package/dist/toast/types.js +1 -0
  287. package/dist/tooltip/tooltip.d.ts +10 -0
  288. package/dist/tooltip/tooltip.js +67 -0
  289. package/dist/utilities.d.ts +9 -0
  290. package/dist/utilities.js +13 -0
  291. package/dist/utils/utilities.d.ts +24 -0
  292. package/dist/utils/utilities.js +20 -0
  293. package/package.json +4 -4
@@ -0,0 +1,10 @@
1
+ import { Options as PopperOptions } from '@popperjs/core';
2
+ export type PopoverProps = {
3
+ triggerRef: React.RefObject<any> | null;
4
+ children: React.ReactNode;
5
+ className?: string;
6
+ open: boolean;
7
+ onOpenChange: (open: boolean) => void;
8
+ options?: PopperOptions;
9
+ extraRefs?: React.RefObject<any>[];
10
+ };
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ export type AnchorProps = React.AnchorHTMLAttributes<HTMLAnchorElement> & {
3
+ external?: boolean;
4
+ asChild?: boolean;
5
+ };
6
+ declare const Anchor: ({ external, asChild, children, ...props }: AnchorProps) => import("react/jsx-runtime").JSX.Element;
7
+ export default Anchor;
@@ -0,0 +1,14 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { a } from "../index-ntYL1VRC.js";
3
+ const f = ({
4
+ external: o = !1,
5
+ asChild: r,
6
+ children: e,
7
+ ...n
8
+ }) => /* @__PURE__ */ t(r ? a : "a", { ...n, ...o && {
9
+ target: "_blank",
10
+ rel: "noreferrer noopener"
11
+ }, children: e });
12
+ export {
13
+ f as default
14
+ };
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ export type InputProps = React.InputHTMLAttributes<HTMLInputElement>;
3
+ export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,9 @@
1
+ import { jsx as p } from "react/jsx-runtime";
2
+ import r from "react";
3
+ const a = r.forwardRef(
4
+ (t, o) => /* @__PURE__ */ p("input", { ref: o, ...t })
5
+ );
6
+ a.displayName = "Input";
7
+ export {
8
+ a as Input
9
+ };
@@ -0,0 +1,7 @@
1
+ export type ProgressBarProps = {
2
+ max?: number;
3
+ value?: number;
4
+ isIndeterminate?: boolean;
5
+ label?: string;
6
+ };
7
+ export declare function ProgressBar({ value, max, isIndeterminate, label, }: ProgressBarProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,40 @@
1
+ import { jsxs as l, jsx as a } from "react/jsx-runtime";
2
+ import { cn as n } from "../cn.js";
3
+ import { translate as t } from "../i18n/utility.js";
4
+ function d({
5
+ value: s = 0,
6
+ max: e = 100,
7
+ isIndeterminate: r,
8
+ label: i
9
+ }) {
10
+ const o = s * 100 / e;
11
+ return /* @__PURE__ */ l("div", { className: "gi-progress-bar-container", children: [
12
+ /* @__PURE__ */ a(
13
+ "div",
14
+ {
15
+ role: "progressbar",
16
+ "aria-valuenow": r ? void 0 : s,
17
+ "aria-valuemin": 0,
18
+ "aria-valuemax": e,
19
+ "aria-label": t("progressBar.progressBar", {
20
+ defaultValue: "Progress bar"
21
+ }),
22
+ "data-testid": "progress-bar",
23
+ className: "gi-progress-bar",
24
+ children: /* @__PURE__ */ a(
25
+ "div",
26
+ {
27
+ className: n({
28
+ "gi-progress-bar-indeterminate": r
29
+ }),
30
+ style: r ? {} : { width: `${o}%` }
31
+ }
32
+ )
33
+ }
34
+ ),
35
+ i && /* @__PURE__ */ a("span", { children: i })
36
+ ] });
37
+ }
38
+ export {
39
+ d as ProgressBar
40
+ };
@@ -0,0 +1,5 @@
1
+ import { FC } from 'react';
2
+ import { InnerStepProps, ProgressStepperProps, StepItemProps } from './types.js';
3
+ export declare const Step: ({ isCurrentStep, isCompleted, isLastStep, stepNumber, orientation, children, indicator, verticalSlot, defaultOpen, dataTestId, ariaLabel, verticalGap, }: InnerStepProps) => import("react/jsx-runtime").JSX.Element;
4
+ export declare const StepItem: FC<StepItemProps>;
5
+ export declare const ProgressStepper: ({ children, currentStepIndex, orientation, indicator, completeAll, dataTestId, className, verticalGap, }: ProgressStepperProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,198 @@
1
+ import { jsxs as f, jsx as r } from "react/jsx-runtime";
2
+ import { Children as P } from "react";
3
+ import { cn as $ } from "../cn.js";
4
+ import { Icon as z } from "../icon/icon.js";
5
+ import { ProgressStepperIndicator as v } from "./types.js";
6
+ const j = (e) => `calc(100% + ${e * 4 - 36}px)`, k = ({
7
+ isNextStep: e,
8
+ orientation: t = "horizontal",
9
+ isCurrentStep: s,
10
+ isCompleted: a,
11
+ verticalGap: l
12
+ }) => {
13
+ const o = t === "vertical" ? { height: j(l) } : void 0;
14
+ return /* @__PURE__ */ f(
15
+ "div",
16
+ {
17
+ "data-orientation": t,
18
+ "data-next": e,
19
+ "data-completed": a,
20
+ "data-current": s,
21
+ className: "gi-progress-stepper-step-connector",
22
+ "aria-hidden": "true",
23
+ style: o,
24
+ children: [
25
+ /* @__PURE__ */ r("span", {}),
26
+ s ? /* @__PURE__ */ r("span", {}) : null
27
+ ]
28
+ }
29
+ );
30
+ }, x = (e) => ({
31
+ [v.Hashtag]: {
32
+ completed: /* @__PURE__ */ r(z, { icon: "check" }),
33
+ current: () => "#",
34
+ next: () => "#"
35
+ },
36
+ [v.Number]: {
37
+ completed: /* @__PURE__ */ r(z, { icon: "check" }),
38
+ current: (s) => s,
39
+ next: (s) => s
40
+ }
41
+ })[e], V = (e, t, s, a) => {
42
+ const { current: l, completed: o, next: i } = x(
43
+ e || v.Hashtag
44
+ );
45
+ return s ? o : a ? l(t) : i(t);
46
+ }, B = ({
47
+ isCurrentStep: e,
48
+ isCompleted: t,
49
+ isLastStep: s,
50
+ stepNumber: a,
51
+ orientation: l,
52
+ children: o,
53
+ indicator: i,
54
+ verticalSlot: n,
55
+ defaultOpen: d,
56
+ dataTestId: u,
57
+ ariaLabel: g,
58
+ verticalGap: h
59
+ }) => {
60
+ const m = !t && !e, c = l === "vertical" && (e || d || t), p = !!o;
61
+ return /* @__PURE__ */ f("div", { className: "gi-relative", children: [
62
+ /* @__PURE__ */ f(
63
+ "div",
64
+ {
65
+ className: "gi-progress-stepper-step-container",
66
+ "data-orientation": l,
67
+ "data-current": e,
68
+ "data-completed": t,
69
+ "data-next": m,
70
+ "data-indicator": i,
71
+ role: "listitem",
72
+ "aria-labelledby": `step-label-${a}`,
73
+ "data-testid": u || `step-label-${a}`,
74
+ "aria-label": p ? void 0 : g,
75
+ children: [
76
+ /* @__PURE__ */ r("div", { className: "gi-progress-stepper-step", "data-indicator": i, children: V(
77
+ i || v.Hashtag,
78
+ a,
79
+ t,
80
+ e
81
+ ) }),
82
+ p && /* @__PURE__ */ r(
83
+ "div",
84
+ {
85
+ className: "gi-progress-stepper-step-label",
86
+ "data-orientation": l,
87
+ id: `step-label-${a}`,
88
+ children: o
89
+ }
90
+ )
91
+ ]
92
+ }
93
+ ),
94
+ s ? null : /* @__PURE__ */ r(
95
+ k,
96
+ {
97
+ isCurrentStep: e,
98
+ isNextStep: m,
99
+ isCompleted: t,
100
+ orientation: l,
101
+ stepNumber: a,
102
+ verticalGap: h
103
+ }
104
+ ),
105
+ c && n && /* @__PURE__ */ r(
106
+ "div",
107
+ {
108
+ "data-testid": `vertical-step-slot-${a - 1}`,
109
+ className: $("gi-ml-10", {
110
+ "gi-pt-5": p,
111
+ "-gi-mt-[34px]": !p && n
112
+ }),
113
+ children: n
114
+ }
115
+ )
116
+ ] });
117
+ }, I = () => null, J = ({
118
+ children: e,
119
+ currentStepIndex: t = 0,
120
+ orientation: s = "horizontal",
121
+ indicator: a = "number",
122
+ completeAll: l,
123
+ dataTestId: o,
124
+ className: i,
125
+ verticalGap: n = 14
126
+ }) => {
127
+ var g, h;
128
+ const d = (h = (g = e[t]) == null ? void 0 : g.props) == null ? void 0 : h.children, u = s === "horizontal" && d;
129
+ return /* @__PURE__ */ f(
130
+ "div",
131
+ {
132
+ className: $("gi-w-full", {
133
+ "gi-flex": s === "vertical"
134
+ }),
135
+ children: [
136
+ /* @__PURE__ */ r(
137
+ "div",
138
+ {
139
+ "data-testid": "progress-stepper",
140
+ className: $(
141
+ "gi-progress-stepper",
142
+ {
143
+ [`gi-gap-${n}`]: s === "vertical"
144
+ },
145
+ i
146
+ ),
147
+ "data-orientation": s,
148
+ role: "list",
149
+ "aria-live": "polite",
150
+ children: P.map(e, (m, c) => {
151
+ var b, N;
152
+ const {
153
+ label: p = "",
154
+ defaultOpen: H,
155
+ ariaLabel: w
156
+ } = m.props, [y, L, O] = [
157
+ !l && t === c,
158
+ c === e.length - 1,
159
+ l || c < t && c !== t
160
+ ];
161
+ return /* @__PURE__ */ r("div", { className: "gi-w-full", children: /* @__PURE__ */ r(
162
+ B,
163
+ {
164
+ stepNumber: c + 1,
165
+ isCurrentStep: y,
166
+ isCompleted: O,
167
+ orientation: s,
168
+ isLastStep: L,
169
+ verticalSlot: (N = (b = e[c]) == null ? void 0 : b.props) == null ? void 0 : N.children,
170
+ defaultOpen: H,
171
+ indicator: a,
172
+ dataTestId: o,
173
+ ariaLabel: w,
174
+ verticalGap: n,
175
+ children: p
176
+ },
177
+ o || `progress-stepper-step-${c}`
178
+ ) });
179
+ })
180
+ }
181
+ ),
182
+ u && /* @__PURE__ */ r(
183
+ "div",
184
+ {
185
+ className: "gi-h-full",
186
+ "data-testid": `horizontal-step-slot-${t}`,
187
+ children: d
188
+ }
189
+ )
190
+ ]
191
+ }
192
+ );
193
+ };
194
+ export {
195
+ J as ProgressStepper,
196
+ B as Step,
197
+ I as StepItem
198
+ };
@@ -0,0 +1,49 @@
1
+ type Orientation = 'vertical' | 'horizontal';
2
+ export declare const ProgressStepperIndicator: {
3
+ readonly Hashtag: "hashtag";
4
+ readonly Number: "number";
5
+ };
6
+ export type ProgressStepperIndicatorType = (typeof ProgressStepperIndicator)[keyof typeof ProgressStepperIndicator];
7
+ export type Step = {
8
+ label: string;
9
+ slot: React.ReactElement;
10
+ };
11
+ export type StepItemProps = {
12
+ label?: string;
13
+ children?: React.ReactNode;
14
+ defaultOpen?: boolean;
15
+ ariaLabel?: string;
16
+ };
17
+ export type ProgressStepperProps = {
18
+ children: React.ReactElement<InnerStepProps>[];
19
+ currentStepIndex?: number;
20
+ orientation?: Orientation;
21
+ completeAll?: boolean;
22
+ dataTestId?: string;
23
+ indicator?: ProgressStepperIndicatorType;
24
+ className?: string;
25
+ verticalGap?: number;
26
+ };
27
+ export type InnerStepProps = {
28
+ children: string;
29
+ isCurrentStep: boolean;
30
+ isLastStep: boolean;
31
+ isCompleted: boolean;
32
+ stepNumber: number;
33
+ orientation?: Orientation;
34
+ indicator?: ProgressStepperIndicatorType;
35
+ verticalSlot?: React.ReactNode;
36
+ defaultOpen?: boolean;
37
+ dataTestId?: string;
38
+ ariaLabel?: string;
39
+ verticalGap: number;
40
+ };
41
+ export type ConnectorProps = {
42
+ stepNumber: number;
43
+ isNextStep: boolean;
44
+ isCurrentStep: boolean;
45
+ isCompleted: boolean;
46
+ orientation?: Orientation;
47
+ verticalGap: number;
48
+ };
49
+ export {};
@@ -0,0 +1,7 @@
1
+ const r = {
2
+ Hashtag: "hashtag",
3
+ Number: "number"
4
+ };
5
+ export {
6
+ r as ProgressStepperIndicator
7
+ };
@@ -0,0 +1,4 @@
1
+ /**
2
+ * @deprecated Use <InputRadioGroup /> instead of <RadioGroup />.
3
+ */
4
+ export declare const RadioGroup: import('react').FC<import('react').PropsWithChildren<import('../index.js').InputRadioGroupProps>>;
@@ -0,0 +1,7 @@
1
+ "use client";
2
+ import { InputRadioGroup as o } from "../input-radio-group/input-radio-group.js";
3
+ const p = o;
4
+ p.displayName = "RadioGroup";
5
+ export {
6
+ p as RadioGroup
7
+ };
@@ -0,0 +1,4 @@
1
+ /**
2
+ * @deprecated Use `InputRadio` instead of `Radio`.
3
+ */
4
+ export declare const Radio: import('react').FC<import('../index.js').InputRadioProps>;
@@ -0,0 +1,7 @@
1
+ "use client";
2
+ import { InputRadio as o } from "../input-radio/input-radio.js";
3
+ const i = o;
4
+ i.displayName = "Radio";
5
+ export {
6
+ i as Radio
7
+ };
@@ -0,0 +1,14 @@
1
+ import { InputRadioSizeType, InputRadioProps } from '../input-radio/types.js';
2
+ import { InputRadioGroupProps } from '../input-radio-group/types.js';
3
+ /** @deprecated Use InputRadioSizeType instead */
4
+ export type RadioSizeType = InputRadioSizeType;
5
+ /** @deprecated Use InputRadioProps instead */
6
+ export type RadioProps = InputRadioProps;
7
+ /** @deprecated Use InputRadioSizeEnum instead */
8
+ export declare const RadioSizeEnum: {
9
+ readonly Large: "lg";
10
+ readonly Medium: "md";
11
+ readonly Small: "sm";
12
+ };
13
+ /** @deprecated Use InputRadioGroupProps instead */
14
+ export type RadioGroupProps = InputRadioGroupProps;
@@ -0,0 +1,5 @@
1
+ import { InputRadioSizeEnum as o } from "../input-radio/types.js";
2
+ const m = o;
3
+ export {
4
+ m as RadioSizeEnum
5
+ };
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ import { ScoreSelectProps } from './type.js';
3
+ export declare const ScoreSelect: React.FC<ScoreSelectProps>;
@@ -0,0 +1,124 @@
1
+ "use client";
2
+ import { jsx as r, jsxs as d } from "react/jsx-runtime";
3
+ import f from "react";
4
+ import { ButtonGroup as k, ButtonGroupItem as y } from "../button-group/button-group.js";
5
+ import { FormField as N } from "../forms/form-field.js";
6
+ const G = ({
7
+ name: p,
8
+ size: $ = "medium",
9
+ value: s,
10
+ label: x,
11
+ hint: i,
12
+ leftLabel: a,
13
+ rightLabel: u,
14
+ onChange: c,
15
+ type: I
16
+ }) => {
17
+ var o, n;
18
+ const t = f.useId(), v = `${t}-label`, b = i ? `${t}-hint` : void 0;
19
+ let l = [];
20
+ switch (I) {
21
+ case "1-5": {
22
+ l = [
23
+ { value: "1", label: "1" },
24
+ { value: "2", label: "2" },
25
+ { value: "3", label: "3" },
26
+ { value: "4", label: "4" },
27
+ { value: "5", label: "5" }
28
+ ];
29
+ break;
30
+ }
31
+ case "1-7": {
32
+ l = [
33
+ { value: "1", label: "1" },
34
+ { value: "2", label: "2" },
35
+ { value: "3", label: "3" },
36
+ { value: "4", label: "4" },
37
+ { value: "5", label: "5" },
38
+ { value: "6", label: "6" },
39
+ { value: "7", label: "7" }
40
+ ];
41
+ break;
42
+ }
43
+ case "0-10": {
44
+ l = [
45
+ { value: "0", label: "0" },
46
+ { value: "1", label: "1" },
47
+ { value: "2", label: "2" },
48
+ { value: "3", label: "3" },
49
+ { value: "4", label: "4" },
50
+ { value: "5", label: "5" },
51
+ { value: "6", label: "6" },
52
+ { value: "7", label: "7" },
53
+ { value: "8", label: "8" },
54
+ { value: "9", label: "9" },
55
+ { value: "10", label: "10" }
56
+ ];
57
+ break;
58
+ }
59
+ }
60
+ return /* @__PURE__ */ r(
61
+ N,
62
+ {
63
+ className: "gi-w-full",
64
+ label: { text: x, id: v },
65
+ hint: i ? { text: i, id: b } : void 0,
66
+ children: /* @__PURE__ */ d(
67
+ "div",
68
+ {
69
+ className: "gi-score-select-button-group",
70
+ role: "group",
71
+ "aria-labelledby": v,
72
+ "aria-describedby": b,
73
+ children: [
74
+ a && u && l.length > 2 && /* @__PURE__ */ d("div", { className: "gi-score-select-labels-responsive", "aria-hidden": "true", children: [
75
+ /* @__PURE__ */ d("div", { children: [
76
+ (o = l[0]) == null ? void 0 : o.label,
77
+ " – ",
78
+ a
79
+ ] }),
80
+ /* @__PURE__ */ d("div", { children: [
81
+ (n = l.at(-1)) == null ? void 0 : n.label,
82
+ " – ",
83
+ u
84
+ ] })
85
+ ] }),
86
+ /* @__PURE__ */ r(
87
+ k,
88
+ {
89
+ name: p,
90
+ size: $,
91
+ defaultValue: s,
92
+ onChange: (e) => c == null ? void 0 : c(e),
93
+ role: "radiogroup",
94
+ "aria-labelledby": v,
95
+ "aria-describedby": b,
96
+ children: l.map((e) => {
97
+ var m, h;
98
+ return /* @__PURE__ */ r(
99
+ y,
100
+ {
101
+ value: e.value,
102
+ role: "radio",
103
+ "aria-checked": s === e.value,
104
+ "aria-label": `${e.label}${a && e.value === ((m = l[0]) == null ? void 0 : m.value) ? ` - ${a}` : ""}${u && e.value === ((h = l.at(-1)) == null ? void 0 : h.value) ? ` - ${u}` : ""}`,
105
+ children: e.label
106
+ },
107
+ e.value
108
+ );
109
+ })
110
+ }
111
+ ),
112
+ (a || u) && /* @__PURE__ */ d("div", { className: "gi-score-select-labels", "aria-hidden": "true", children: [
113
+ /* @__PURE__ */ r("div", { children: a }),
114
+ /* @__PURE__ */ r("div", { children: u })
115
+ ] })
116
+ ]
117
+ }
118
+ )
119
+ }
120
+ );
121
+ };
122
+ export {
123
+ G as ScoreSelect
124
+ };
@@ -0,0 +1,14 @@
1
+ import { ButtonSize } from '../button/types.js';
2
+ type ScoreSelectType = '1-5' | '1-7' | '0-10';
3
+ export type ScoreSelectProps = {
4
+ name: string;
5
+ value?: string;
6
+ size?: ButtonSize;
7
+ label: string;
8
+ hint?: string;
9
+ leftLabel?: string;
10
+ rightLabel?: string;
11
+ type: ScoreSelectType;
12
+ onChange?: (value: string) => void;
13
+ };
14
+ export {};
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,7 @@
1
+ export type SectionBreakSize = 'sm' | 'md' | 'lg' | 'xl';
2
+ export type SectionBreakProps = {
3
+ size?: SectionBreakSize;
4
+ color?: string;
5
+ dataTestid?: string;
6
+ };
7
+ export declare function SectionBreak({ size, color, dataTestid, }: SectionBreakProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,38 @@
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { cn as s } from "../cn.js";
3
+ import { translate as o } from "../i18n/utility.js";
4
+ function m({
5
+ size: a = "sm",
6
+ color: r = "gi-border-gray-400",
7
+ dataTestid: t
8
+ }) {
9
+ let e = "gi-section-break-sm";
10
+ switch (a) {
11
+ case "md": {
12
+ e = "gi-section-break-md";
13
+ break;
14
+ }
15
+ case "lg": {
16
+ e = "gi-section-break-lg";
17
+ break;
18
+ }
19
+ case "xl": {
20
+ e = "gi-section-break-xl";
21
+ break;
22
+ }
23
+ }
24
+ return /* @__PURE__ */ i(
25
+ "hr",
26
+ {
27
+ "data-testid": t,
28
+ className: s(e, r),
29
+ role: "separator",
30
+ "aria-label": o("sectionBreak.sectionBreak", {
31
+ defaultValue: "Section Break"
32
+ })
33
+ }
34
+ );
35
+ }
36
+ export {
37
+ m as SectionBreak
38
+ };
@@ -0,0 +1,7 @@
1
+ import { SelectMenuOptionProps, SelectMenuProps } from './types.js';
2
+ export declare const SelectMenu: ({ children, className, onChange, enableSearch, }: SelectMenuProps) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const SelectMenuOption: ({ children, value, selected, onChange, disabled, dataTestid, className, hidden, enableSearch, isHighlighted, ...props }: SelectMenuOptionProps) => import("react/jsx-runtime").JSX.Element | null;
4
+ export declare const SelectMenuGroupItem: ({ children, label, ...props }: {
5
+ children?: any;
6
+ label: string;
7
+ }) => import("react/jsx-runtime").JSX.Element;