@nearform/quantum 1.8.0 → 1.9.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 (260) hide show
  1. package/README.md +19 -1
  2. package/dist/animations/index.d.ts +25 -0
  3. package/dist/animations/index.js +14 -37
  4. package/dist/animations/index.js.map +1 -1
  5. package/dist/assets/build/open-source.icon.d.ts +2 -0
  6. package/dist/assets/build/open-source.icon.js +7 -0
  7. package/dist/assets/build/open-source.icon.js.map +1 -0
  8. package/dist/assets/index.d.ts +13 -0
  9. package/dist/assets/index.js +29 -0
  10. package/dist/assets/index.js.map +1 -0
  11. package/dist/colors/accent.d.ts +16 -0
  12. package/dist/colors/accent.js +21 -0
  13. package/dist/colors/accent.js.map +1 -0
  14. package/dist/colors/background.d.ts +36 -0
  15. package/dist/colors/background.js +41 -0
  16. package/dist/colors/background.js.map +1 -0
  17. package/dist/colors/base.d.ts +136 -0
  18. package/dist/colors/base.js +140 -0
  19. package/dist/colors/base.js.map +1 -0
  20. package/dist/colors/border.d.ts +16 -0
  21. package/dist/colors/border.js +21 -0
  22. package/dist/colors/border.js.map +1 -0
  23. package/dist/colors/button.d.ts +106 -0
  24. package/dist/colors/button.js +115 -0
  25. package/dist/colors/button.js.map +1 -0
  26. package/dist/colors/feedback.d.ts +27 -0
  27. package/dist/colors/feedback.js +32 -0
  28. package/dist/colors/feedback.js.map +1 -0
  29. package/dist/colors/foreground.d.ts +35 -0
  30. package/dist/colors/foreground.js +40 -0
  31. package/dist/colors/foreground.js.map +1 -0
  32. package/dist/colors/index.d.ts +351 -0
  33. package/dist/colors/index.js +13 -416
  34. package/dist/colors/index.js.map +1 -1
  35. package/dist/components/Accordion/index.d.ts +13 -0
  36. package/dist/components/Accordion/index.js +97 -0
  37. package/dist/components/Accordion/index.js.map +1 -0
  38. package/dist/components/AppHeader/index.d.ts +21 -0
  39. package/dist/components/AppHeader/index.js +98 -0
  40. package/dist/components/AppHeader/index.js.map +1 -0
  41. package/dist/components/Avatar/index.d.ts +32 -0
  42. package/dist/components/Avatar/index.js +116 -0
  43. package/dist/components/Avatar/index.js.map +1 -0
  44. package/dist/components/BackLink/index.d.ts +9 -0
  45. package/dist/components/BackLink/index.js +80 -0
  46. package/dist/components/BackLink/index.js.map +1 -0
  47. package/dist/components/Badge/index.d.ts +48 -0
  48. package/dist/components/Badge/index.js +160 -0
  49. package/dist/components/Badge/index.js.map +1 -0
  50. package/dist/components/Breadcrumb/index.d.ts +13 -0
  51. package/dist/components/Breadcrumb/index.js +90 -0
  52. package/dist/components/Breadcrumb/index.js.map +1 -0
  53. package/dist/components/Button/index.d.ts +17 -0
  54. package/dist/components/Button/index.js +204 -0
  55. package/dist/components/Button/index.js.map +1 -0
  56. package/dist/components/ButtonGroup/index.d.ts +11 -0
  57. package/dist/components/ButtonGroup/index.js +102 -0
  58. package/dist/components/ButtonGroup/index.js.map +1 -0
  59. package/dist/components/Calendar/index.d.ts +8 -0
  60. package/dist/components/Calendar/index.js +146 -0
  61. package/dist/components/Calendar/index.js.map +1 -0
  62. package/dist/components/Card/index.d.ts +28 -0
  63. package/dist/components/Card/index.js +155 -0
  64. package/dist/components/Card/index.js.map +1 -0
  65. package/dist/components/Chat/index.d.ts +39 -0
  66. package/dist/components/Chat/index.js +100 -0
  67. package/dist/components/Chat/index.js.map +1 -0
  68. package/dist/components/Checkbox/index.d.ts +5 -0
  69. package/dist/components/Checkbox/index.js +128 -0
  70. package/dist/components/Checkbox/index.js.map +1 -0
  71. package/dist/components/CheckboxGroup/CheckboxGroup.d.ts +61 -0
  72. package/dist/components/CheckboxGroup/CheckboxGroup.js +107 -0
  73. package/dist/components/CheckboxGroup/CheckboxGroup.js.map +1 -0
  74. package/dist/components/CheckboxGroup/CheckboxGroupItem.d.ts +19 -0
  75. package/dist/components/CheckboxGroup/CheckboxGroupItem.js +83 -0
  76. package/dist/components/CheckboxGroup/CheckboxGroupItem.js.map +1 -0
  77. package/dist/components/CheckboxGroup/index.d.ts +2 -0
  78. package/dist/components/CheckboxGroup/index.js +9 -0
  79. package/dist/components/CheckboxGroup/index.js.map +1 -0
  80. package/dist/components/Chip/index.d.ts +11 -0
  81. package/dist/components/Chip/index.js +105 -0
  82. package/dist/components/Chip/index.js.map +1 -0
  83. package/dist/components/CodeBlock/index.d.ts +7 -0
  84. package/dist/components/CodeBlock/index.js +57 -0
  85. package/dist/components/CodeBlock/index.js.map +1 -0
  86. package/dist/components/ControlLabel/index.d.ts +13 -0
  87. package/dist/components/ControlLabel/index.js +83 -0
  88. package/dist/components/ControlLabel/index.js.map +1 -0
  89. package/dist/components/DateInput/index.d.ts +26 -0
  90. package/dist/components/DateInput/index.js +261 -0
  91. package/dist/components/DateInput/index.js.map +1 -0
  92. package/dist/components/DocsList/index.d.ts +18 -0
  93. package/dist/components/DocsList/index.js +125 -0
  94. package/dist/components/DocsList/index.js.map +1 -0
  95. package/dist/components/FormGroup/index.d.ts +121 -0
  96. package/dist/components/FormGroup/index.js +359 -0
  97. package/dist/components/FormGroup/index.js.map +1 -0
  98. package/dist/components/HeroButton/index.d.ts +17 -0
  99. package/dist/components/HeroButton/index.js +139 -0
  100. package/dist/components/HeroButton/index.js.map +1 -0
  101. package/dist/components/IconButton/index.d.ts +77 -0
  102. package/dist/components/IconButton/index.js +235 -0
  103. package/dist/components/IconButton/index.js.map +1 -0
  104. package/dist/components/Input/index.d.ts +27 -0
  105. package/dist/components/Input/index.js +179 -0
  106. package/dist/components/Input/index.js.map +1 -0
  107. package/dist/components/Label/index.d.ts +12 -0
  108. package/dist/components/Label/index.js +89 -0
  109. package/dist/components/Label/index.js.map +1 -0
  110. package/dist/components/Link/index.d.ts +8 -0
  111. package/dist/components/Link/index.js +40 -0
  112. package/dist/components/Link/index.js.map +1 -0
  113. package/dist/components/Modal/index.d.ts +26 -0
  114. package/dist/components/Modal/index.js +143 -0
  115. package/dist/components/Modal/index.js.map +1 -0
  116. package/dist/components/Navigation/index.d.ts +8 -0
  117. package/dist/components/Navigation/index.js +65 -0
  118. package/dist/components/Navigation/index.js.map +1 -0
  119. package/dist/components/Notice/index.d.ts +17 -0
  120. package/dist/components/Notice/index.js +134 -0
  121. package/dist/components/Notice/index.js.map +1 -0
  122. package/dist/components/PageHeader/index.d.ts +15 -0
  123. package/dist/components/PageHeader/index.js +90 -0
  124. package/dist/components/PageHeader/index.js.map +1 -0
  125. package/dist/components/Pagination/index.d.ts +17 -0
  126. package/dist/components/Pagination/index.js +118 -0
  127. package/dist/components/Pagination/index.js.map +1 -0
  128. package/dist/components/Password/index.d.ts +18 -0
  129. package/dist/components/Password/index.js +106 -0
  130. package/dist/components/Password/index.js.map +1 -0
  131. package/dist/components/Popover/index.d.ts +28 -0
  132. package/dist/components/Popover/index.js +97 -0
  133. package/dist/components/Popover/index.js.map +1 -0
  134. package/dist/components/Radio/RadioGroup.d.ts +42 -0
  135. package/dist/components/Radio/RadioGroup.js +82 -0
  136. package/dist/components/Radio/RadioGroup.js.map +1 -0
  137. package/dist/components/Radio/RadioGroupItem.d.ts +17 -0
  138. package/dist/components/Radio/RadioGroupItem.js +117 -0
  139. package/dist/components/Radio/RadioGroupItem.js.map +1 -0
  140. package/dist/components/Radio/index.d.ts +2 -0
  141. package/dist/components/Radio/index.js +8 -0
  142. package/dist/components/Radio/index.js.map +1 -0
  143. package/dist/components/Select/index.d.ts +19 -0
  144. package/dist/components/Select/index.js +206 -0
  145. package/dist/components/Select/index.js.map +1 -0
  146. package/dist/components/Slider/index.d.ts +18 -0
  147. package/dist/components/Slider/index.js +122 -0
  148. package/dist/components/Slider/index.js.map +1 -0
  149. package/dist/components/SortAndShow/index.d.ts +15 -0
  150. package/dist/components/SortAndShow/index.js +68 -0
  151. package/dist/components/SortAndShow/index.js.map +1 -0
  152. package/dist/components/SplitButton/index.d.ts +25 -0
  153. package/dist/components/SplitButton/index.js +224 -0
  154. package/dist/components/SplitButton/index.js.map +1 -0
  155. package/dist/components/Stats/index.d.ts +10 -0
  156. package/dist/components/Stats/index.js +63 -0
  157. package/dist/components/Stats/index.js.map +1 -0
  158. package/dist/components/Stepper/index.d.ts +23 -0
  159. package/dist/components/Stepper/index.js +142 -0
  160. package/dist/components/Stepper/index.js.map +1 -0
  161. package/dist/components/StepsIndicator/Step.d.ts +6 -0
  162. package/dist/components/StepsIndicator/Step.js +24 -0
  163. package/dist/components/StepsIndicator/Step.js.map +1 -0
  164. package/dist/components/StepsIndicator/StepsIndicator.d.ts +12 -0
  165. package/dist/components/StepsIndicator/StepsIndicator.js +67 -0
  166. package/dist/components/StepsIndicator/StepsIndicator.js.map +1 -0
  167. package/dist/components/StepsIndicator/index.d.ts +2 -0
  168. package/dist/components/StepsIndicator/index.js +19 -0
  169. package/dist/components/StepsIndicator/index.js.map +1 -0
  170. package/dist/components/Subnav/index.d.ts +14 -0
  171. package/dist/components/Subnav/index.js +94 -0
  172. package/dist/components/Subnav/index.js.map +1 -0
  173. package/dist/components/Switch/index.d.ts +4 -0
  174. package/dist/components/Switch/index.js +103 -0
  175. package/dist/components/Switch/index.js.map +1 -0
  176. package/dist/components/Table/index.d.ts +48 -0
  177. package/dist/components/Table/index.js +147 -0
  178. package/dist/components/Table/index.js.map +1 -0
  179. package/dist/components/Tabs/index.d.ts +16 -0
  180. package/dist/components/Tabs/index.js +168 -0
  181. package/dist/components/Tabs/index.js.map +1 -0
  182. package/dist/components/Textarea/index.d.ts +13 -0
  183. package/dist/components/Textarea/index.js +96 -0
  184. package/dist/components/Textarea/index.js.map +1 -0
  185. package/dist/components/Toast/index.d.ts +24 -0
  186. package/dist/components/Toast/index.js +171 -0
  187. package/dist/components/Toast/index.js.map +1 -0
  188. package/dist/components/ToggleList/index.d.ts +20 -0
  189. package/dist/components/ToggleList/index.js +68 -0
  190. package/dist/components/ToggleList/index.js.map +1 -0
  191. package/dist/components/Tooltip/index.d.ts +11 -0
  192. package/dist/components/Tooltip/index.js +66 -0
  193. package/dist/components/Tooltip/index.js.map +1 -0
  194. package/dist/components/WebsiteFooter/index.d.ts +23 -0
  195. package/dist/components/WebsiteFooter/index.js +113 -0
  196. package/dist/components/WebsiteFooter/index.js.map +1 -0
  197. package/dist/components/WebsiteHeader/index.d.ts +21 -0
  198. package/dist/components/WebsiteHeader/index.js +98 -0
  199. package/dist/components/WebsiteHeader/index.js.map +1 -0
  200. package/dist/components/choice-group.d.ts +109 -0
  201. package/dist/components/choice-group.js +200 -0
  202. package/dist/components/choice-group.js.map +1 -0
  203. package/dist/components/index.d.ts +49 -0
  204. package/dist/components/index.js +66 -0
  205. package/dist/components/index.js.map +1 -0
  206. package/dist/esm/animations/index.js +17 -0
  207. package/dist/esm/animations/index.js.map +1 -0
  208. package/dist/esm/colors/accent.js +18 -0
  209. package/dist/esm/colors/accent.js.map +1 -0
  210. package/dist/esm/colors/background.js +38 -0
  211. package/dist/esm/colors/background.js.map +1 -0
  212. package/dist/esm/colors/base.js +137 -0
  213. package/dist/esm/colors/base.js.map +1 -0
  214. package/dist/esm/colors/border.js +18 -0
  215. package/dist/esm/colors/border.js.map +1 -0
  216. package/dist/esm/colors/button.js +112 -0
  217. package/dist/esm/colors/button.js.map +1 -0
  218. package/dist/esm/colors/feedback.js +29 -0
  219. package/dist/esm/colors/feedback.js.map +1 -0
  220. package/dist/esm/colors/foreground.js +37 -0
  221. package/dist/esm/colors/foreground.js.map +1 -0
  222. package/dist/esm/colors/index.js +13 -0
  223. package/dist/esm/colors/index.js.map +1 -0
  224. package/dist/esm/package.json +1 -0
  225. package/dist/esm/tailwind-base.js +31 -0
  226. package/dist/esm/tailwind-base.js.map +1 -0
  227. package/dist/esm/tailwind-plugin.js +29 -0
  228. package/dist/esm/tailwind-plugin.js.map +1 -0
  229. package/dist/esm/theme.js +55 -0
  230. package/dist/esm/theme.js.map +1 -0
  231. package/dist/global.css +552 -485
  232. package/dist/index.d.ts +3 -1315
  233. package/dist/index.js +23 -6468
  234. package/dist/index.js.map +1 -1
  235. package/dist/lib/utils.d.ts +16 -0
  236. package/dist/lib/utils.js +23 -0
  237. package/dist/lib/utils.js.map +1 -0
  238. package/dist/tailwind-base.js +33 -0
  239. package/dist/tailwind-base.js.map +1 -0
  240. package/dist/tailwind-plugin.js +31 -497
  241. package/dist/tailwind-plugin.js.map +1 -1
  242. package/dist/theme.js +60 -0
  243. package/dist/theme.js.map +1 -0
  244. package/package.json +8 -11
  245. package/dist/animations/index.mjs +0 -8
  246. package/dist/animations/index.mjs.map +0 -1
  247. package/dist/chunk-36NLQKQR.mjs +0 -22
  248. package/dist/chunk-36NLQKQR.mjs.map +0 -1
  249. package/dist/chunk-3FFF7Q7C.mjs +0 -55
  250. package/dist/chunk-3FFF7Q7C.mjs.map +0 -1
  251. package/dist/chunk-GTI4HTES.mjs +0 -386
  252. package/dist/chunk-GTI4HTES.mjs.map +0 -1
  253. package/dist/colors/index.mjs +0 -8
  254. package/dist/colors/index.mjs.map +0 -1
  255. package/dist/global.css.map +0 -1
  256. package/dist/index.d.mts +0 -1315
  257. package/dist/index.mjs +0 -6043
  258. package/dist/index.mjs.map +0 -1
  259. package/dist/tailwind-plugin.mjs +0 -67
  260. package/dist/tailwind-plugin.mjs.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/WebsiteFooter/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,2CAAoC;AACpC,uEAA4D;AAC5D,kDAAyB;AAEzB,MAAM,qBAAqB,GAAG,IAAA,8BAAG,EAC/B,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,CAAC,EAC/D;IACE,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,QAAQ,EAAE,CAAC,qBAAqB,EAAE,kBAAkB,CAAC;YACrD,EAAE,EAAE;gBACF,kBAAkB;gBAClB,sBAAsB;gBACtB,8BAA8B;aAC/B;SACF;KACF;IACD,eAAe,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE;CACtC,CACF,CAAA;AAED,MAAM,uBA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ponent<React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
