@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/_tsup-dts-rollup.d.mts +14 -4
- package/dist/_tsup-dts-rollup.d.ts +14 -4
- package/dist/accordion/index.mjs +5 -5
- package/dist/{chunk-CU56G5WS.mjs → chunk-CSAEHQ4R.mjs} +2 -2
- package/dist/{chunk-E5O6ID3L.mjs → chunk-E2RTLHMZ.mjs} +4 -4
- package/dist/chunk-E2RTLHMZ.mjs.map +1 -0
- package/dist/{chunk-BFNITN5E.mjs → chunk-S3BGPCLK.mjs} +2 -2
- package/dist/{chunk-3FRCJ3RH.mjs → chunk-XYIY6FHW.mjs} +7 -7
- package/dist/footer/footer.mjs +4 -4
- package/dist/footer/index.mjs +5 -5
- package/dist/help-text/help-text.js +3 -3
- package/dist/help-text/help-text.js.map +1 -1
- package/dist/help-text/help-text.mjs +1 -1
- package/dist/help-text/index.js +3 -3
- package/dist/help-text/index.js.map +1 -1
- package/dist/help-text/index.mjs +1 -1
- package/dist/index-no-css.js +3 -3
- package/dist/index-no-css.js.map +1 -1
- package/dist/index-no-css.mjs +16 -16
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -16
- package/package.json +3 -3
- package/dist/chunk-E5O6ID3L.mjs.map +0 -1
- /package/dist/{chunk-CU56G5WS.mjs.map → chunk-CSAEHQ4R.mjs.map} +0 -0
- /package/dist/{chunk-BFNITN5E.mjs.map → chunk-S3BGPCLK.mjs.map} +0 -0
- /package/dist/{chunk-3FRCJ3RH.mjs.map → chunk-XYIY6FHW.mjs.map} +0 -0
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-
|
|
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-
|
|
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-
|
|
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
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
} from "./chunk-
|
|
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-
|
|
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.
|
|
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.
|
|
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.
|
|
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":[]}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|