@postenbring/hedwig-react 0.0.72 → 0.0.73

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -63,7 +63,7 @@ import {
63
63
  import "./chunk-MGUYIOP2.mjs";
64
64
  import {
65
65
  FooterComponent
66
- } from "./chunk-CU56G5WS.mjs";
66
+ } from "./chunk-CSAEHQ4R.mjs";
67
67
  import "./chunk-XFKD6EEJ.mjs";
68
68
  import "./chunk-AGZHQDCQ.mjs";
69
69
  import {
@@ -145,7 +145,7 @@ import {
145
145
  FooterLinkSection,
146
146
  FooterLinkSections,
147
147
  FooterLogo
148
- } from "./chunk-BFNITN5E.mjs";
148
+ } from "./chunk-S3BGPCLK.mjs";
149
149
  import {
150
150
  LinkList
151
151
  } from "./chunk-GJDRW6PA.mjs";
@@ -160,18 +160,17 @@ import {
160
160
  } from "./chunk-BWFFP6BB.mjs";
161
161
  import {
162
162
  AccordionComponent
163
- } from "./chunk-3FRCJ3RH.mjs";
163
+ } from "./chunk-XYIY6FHW.mjs";
164
+ import {
165
+ AccordionContent
166
+ } from "./chunk-GUB3UCXO.mjs";
167
+ import {
168
+ AccordionHeader
169
+ } from "./chunk-YXHXRUFX.mjs";
164
170
  import {
165
171
  AccordionItem
166
172
  } from "./chunk-62F4I3MQ.mjs";
167
173
  import "./chunk-VRIY65P5.mjs";
168
- import "./chunk-K6PP3ACJ.mjs";
169
- import {
170
- Badge,
171
- DarkBadge,
172
- WarningBadge,
173
- WhiteBadge
174
- } from "./chunk-W3D4VR4Y.mjs";
175
174
  import {
176
175
  Breadcrumbs
177
176
  } from "./chunk-GGEQEVZ4.mjs";
@@ -185,17 +184,18 @@ import {
185
184
  } from "./chunk-EMI7NAO2.mjs";
186
185
  import "./chunk-KQITCS3U.mjs";
187
186
  import "./chunk-DZNH5JHY.mjs";
187
+ import "./chunk-K6PP3ACJ.mjs";
188
188
  import {
189
- AccordionContent
190
- } from "./chunk-GUB3UCXO.mjs";
191
- import {
192
- AccordionHeader
193
- } from "./chunk-YXHXRUFX.mjs";
189
+ Badge,
190
+ DarkBadge,
191
+ WarningBadge,
192
+ WhiteBadge
193
+ } from "./chunk-W3D4VR4Y.mjs";
194
194
  import "./chunk-V3PAFMK5.mjs";
195
195
  import "./chunk-CFAH2LID.mjs";
196
196
  import {
197
197
  HelpText
198
- } from "./chunk-E5O6ID3L.mjs";
198
+ } from "./chunk-E2RTLHMZ.mjs";
199
199
  import {
200
200
  BoxComponent
201
201
  } from "./chunk-NMMFIRLZ.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@postenbring/hedwig-react",
3
- "version": "0.0.72",
3
+ "version": "0.0.73",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -13,7 +13,7 @@
13
13
  ],
14
14
  "devDependencies": {
15
15
  "@microsoft/api-extractor": "7.43.1",
16
- "@types/react": "^18.2.78",
16
+ "@types/react": "^18.2.79",
17
17
  "@types/react-dom": "^18.2.25",
18
18
  "react": "^18.2.0",
19
19
  "react-dom": "18.2.0",
@@ -32,7 +32,7 @@
32
32
  "@radix-ui/react-popover": "1.0.7",
33
33
  "@radix-ui/react-slot": "1.0.2",
34
34
  "focus-trap-react": "10.2.3",
35
- "@postenbring/hedwig-css": "0.0.63"
35
+ "@postenbring/hedwig-css": "0.0.64"
36
36
  },