3
+ interface WebsiteHeaderLogoProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
4
+ asChild?: boolean;
5
+ }
6
+ declare const WebsiteHeaderLogo: React.ForwardRefExoticComponent<WebsiteHeaderLogoProps & React.RefAttributes<HTMLAnchorElement>>;
7
+ declare const WebsiteHeaderNav: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
8
+ interface WebsiteHeaderLinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
9
+ asChild?: boolean;
10
+ active?: boolean;
11
+ }
12
+ declare const WebsiteHeaderLink: React.ForwardRefExoticComponent<WebsiteHeaderLinkProps & React.RefAttributes<HTMLAnchorElement>>;
13
+ declare const WebsiteHeaderActions: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
14
+ interface WebsiteHeaderMenuButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
15
+ open?: boolean;
16
+ }
17
+ declare const WebsiteHeaderMenuButton: React.ForwardRefExoticComponent<WebsiteHeaderMenuButtonProps & React.RefAttributes<HTMLButtonElement>>;
18
+ declare const WebsiteHeaderMobileMenu: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
19
+ open?: boolean;
20
+ } & React.RefAttributes<HTMLDivElement>>;
21
+ export { WebsiteHeader, WebsiteHeaderLogo, WebsiteHeaderNav, WebsiteHeaderLink, WebsiteHeaderActions, WebsiteHeaderMenuButton, WebsiteHeaderMobileMenu, type WebsiteHeaderLogoProps, type WebsiteHeaderLinkProps, type WebsiteHeaderMenuButtonProps };
@@ -0,0 +1,98 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __rest = (this && this.__rest) || function (s, e) {
36
+ var t = {};
37
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
38
+ t[p] = s[p];
39
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
40
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
41
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
42
+ t[p[i]] = s[p[i]];
43
+ }
44
+ return t;
45
+ };
46
+ Object.defineProperty(exports, "__esModule", { value: true });
47
+ exports.WebsiteHeaderMobileMenu = exports.WebsiteHeaderMenuButton = exports.WebsiteHeaderActions = exports.WebsiteHeaderLink = exports.WebsiteHeaderNav = exports.WebsiteHeaderLogo = exports.WebsiteHeader = void 0;
48
+ const jsx_runtime_1 = require("react/jsx-runtime");
49
+ const React = __importStar(require("react"));
50
+ const react_slot_1 = require("@radix-ui/react-slot");
51
+ const utils_1 = require("../../lib/utils");
52
+ const WebsiteHeader = React.forwardRef((_a, ref) => {
53
+ var { className } = _a, props = __rest(_a, ["className"]);
54
+ return ((0, jsx_runtime_1.jsx)("header", Object.assign({ ref: ref, className: (0, utils_1.cn)('flex items-center justify-between', 'w-full px-6 py-3', 'bg-background dark:bg-background-dark', 'border-b border-border-subtle dark:border-border-subtle-dark', className) }, props)));
55
+ });
56
+ exports.WebsiteHeader = WebsiteHeader;
57
+ WebsiteHeader.displayName = 'WebsiteHeader';
58
+ const WebsiteHeaderLogo = React.forwardRef((_a, ref) => {
59
+ var { className, asChild = false } = _a, props = __rest(_a, ["className", "asChild"]);
60
+ const Comp = asChild ? react_slot_1.Slot : 'a';
61
+ return ((0, jsx_runtime_1.jsx)(Comp, Object.assign({ ref: ref, className: (0, utils_1.cn)('inline-flex items-center shrink-0', 'text-foreground dark:text-foreground-dark', 'focus-visible:outline-hidden', 'focus-visible:shadow-brandGreen dark:focus-visible:shadow-brandGreen10', 'rounded-sm', className) }, props)));
62
+ });
63
+ exports.WebsiteHeaderLogo = WebsiteHeaderLogo;
64
+ WebsiteHeaderLogo.displayName = 'WebsiteHeaderLogo';
65
+ const WebsiteHeaderNav = React.forwardRef((_a, ref) => {
66
+ var { className } = _a, props = __rest(_a, ["className"]);
67
+ return ((0, jsx_runtime_1.jsx)("nav", Object.assign({ ref: ref, className: (0, utils_1.cn)('hidden sm:flex items-center gap-1', className) }, props)));
68
+ });
69
+ exports.WebsiteHeaderNav = WebsiteHeaderNav;
70
+ WebsiteHeaderNav.displayName = 'WebsiteHeaderNav';
71
+ const WebsiteHeaderLink = React.forwardRef((_a, ref) => {
72
+ var { className, asChild = false, active = false, 'aria-current': ariaCurrent } = _a, props = __rest(_a, ["className", "asChild", "active", 'aria-current']);
73
+ const Comp = asChild ? react_slot_1.Slot : 'a';
74
+ return ((0, jsx_runtime_1.jsx)(Comp, Object.assign({ ref: ref, "aria-current": ariaCurrent !== null && ariaCurrent !== void 0 ? ariaCurrent : (active ? 'page' : undefined), className: (0, utils_1.cn)('inline-flex items-center px-3 py-1.5', 'text-sm font-medium rounded-sm', 'cursor-pointer', 'text-foreground-subtle dark:text-foreground-muted-dark', 'hover:text-foreground dark:hover:text-foreground-dark', 'aria-[current=page]:text-foreground dark:aria-[current=page]:text-foreground-dark', 'focus-visible:outline-hidden', 'focus-visible:shadow-brandGreen dark:focus-visible:shadow-brandGreen10', className) }, props)));
75
+ });
76
+ exports.WebsiteHeaderLink = WebsiteHeaderLink;
77
+ WebsiteHeaderLink.displayName = 'WebsiteHeaderLink';
78
+ const WebsiteHeaderActions = React.forwardRef((_a, ref) => {
79
+ var { className } = _a, props = __rest(_a, ["className"]);
80
+ return ((0, jsx_runtime_1.jsx)("div", Object.assign({ ref: ref, className: (0, utils_1.cn)('hidden sm:flex items-center gap-2', className) }, props)));
81
+ });
82
+ exports.WebsiteHeaderActions = WebsiteHeaderActions;
83
+ WebsiteHeaderActions.displayName = 'WebsiteHeaderActions';
84
+ const WebsiteHeaderMenuButton = React.forwardRef((_a, ref) => {
85
+ var { className, open = false, children } = _a, props = __rest(_a, ["className", "open", "children"]);
86
+ return ((0, jsx_runtime_1.jsx)("button", Object.assign({ ref: ref, type: "button", "aria-expanded": open, "aria-label": open ? 'Close menu' : 'Open menu', className: (0, utils_1.cn)('inline-flex sm:hidden items-center gap-1', 'px-3 py-1.5 text-sm font-medium', 'text-foreground dark:text-foreground-dark', 'cursor-pointer', 'focus-visible:outline-hidden', 'focus-visible:shadow-brandGreen dark:focus-visible:shadow-brandGreen10', 'rounded-sm', className) }, props, { children: children !== null && children !== void 0 ? children : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Menu", ' ', (0, jsx_runtime_1.jsx)("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", className: (0, utils_1.cn)('transition-transform', open && 'rotate-180'), children: (0, jsx_runtime_1.jsx)("path", { d: "M4 6L8 10L12 6", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) })] })) })));
87
+ });
88
+ exports.WebsiteHeaderMenuButton = WebsiteHeaderMenuButton;
89
+ WebsiteHeaderMenuButton.displayName = 'WebsiteHeaderMenuButton';
90
+ const WebsiteHeaderMobileMenu = React.forwardRef((_a, ref) => {
91
+ var { className, open = false } = _a, props = __rest(_a, ["className", "open"]);
92
+ if (!open)
93
+ return null;
94
+ return ((0, jsx_runtime_1.jsx)("div", Object.assign({ ref: ref, className: (0, utils_1.cn)('sm:hidden flex flex-col gap-1', 'w-full px-6 py-3', 'bg-background dark:bg-background-dark', 'border-b border-border-subtle dark:border-border-subtle-dark', className) }, props)));
95
+ });
96
+ exports.WebsiteHeaderMobileMenu = WebsiteHeaderMobileMenu;
97
+ WebsiteHeaderMobileMenu.displayName = 'WebsiteHeaderMobileMenu';
98
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/WebsiteHeader/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA8B;AAC9B,qDAA2C;AAE3C,2CAAoC;AAEpC,MAAM,aAAa,GAAG,KAAK,CAAC,UAAU,CAGpC,CAAC,EAAuB,EAAE,GAAG,EAAE,EAAE;QAAhC,EAAE,SAAS,OAAY,EAAP,KAAK,cAArB,aAAuB,CAAF;IAAY,OAAA,CAClC,iDACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,IAAA,UAAE,EACX,mCAAmC,EACnC,kBAAkB,EAClB,uCAAuC,EACvC,8DAA8D,EAC9D,SAAS,CACV,IACG,KAAK,EACT,CACH,CAAA;CAAA,CAAC,CAAA;AAuKA,sCAAa;AAtKf,aAAa,CAAC,WAAW,GAAG,eAAe,CAAA;AAM3C,MAAM,iBAAiB,GAAG,KAAK,CAAC,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,cAAR,QAAQ,GAAI,CACX,qEACO,GAAG,EACR,gCACE,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,iBACC,MAAM,EAClB,SAAS,EAAE,IAAA,UAAE,EAAC,sBAAsB,EAAE,IAAI,IAAI,YAAY,CAAC,YAE3D,iCACE,CAAC,EAAC,gBAAgB,EAClB,MAAM,EAAC,cAAc,EACrB,WAAW,EAAC,KAAK,EACjB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,GACtB,GACE,IACL,CACJ,IACM,CACV,CAAA;CAAA,CAAC,CAAA;AA8BA,0DAAuB;AA7BzB,uBAAuB,CAAC,WAAW,GAAG,yBAAyB,CAAA;AAE/D,MAAM,uBAAuB,GAAG,KAAK,CAAC,UAAU,CAG9C,CAAC,EAAqC,EAAE,GAAG,EAAE,EAAE;QAA9C,EAAE,SAAS,EAAE,IAAI,GAAG,KAAK,OAAY,EAAP,KAAK,cAAnC,qBAAqC,CAAF;IACpC,IAAI,CAAC,IAAI;QAAE,OAAO,IAAI,CAAA;IACtB,OAAO,CACL,8CACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,IAAA,UAAE,EACX,+BAA+B,EAC/B,kBAAkB,EAClB,uCAAuC,EACvC,8DAA8D,EAC9D,SAAS,CACV,IACG,KAAK,EACT,CACH,CAAA;AACH,CAAC,CAAC,CAAA;AAUA,0DAAuB;AATzB,uBAAuB,CAAC,WAAW,GAAG,yBAAyB,CAAA"}
@@ -0,0 +1,109 @@
1
+ import * as React from 'react';
2
+ import { type AriaInvalid } from '../lib/utils';
3
+ /**
4
+ * How the options sit relative to each other. Vertical is the default because
5
+ * it is the arrangement that stays readable at any label length; horizontal
6
+ * wraps rather than overflowing, so a group that outgrows its container
7
+ * becomes two rows instead of a scrollbar.
8
+ *
9
+ * `items-end` on a vertical group with its labels on the left is what lines
10
+ * the controls up in a column: without it each row is only as wide as its own
11
+ * label and the controls sit at a different x per row. It is scoped to that
12
+ * one combination -- on a horizontal group the same class would align the rows
13
+ * along their baseline-ish bottom edge instead, which is not the same request.
14
+ */
15
+ declare const choiceGroupItemsVariants: (props?: ({
16
+ orientation?: "horizontal" | "vertical" | null | undefined;
17
+ labelPosition?: "left" | "right" | null | undefined;
18
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
19
+ interface ChoiceGroupContextValue {
20
+ /** Whether the group's controls should be marked `aria-invalid`. */
21
+ invalid: boolean;
22
+ labelPosition: 'left' | 'right';
23
+ /**
24
+ * Whether the group as a whole is disabled. Published because an option's
25
+ * label has to dim with its control, and a radio disabled by its group is
26
+ * disabled by Radix's own context rather than by a prop the item can see.
27
+ */
28
+ disabled?: boolean;
29
+ }
30
+ declare const ChoiceGroupContext: React.Context<ChoiceGroupContextValue | null>;
31
+ /**
32
+ * Read by `CheckboxGroupItem` and by `Radio`, so a single option picks up the
33
+ * group's invalid state and label side without either being passed down by
34
+ * hand. `null` outside a group, where a control is on its own and both
35
+ * questions are the caller's.
36
+ */
37
+ declare const useChoiceGroup: () => ChoiceGroupContextValue | null;
38
+ /**
39
+ * What an option's `aria-invalid` should end up as, given the group's state
40
+ * and whatever the caller asked for.
41
+ *
42
+ * The group wins over `aria-invalid={false}` and only over that, which is the
43
+ * line `FormGroup` already draws: `false` is the attribute's default and reads
44
+ * identically to its absence, so an option carrying it has asserted nothing,
45
+ * and letting it suppress the group's error would render an option that is
46
+ * visibly invalid inside a group showing an error message while telling a
47
+ * screen reader it is fine. Every other value is a real assertion and is kept.
48
+ *
49
+ * Returning the value the attribute will actually carry, rather than a
50
+ * boolean, is what keeps the styling and the announcement in step -- both are
51
+ * derived from this one result.
52
+ */
53
+ declare const resolveAriaInvalid: (own: AriaInvalid, groupInvalid: boolean) => true | "true" | "grammar" | "spelling" | undefined;
54
+ interface ChoiceGroupFieldsetProps extends React.ComponentPropsWithoutRef<'fieldset'> {
55
+ /** The group's name, rendered as its `<legend>`. */
56
+ legend?: React.ReactNode;
57
+ /** Hint under the legend, reached through the fieldset's `aria-describedby`. */
58
+ description?: React.ReactNode;
59
+ /** Validation message under the options, reached the same way. */
60
+ error?: React.ReactNode;
61
+ /**
62
+ * Dims the legend along with the options. Deliberately not rendered as the
63
+ * `<fieldset disabled>` attribute, which the browser applies to every
64
+ * control inside the element with no way for one of them to opt back in: a
65
+ * group disabled that way could not leave a single option live, and an item
66
+ * that had asked to stay enabled would render as enabled and refuse to be
67
+ * clicked. Every control is given `disabled` in its own right instead.
68
+ */
69
+ disabled?: boolean;
70
+ }
71
+ /**
72
+ * The fieldset around a set of options, with its legend and its two messages.
73
+ *
74
+ * Both messages are published to the group rather than to the controls
75
+ * inside it: a screen reader announces a fieldset's description when focus
76
+ * first enters the group, which is where "Select all that apply" and "Choose
77
+ * at least one" are useful, and announcing either of them again on every
78
+ * option would be five copies of one sentence. The per-control half of the
79
+ * error is `aria-invalid`, which `useChoiceGroup()` hands to the options.
80
+ */
81
+ declare const ChoiceGroupFieldset: React.ForwardRefExoticComponent<ChoiceGroupFieldsetProps & React.RefAttributes<HTMLFieldSetElement>>;
82
+ interface ChoiceItemProps {
83
+ /** The control's id, which the label's `htmlFor` points at. */
84
+ controlId: string;
85
+ /** Where the hint is published, if there is one. */
86
+ descriptionId: string;
87
+ label?: React.ReactNode;
88
+ description?: React.ReactNode;
89
+ disabled?: boolean;
90
+ labelPosition: 'left' | 'right';
91
+ /** The checkbox or radio itself. */
92
+ children: React.ReactNode;
93
+ }
94
+ /**
95
+ * One option: the control, its label, and the hint that belongs to that option
96
+ * alone.
97
+ *
98
+ * The hint is wired to the control with `aria-describedby` by whoever renders
99
+ * this, rather than being left as text that happens to sit nearby. A hint that
100
+ * distinguishes one option from another -- "Delivered the next working day" --
101
+ * is the difference between the two choices, and a reader who only hears the
102
+ * labels has not been told what they are choosing between.
103
+ *
104
+ * `items-start` rather than centring: the control is a fixed 20px and the
105
+ * label is however many lines its text needs, so centring a two-line label
106
+ * would drift the control into the gap between the lines.
107
+ */
108
+ declare const ChoiceItem: React.FC<ChoiceItemProps>;
109
+ export { ChoiceGroupContext, ChoiceGroupFieldset, ChoiceItem, choiceGroupItemsVariants, resolveAriaInvalid, useChoiceGroup, type ChoiceGroupFieldsetProps };
@@ -0,0 +1,200 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __rest = (this && this.__rest) || function (s, e) {
36
+ var t = {};
37
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
38
+ t[p] = s[p];
39
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
40
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
41
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
42
+ t[p[i]] = s[p[i]];
43
+ }
44
+ return t;
45
+ };
46
+ Object.defineProperty(exports, "__esModule", { value: true });
47
+ exports.useChoiceGroup = exports.resolveAriaInvalid = exports.choiceGroupItemsVariants = exports.ChoiceItem = exports.ChoiceGroupFieldset = exports.ChoiceGroupContext = void 0;
48
+ const jsx_runtime_1 = require("react/jsx-runtime");
49
+ const React = __importStar(require("react"));
50
+ const class_variance_authority_1 = require("class-variance-authority");
51
+ const utils_1 = require("../lib/utils");
52
+ const FormGroup_1 = require("./FormGroup");
53
+ const Label_1 = require("./Label");
54
+ /**
55
+ * The parts a group of checkboxes and a group of radios have in common: the
56
+ * `<fieldset>` and `<legend>` that give the options one name, the hint under
57
+ * that name, the validation message under the options, and the row that pairs
58
+ * one control with its own label and hint.
59
+ *
60
+ * Not exported from the package. `CheckboxGroup` and `RadioGroup` are the two
61
+ * components this exists for, and a third group shape would be a third
62
+ * component rather than a configuration of this one.
63
+ */
64
+ /**
65
+ * Hint text, on the group and on a single option.
66
+ *
67
+ * The same weights as `FieldDescription`, deliberately not that component:
68
+ * a field's hint stands down while its error is showing, because the two share
69
+ * one line under one control. A group's hint is instructions for reading the
70
+ * options -- "Select all that apply" -- it sits above them rather than under
71
+ * them, and an error appearing below is not a reason to take the instructions
72
+ * away.
73
+ */
74
+ const choiceHintVariants = (0, class_variance_authority_1.cva)([
75
+ 'text-xs',
76
+ 'text-foreground-muted',
77
+ 'dark:text-foreground-muted-dark'
78
+ ]);
79
+ /**
80
+ * How the options sit relative to each other. Vertical is the default because
81
+ * it is the arrangement that stays readable at any label length; horizontal
82
+ * wraps rather than overflowing, so a group that outgrows its container
83
+ * becomes two rows instead of a scrollbar.
84
+ *
85
+ * `items-end` on a vertical group with its labels on the left is what lines
86
+ * the controls up in a column: without it each row is only as wide as its own
87
+ * label and the controls sit at a different x per row. It is scoped to that
88
+ * one combination -- on a horizontal group the same class would align the rows
89
+ * along their baseline-ish bottom edge instead, which is not the same request.
90
+ */
91
+ const choiceGroupItemsVariants = (0, class_variance_authority_1.cva)('flex', {
92
+ variants: {
93
+ orientation: {
94
+ vertical: ['flex-col', 'gap-3'],
95
+ horizontal: ['flex-row', 'flex-wrap', 'gap-x-6', 'gap-y-3']
96
+ },
97
+ labelPosition: {
98
+ left: '',
99
+ right: ''
100
+ }
101
+ },
102
+ compoundVariants: [
103
+ { orientation: 'vertical', labelPosition: 'left', class: 'items-end' }
104
+ ],
105
+ defaultVariants: {
106
+ orientation: 'vertical',
107
+ labelPosition: 'right'
108
+ }
109
+ });
110
+ exports.choiceGroupItemsVariants = choiceGroupItemsVariants;
111
+ const ChoiceGroupContext = React.createContext(null);
112
+ exports.ChoiceGroupContext = ChoiceGroupContext;
113
+ /**
114
+ * Read by `CheckboxGroupItem` and by `Radio`, so a single option picks up the
115
+ * group's invalid state and label side without either being passed down by
116
+ * hand. `null` outside a group, where a control is on its own and both
117
+ * questions are the caller's.
118
+ */
119
+ const useChoiceGroup = () => React.useContext(ChoiceGroupContext);
120
+ exports.useChoiceGroup = useChoiceGroup;
121
+ /**
122
+ * What an option's `aria-invalid` should end up as, given the group's state
123
+ * and whatever the caller asked for.
124
+ *
125
+ * The group wins over `aria-invalid={false}` and only over that, which is the
126
+ * line `FormGroup` already draws: `false` is the attribute's default and reads
127
+ * identically to its absence, so an option carrying it has asserted nothing,
128
+ * and letting it suppress the group's error would render an option that is
129
+ * visibly invalid inside a group showing an error message while telling a
130
+ * screen reader it is fine. Every other value is a real assertion and is kept.
131
+ *
132
+ * Returning the value the attribute will actually carry, rather than a
133
+ * boolean, is what keeps the styling and the announcement in step -- both are
134
+ * derived from this one result.
135
+ */
136
+ const resolveAriaInvalid = (own, groupInvalid) => (0, utils_1.assertsInvalid)(own) ? own : groupInvalid || undefined;
137
+ exports.resolveAriaInvalid = resolveAriaInvalid;
138
+ /**
139
+ * The fieldset around a set of options, with its legend and its two messages.
140
+ *
141
+ * Both messages are published to the group rather than to the controls
142
+ * inside it: a screen reader announces a fieldset's description when focus
143
+ * first enters the group, which is where "Select all that apply" and "Choose
144
+ * at least one" are useful, and announcing either of them again on every
145
+ * option would be five copies of one sentence. The per-control half of the
146
+ * error is `aria-invalid`, which `useChoiceGroup()` hands to the options.
147
+ */
148
+ const ChoiceGroupFieldset = React.forwardRef((_a, ref) => {
149
+ var { legend, description, error, disabled, className, children, 'aria-describedby': ariaDescribedBy } = _a, props = __rest(_a, ["legend", "description", "error", "disabled", "className", "children", 'aria-describedby']);
150
+ const id = React.useId();
151
+ const descriptionId = `${id}-description`;
152
+ const errorId = `${id}-error`;
153
+ // The caller's own tokens first: the group's own messages are the most
154
+ // specific thing said about it, and the most specific thing reads last.
155
+ const describedBy = [
156
+ ariaDescribedBy,
157
+ description ? descriptionId : undefined,
158
+ error ? errorId : undefined
159
+ ]
160
+ .filter(Boolean)
161
+ .join(' ') || undefined;
162
+ return ((0, jsx_runtime_1.jsxs)("fieldset", Object.assign({ ref: ref,
163
+ // `min-inline-size: min-content` is a fieldset UA style that Tailwind's
164
+ // preflight leaves alone, and it stops the element from shrinking
165
+ // inside a flex or grid parent -- a group of long labels then pushes
166
+ // the layout wider instead of wrapping.
167
+ className: (0, utils_1.cn)('min-w-0 border-0 p-0', className), "aria-describedby": describedBy }, props, { children: [legend && ((0, jsx_runtime_1.jsx)(Label_1.Label, { asChild: true, children: (0, jsx_runtime_1.jsx)("legend", { className: (0, utils_1.cn)('p-0', description ? 'mb-1' : 'mb-3', disabled && 'opacity-70'), children: legend }) })), description && ((0, jsx_runtime_1.jsx)("p", { id: descriptionId, className: (0, utils_1.cn)(choiceHintVariants(), 'mb-3'), children: description })), children, error && ((0, jsx_runtime_1.jsx)(FormGroup_1.FieldError, { id: errorId, className: "mt-2", children: error }))] })));
168
+ });
169
+ exports.ChoiceGroupFieldset = ChoiceGroupFieldset;
170
+ ChoiceGroupFieldset.displayName = 'ChoiceGroupFieldset';
171
+ /**
172
+ * One option: the control, its label, and the hint that belongs to that option
173
+ * alone.
174
+ *
175
+ * The hint is wired to the control with `aria-describedby` by whoever renders
176
+ * this, rather than being left as text that happens to sit nearby. A hint that
177
+ * distinguishes one option from another -- "Delivered the next working day" --
178
+ * is the difference between the two choices, and a reader who only hears the
179
+ * labels has not been told what they are choosing between.
180
+ *
181
+ * `items-start` rather than centring: the control is a fixed 20px and the
182
+ * label is however many lines its text needs, so centring a two-line label
183
+ * would drift the control into the gap between the lines.
184
+ */
185
+ const ChoiceItem = ({ controlId, descriptionId, label, description, disabled, labelPosition, children }) => {
186
+ if (!label && !description)
187
+ return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: children });
188
+ const text = ((0, jsx_runtime_1.jsxs)("div", { className: (0, utils_1.cn)('grid gap-0.5', labelPosition === 'left' && 'justify-items-end'), children: [label && ((0, jsx_runtime_1.jsx)(Label_1.Label, { htmlFor: controlId, align: labelPosition === 'left' ? 'right' : 'left',
189
+ // The library's disabled label treatment, applied here rather than
190
+ // left to `Label`'s own `peer-disabled:`, which needs the control to
191
+ // be the label's previous sibling -- here it is a sibling of this
192
+ // wrapper. The hint below is deliberately not dimmed with it: at 70%
193
+ // `foreground-muted` is 3.5:1, and on a disabled option the hint is
194
+ // usually the reason it is disabled, which is the one line that has
195
+ // to stay readable.
196
+ className: (0, utils_1.cn)(disabled && 'opacity-70'), children: label })), description && ((0, jsx_runtime_1.jsx)("p", { id: descriptionId, className: (0, utils_1.cn)(choiceHintVariants(), labelPosition === 'left' && 'text-right'), children: description }))] }));
197
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "flex items-start gap-2", children: [labelPosition === 'left' && text, children, labelPosition === 'right' && text] }));
198
+ };
199
+ exports.ChoiceItem = ChoiceItem;
200
+ //# sourceMappingURL=choice-group.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"choice-group.js","sourceRoot":"","sources":["../../src/components/choice-group.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;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2
+ export * from './AppHeader';
3
+ export * from './Avatar';
4
+ export * from './BackLink';
5
+ export * from './Breadcrumb';
6
+ export * from './Badge';
7
+ export * from './Button';
8
+ export * from './ButtonGroup';
9
+ export * from './Calendar';
10
+ export * from './Card';
11
+ export * from './Chat';
12
+ export * from './Checkbox';
13
+ export * from './CheckboxGroup';
14
+ export * from './CodeBlock';
15
+ export * from './DateInput';
16
+ export * from './DocsList';
17
+ export * from './Chip';
18
+ export * from './ControlLabel';
19
+ export * from './FormGroup';
20
+ export * from './HeroButton';
21
+ export * from './IconButton';
22
+ export * from './Input';
23
+ export * from './Label';
24
+ export * from './Link';
25
+ export * from './Modal';
26
+ export * from './Navigation';
27
+ export * from './Notice';
28
+ export * from './PageHeader';
29
+ export * from './Pagination';
30
+ export * from './Password';
31
+ export * from './Popover';
32
+ export * from './Radio';
33
+ export * from './Select';
34
+ export * from './Slider';
35
+ export * from './SortAndShow';
36
+ export * from './SplitButton';
37
+ export * from './Stats';
38
+ export * from './Stepper';
39
+ export * from './Subnav';
40
+ export * from './StepsIndicator';
41
+ export * from './Switch';
42
+ export * from './Table';
43
+ export * from './Tabs';
44
+ export * from './Textarea';
45
+ export * from './Toast';
46
+ export * from './ToggleList';
47
+ export * from './Tooltip';
48
+ export * from './WebsiteFooter';
49
+ export * from './WebsiteHeader';
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./Accordion"), exports);
18
+ __exportStar(require("./AppHeader"), exports);
19
+ __exportStar(require("./Avatar"), exports);
20
+ __exportStar(require("./BackLink"), exports);
21
+ __exportStar(require("./Breadcrumb"), exports);
22
+ __exportStar(require("./Badge"), exports);
23
+ __exportStar(require("./Button"), exports);
24
+ __exportStar(require("./ButtonGroup"), exports);
25
+ __exportStar(require("./Calendar"), exports);
26
+ __exportStar(require("./Card"), exports);
27
+ __exportStar(require("./Chat"), exports);
28
+ __exportStar(require("./Checkbox"), exports);
29
+ __exportStar(require("./CheckboxGroup"), exports);
30
+ __exportStar(require("./CodeBlock"), exports);
31
+ __exportStar(require("./DateInput"), exports);
32
+ __exportStar(require("./DocsList"), exports);
33
+ __exportStar(require("./Chip"), exports);
34
+ __exportStar(require("./ControlLabel"), exports);
35
+ __exportStar(require("./FormGroup"), exports);
36
+ __exportStar(require("./HeroButton"), exports);
37
+ __exportStar(require("./IconButton"), exports);
38
+ __exportStar(require("./Input"), exports);
39
+ __exportStar(require("./Label"), exports);
40
+ __exportStar(require("./Link"), exports);
41
+ __exportStar(require("./Modal"), exports);
42
+ __exportStar(require("./Navigation"), exports);
43
+ __exportStar(require("./Notice"), exports);
44
+ __exportStar(require("./PageHeader"), exports);
45
+ __exportStar(require("./Pagination"), exports);
46
+ __exportStar(require("./Password"), exports);
47
+ __exportStar(require("./Popover"), exports);
48
+ __exportStar(require("./Radio"), exports);
49
+ __exportStar(require("./Select"), exports);
50
+ __exportStar(require("./Slider"), exports);
51
+ __exportStar(require("./SortAndShow"), exports);
52
+ __exportStar(require("./SplitButton"), exports);
53
+ __exportStar(require("./Stats"), exports);
54
+ __exportStar(require("./Stepper"), exports);
55
+ __exportStar(require("./Subnav"), exports);
56
+ __exportStar(require("./StepsIndicator"), exports);
57
+ __exportStar(require("./Switch"), exports);
58
+ __exportStar(require("./Table"), exports);
59
+ __exportStar(require("./Tabs"), exports);
60
+ __exportStar(require("./Textarea"), exports);
61
+ __exportStar(require("./Toast"), exports);
62
+ __exportStar(require("./ToggleList"), exports);
63
+ __exportStar(require("./Tooltip"), exports);
64
+ __exportStar(require("./WebsiteFooter"), exports);
65
+ __exportStar(require("./WebsiteHeader"), exports);
66
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA2B;AAC3B,8CAA2B;AAC3B,2CAAwB;AACxB,6CAA0B;AAC1B,+CAA4B;AAC5B,0CAAuB;AACvB,2CAAwB;AACxB,gDAA6B;AAC7B,6CAA0B;AAC1B,yCAAsB;AACtB,yCAAsB;AACtB,6CAA0B;AAC1B,kDAA+B;AAC/B,8CAA2B;AAC3B,8CAA2B;AAC3B,6CAA0B;AAC1B,yCAAsB;AACtB,iDAA8B;AAC9B,8CAA2B;AAC3B,+CAA4B;AAC5B,+CAA4B;AAC5B,0CAAuB;AACvB,0CAAuB;AACvB,yCAAsB;AACtB,0CAAuB;AACvB,+CAA4B;AAC5B,2CAAwB;AACxB,+CAA4B;AAC5B,+CAA4B;AAC5B,6CAA0B;AAC1B,4CAAyB;AACzB,0CAAuB;AACvB,2CAAwB;AACxB,2CAAwB;AACxB,gDAA6B;AAC7B,gDAA6B;AAC7B,0CAAuB;AACvB,4CAAyB;AACzB,2CAAwB;AACxB,mDAAgC;AAChC,2CAAwB;AACxB,0CAAuB;AACvB,yCAAsB;AACtB,6CAA0B;AAC1B,0CAAuB;AACvB,+CAA4B;AAC5B,4CAAyB;AACzB,kDAA+B;AAC/B,kDAA+B"}
@@ -0,0 +1,17 @@
1
+ export default {
2
+ keyframes: {
3
+ slideDown: {
4
+ from: { height: '0' },
5
+ to: { height: 'var(--radix-accordion-content-height)' }
6
+ },
7
+ slideUp: {
8
+ from: { height: 'var(--radix-accordion-content-height)' },
9
+ to: { height: '0' }
10
+ }
11
+ },
12
+ animation: {
13
+ slideDown: 'slideDown 300ms cubic-bezier(0.87, 0, 0.13, 1)',
14
+ slideUp: 'slideUp 300ms cubic-bezier(0.87, 0, 0.13, 1)'
15
+ }
16
+ };
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/animations/index.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,SAAS,EAAE;QACT,SAAS,EAAE;YACT,IAAI,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE;YACrB,EAAE,EAAE,EAAE,MAAM,EAAE,uCAAuC,EAAE;SACxD;QACD,OAAO,EAAE;YACP,IAAI,EAAE,EAAE,MAAM,EAAE,uCAAuC,EAAE;YACzD,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE;SACpB;KACF;IACD,SAAS,EAAE;QACT,SAAS,EAAE,gDAAgD;QAC3D,OAAO,EAAE,8CAA8C;KACxD;CACF,CAAA"}
@@ -0,0 +1,18 @@
1
+ import { colors } from "./base.js";
2
+ export const accent = {
3
+ DEFAULT: colors.brandMidnight['100'],
4
+ dark: colors.brandMidnight['10'],
5
+ alt: {
6
+ DEFAULT: colors.brandMidnight['80'],
7
+ dark: colors.grey['600']
8
+ },
9
+ hover: {
10
+ DEFAULT: colors.brandMidnight['80'],
11
+ dark: colors.brandMidnight['30']
12
+ },
13
+ focus: {
14
+ DEFAULT: colors.brandMidnight['100'],
15
+ dark: colors.grey['100']
16
+ }
17
+ };
18
+ //# sourceMappingURL=accent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accent.js","sourceRoot":"","sources":["../../../src/colors/accent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAElC,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,OAAO,EAAE,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC;IACpC,IAAI,EAAE,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC;IAChC,GAAG,EAAE;QACH,OAAO,EAAE,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC;QACnC,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC;KACzB;IACD,KAAK,EAAE;QACL,OAAO,EAAE,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC;QACnC,IAAI,EAAE,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC;KACjC;IACD,KAAK,EAAE;QACL,OAAO,EAAE,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC;QACpC,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC;KACzB;CACF,CAAA"}