@mittwald/flow-react-components 0.1.0-alpha.429 → 0.1.0-alpha.430

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 (43) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/css/FileDropZone.css +1 -1
  3. package/dist/css/Text.css +1 -1
  4. package/dist/js/{Accordion-fxpaMqVR.js → Accordion-CvQmFZpD.js} +1 -1
  5. package/dist/js/Accordion.js +1 -1
  6. package/dist/js/AlertBadge.js +1 -1
  7. package/dist/js/{Badge-BdqWEW4w.js → Badge-BhqUnPZf.js} +1 -1
  8. package/dist/js/Badge.js +1 -1
  9. package/dist/js/{Button-BHFXhYtp.js → Button-E4IPlAeV.js} +1 -1
  10. package/dist/js/Button.js +1 -1
  11. package/dist/js/{CalendarHeader-iMfMiCgW.js → CalendarHeader-KcnXosgj.js} +1 -1
  12. package/dist/js/{CodeBlock-CO_A4KZ1.js → CodeBlock-2HQAozdU.js} +1 -1
  13. package/dist/js/CodeBlock.js +1 -1
  14. package/dist/js/ComboBox.js +1 -1
  15. package/dist/js/{CopyButton-B3sou0WM.js → CopyButton-DldLcTuq.js} +1 -1
  16. package/dist/js/CopyButton.js +1 -1
  17. package/dist/js/DatePicker.js +2 -2
  18. package/dist/js/DateRangePicker.js +2 -2
  19. package/dist/js/{FieldDescription-DrLNBYTi.js → FieldDescription-CYWhHWVV.js} +1 -1
  20. package/dist/js/FieldDescription.js +1 -1
  21. package/dist/js/FileCard.js +5 -6
  22. package/dist/js/HeaderNavigation.js +1 -1
  23. package/dist/js/LightBox.js +1 -1
  24. package/dist/js/List.js +4 -4
  25. package/dist/js/Markdown.js +2 -2
  26. package/dist/js/Modal.js +1 -1
  27. package/dist/js/Navigation.js +1 -1
  28. package/dist/js/Notification.js +1 -1
  29. package/dist/js/NumberField.js +1 -1
  30. package/dist/js/{SearchField-Bwk1OaKT.js → SearchField-DudIf4KT.js} +1 -1
  31. package/dist/js/SearchField.js +1 -1
  32. package/dist/js/Slider.js +1 -1
  33. package/dist/js/Tabs.js +2 -2
  34. package/dist/js/Text-B17xjuUC.js +53 -0
  35. package/dist/js/Text.js +1 -1
  36. package/dist/js/TextArea.js +1 -1
  37. package/dist/js/TextField.js +1 -1
  38. package/dist/js/{TextFieldBase-BO5fehc7.js → TextFieldBase-C6S5_eRn.js} +1 -1
  39. package/dist/js/all.css +1 -1
  40. package/dist/js/types/components/Text/Text.d.ts +1 -0
  41. package/dist/js/types/components/Text/stories/Default.stories.d.ts +1 -0
  42. package/package.json +4 -4
  43. package/dist/js/Text-C7Akf24Y.js +0 -44
@@ -5,6 +5,7 @@ import * as Aria from "react-aria-components";
5
5
  export interface TextProps extends PropsWithChildren, Omit<Aria.TextProps, "children" | "elementType">, PropsWithElementType<"span" | "div" | "p">, FlowComponentProps {
6
6
  emulateBoldWidth?: boolean;
7
7
  color?: "light" | "dark";
8
+ align?: "start" | "end" | "center";
8
9
  }
9
10
  export declare const Text: React.ForwardRefExoticComponent<TextProps & React.RefAttributes<never>>;
10
11
  export default Text;
@@ -10,3 +10,4 @@ export declare const OrderedList: Story;
10
10
  export declare const SmallText: Story;
11
11
  export declare const Dark: Story;
12
12
  export declare const Light: Story;
13
+ export declare const AlignEnd: Story;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mittwald/flow-react-components",
3
- "version": "0.1.0-alpha.429",
3
+ "version": "0.1.0-alpha.430",
4
4
  "type": "module",
5
5
  "description": "A React implementation of Flow, mittwald’s design system",
6
6
  "homepage": "https://mittwald.github.io/flow",
@@ -440,7 +440,7 @@
440
440
  "@chakra-ui/live-region": "^2.1.0",
441
441
  "@internationalized/date": "^3.6.0",
442
442
  "@internationalized/string-compiler": "^3.2.6",
443
- "@mittwald/react-tunnel": "^0.1.0-alpha.429",
443
+ "@mittwald/react-tunnel": "^0.1.0-alpha.430",
444
444
  "@mittwald/react-use-promise": "^2.6.0",
445
445
  "@react-aria/form": "^3.0.11",
446
446
  "@react-aria/utils": "^3.26.0",
@@ -471,7 +471,7 @@
471
471
  },
472
472
  "devDependencies": {
473
473
  "@faker-js/faker": "^9.2.0",
474
- "@mittwald/flow-design-tokens": "^0.1.0-alpha.429",
474
+ "@mittwald/flow-design-tokens": "^0.1.0-alpha.430",
475
475
  "@mittwald/react-use-promise": "^2.6.0",
476
476
  "@nx/storybook": "^20.1.3",
477
477
  "@storybook/addon-a11y": "^8.4.5",
@@ -566,5 +566,5 @@
566
566
  }
567
567
  }
568
568
  },
569
- "gitHead": "d8e81c279b1585419a22339269db4f0a65b9adfd"
569
+ "gitHead": "963f85c3f35a60dcebce7f4a37f0c0832b31e109"
570
570
  }
@@ -1,44 +0,0 @@
1
- "use client"
2
- /* */
3
- import t from "react";
4
- import * as E from "react-aria-components";
5
- import { C as u } from "./ClearPropsContext-CUvsbMn8.js";
6
- import { PropsContextProvider as T } from "./PropsContextProvider.js";
7
- import "@react-aria/utils";
8
- import "./propsContext-DzAKlmhS.js";
9
- import "remeda";
10
- import C from "invariant";
11
- import { f as h } from "./flowComponent-B1r5sCmz.js";
12
- import { E as g } from "./EmulatedBoldText-Dtox8Wd1.js";
13
- import { W as y } from "./Wrap-DGT1h1o3.js";
14
- import P from "clsx";
15
- const k = "flow--text", w = "flow--text--light", N = "flow--text--dark", s = {
16
- text: k,
17
- light: w,
18
- dark: N
19
- }, F = h("Text", (o) => {
20
- const {
21
- children: a,
22
- className: i,
23
- elementType: e = "span",
24
- emulateBoldWidth: p,
25
- refProp: r,
26
- color: n,
27
- ...c
28
- } = o, f = P(s.text, n && s[n], i), m = { ...c, className: f }, x = {
29
- Link: {
30
- inline: !0
31
- }
32
- }, l = /* @__PURE__ */ t.createElement(T, { props: x }, /* @__PURE__ */ t.createElement(y, { if: p }, /* @__PURE__ */ t.createElement(g, null, a)));
33
- if (!o.slot) {
34
- const d = e;
35
- return /* @__PURE__ */ t.createElement(d, { ...m, ref: r }, l);
36
- }
37
- return C(
38
- typeof e == "string",
39
- "'elementType' in Text component must be of type string"
40
- ), /* @__PURE__ */ t.createElement(u, null, /* @__PURE__ */ t.createElement(E.Text, { ...m, elementType: e, ref: r }, l));
41
- });
42
- export {
43
- F as T
44
- };