37
37
  "publishConfig": {
38
38
  "access": "public"
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/help-text/help-text.tsx"],"sourcesContent":["import * as Popover from \"@radix-ui/react-popover\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname\";\nimport { forwardRef } from \"react\";\nimport { Box } from \"../box\";\n\ninterface HelpTextProps extends React.HTMLAttributes<HTMLButtonElement> {\n className?: string;\n\n /**\n * The content of the help text\n */\n children: React.ReactNode;\n\n /**\n * The word that should be clickable to show the help text\n */\n word?: React.ReactNode;\n\n /**\n * The title of the help text. Used by screen readers and if the user hover over the help text\n */\n title?: string;\n\n /**\n * Props for the `Box` that contains the help text\n */\n boxProps?: React.ComponentProps<typeof Box>;\n\n /**\n * The side of the trigger the popover should be attached to\n *\n * default is `top`\n */\n side?: \"top\" | \"right\" | \"bottom\" | \"left\";\n\n /**\n * The alignment of the popover content\n *\n * default is `start`\n */\n align?: \"center\" | \"end\" | \"start\";\n}\n\n/**\n * Show a help text for a word or phrase when clicked\n *\n * Useful for providing explanations for domain-specific terms or acronyms\n */\nexport const HelpText = forwardRef<HTMLButtonElement, HelpTextProps>(\n ({ children, className, word, title, side = \"top\", align = \"start\", boxProps, ...rest }, ref) => {\n return (\n // NOTE: Using radix's [Popover component](https://www.radix-ui.com/primitives/docs/components/popover)\n // In the future we can use the native popover api, but as of writing, though all browsers support it\n // it's not far enough back to be used in production\n // https://caniuse.com/mdn-html_elements_input_popovertarget\n <Popover.Root>\n <Popover.Trigger asChild>\n <button\n ref={ref}\n className={clsx(\"hds-help-text-button\", className as undefined)}\n title={title}\n type=\"button\"\n {...rest}\n >\n {word}\n </button>\n </Popover.Trigger>\n <Popover.Portal>\n <Popover.Content asChild side={side} align={align}>\n <Box\n {...boxProps}\n className={clsx(\"hds-help-text-box\", boxProps?.className as undefined)}\n >\n <Popover.Close asChild>\n <Box.CloseButton />\n </Popover.Close>\n {children}\n </Box>\n </Popover.Content>\n </Popover.Portal>\n </Popover.Root>\n );\n },\n);\nHelpText.displayName = \"HelpText\";\n"],"mappings":";;;;;;;;;;AAAA,YAAY,aAAa;AACzB,SAAS,YAAY;AACrB,SAAS,kBAAkB;AAuDjB,cAYE,YAZF;AATH,IAAM,WAAW;AAAA,EACtB,CAAC,IAAwF,QAAQ;AAAhG,iBAAE,YAAU,WAAW,MAAM,OAAO,OAAO,OAAO,QAAQ,SAAS,SAjDtE,IAiDG,IAAgF,iBAAhF,IAAgF,CAA9E,YAAU,aAAW,QAAM,SAAO,QAAc,SAAiB;AAClE;AAAA;AAAA;AAAA;AAAA;AAAA,MAKE,qBAAS,cAAR,EACC;AAAA,4BAAS,iBAAR,EAAgB,SAAO,MACtB;AAAA,UAAC;AAAA;AAAA,YACC;AAAA,YACA,WAAW,KAAK,wBAAwB,SAAsB;AAAA,YAC9D;AAAA,YACA,MAAK;AAAA,aACD,OALL;AAAA,YAOE;AAAA;AAAA,QACH,GACF;AAAA,QACA,oBAAS,gBAAR,EACC,8BAAS,iBAAR,EAAgB,SAAO,MAAC,MAAY,OACnC;AAAA,UAAC;AAAA,2CACK,WADL;AAAA,YAEC,WAAW,KAAK,qBAAqB,qCAAU,SAAsB;AAAA,YAErE;AAAA,kCAAS,eAAR,EAAc,SAAO,MACpB,8BAAC,aAAI,aAAJ,EAAgB,GACnB;AAAA,cACC;AAAA;AAAA;AAAA,QACH,GACF,GACF;AAAA,SACF;AAAA;AAAA,EAEJ;AACF;AACA,SAAS,cAAc;","names":[]}