@caseparts-org/caseblocks 0.0.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 (93) hide show
  1. package/README.md +97 -0
  2. package/dist/Text.module-ruz24ug-.js +25 -0
  3. package/dist/assets/Account.css +1 -0
  4. package/dist/assets/Avatar.css +1 -0
  5. package/dist/assets/Button.css +1 -0
  6. package/dist/assets/Chip.css +1 -0
  7. package/dist/assets/ChipSelector.css +1 -0
  8. package/dist/assets/Flex.css +1 -0
  9. package/dist/assets/Flex2.css +1 -0
  10. package/dist/assets/Grid.css +1 -0
  11. package/dist/assets/HideAt.css +1 -0
  12. package/dist/assets/Icon.css +1 -0
  13. package/dist/assets/Link.css +1 -0
  14. package/dist/assets/Logo.css +1 -0
  15. package/dist/assets/MainNav.css +1 -0
  16. package/dist/assets/Root.css +1 -0
  17. package/dist/assets/SearchBox.css +1 -0
  18. package/dist/assets/Separator.css +1 -0
  19. package/dist/assets/Text.css +1 -0
  20. package/dist/assets/ToggleView.css +1 -0
  21. package/dist/atoms/Button/Button.d.ts +7 -0
  22. package/dist/atoms/Button/Button.js +45 -0
  23. package/dist/atoms/Button/Button.stories.d.ts +15 -0
  24. package/dist/atoms/Button/Button.stories.js +40 -0
  25. package/dist/atoms/Flex/Flex.d.ts +13 -0
  26. package/dist/atoms/Flex/Flex.js +35 -0
  27. package/dist/atoms/Flex/Flex.stories.d.ts +14 -0
  28. package/dist/atoms/Flex/Flex.stories.js +131 -0
  29. package/dist/atoms/Grid/Grid.d.ts +25 -0
  30. package/dist/atoms/Grid/Grid.js +40 -0
  31. package/dist/atoms/Grid/Grid.stories.d.ts +17 -0
  32. package/dist/atoms/Grid/Grid.stories.js +58 -0
  33. package/dist/atoms/HideAt.d.ts +9 -0
  34. package/dist/atoms/HideAt.js +15 -0
  35. package/dist/atoms/Icon/Icon.d.ts +8 -0
  36. package/dist/atoms/Icon/Icon.js +33 -0
  37. package/dist/atoms/Icon/Icon.stories.d.ts +14 -0
  38. package/dist/atoms/Icon/Icon.stories.js +28 -0
  39. package/dist/atoms/Link/Link.d.ts +7 -0
  40. package/dist/atoms/Link/Link.js +35 -0
  41. package/dist/atoms/Link/Link.stories.d.ts +13 -0
  42. package/dist/atoms/Link/Link.stories.js +21 -0
  43. package/dist/atoms/ResponsiveProp.d.ts +2 -0
  44. package/dist/atoms/ResponsiveProp.js +14 -0
  45. package/dist/atoms/Root/Head.d.ts +1 -0
  46. package/dist/atoms/Root/Head.js +13 -0
  47. package/dist/atoms/Root/Root.d.ts +4 -0
  48. package/dist/atoms/Root/Root.js +10 -0
  49. package/dist/atoms/Separator/Separator.d.ts +7 -0
  50. package/dist/atoms/Separator/Separator.js +30 -0
  51. package/dist/atoms/Separator/Separator.stories.d.ts +13 -0
  52. package/dist/atoms/Separator/Separator.stories.js +33 -0
  53. package/dist/atoms/Text/Text.d.ts +15 -0
  54. package/dist/atoms/Text/Text.js +32 -0
  55. package/dist/atoms/Text/Text.stories.d.ts +17 -0
  56. package/dist/atoms/Text/Text.stories.js +89 -0
  57. package/dist/clsx-OuTLNxxd.js +16 -0
  58. package/dist/main.d.ts +29 -0
  59. package/dist/main.js +37 -0
  60. package/dist/molecules/Account/Account.d.ts +13 -0
  61. package/dist/molecules/Account/Account.js +66 -0
  62. package/dist/molecules/Account/Account.stories.d.ts +14 -0
  63. package/dist/molecules/Account/Account.stories.js +26 -0
  64. package/dist/molecules/Avatar/Avatar.d.ts +6 -0
  65. package/dist/molecules/Avatar/Avatar.js +35 -0
  66. package/dist/molecules/Avatar/Avatar.stories.d.ts +13 -0
  67. package/dist/molecules/Avatar/Avatar.stories.js +17 -0
  68. package/dist/molecules/Chip/Chip.d.ts +57 -0
  69. package/dist/molecules/Chip/Chip.js +71 -0
  70. package/dist/molecules/Chip/Chip.stories.d.ts +15 -0
  71. package/dist/molecules/Chip/Chip.stories.js +53 -0
  72. package/dist/molecules/Logo/Logo.d.ts +1 -0
  73. package/dist/molecules/Logo/Logo.js +53 -0
  74. package/dist/molecules/Logo/Logo.stories.d.ts +13 -0
  75. package/dist/molecules/Logo/Logo.stories.js +17 -0
  76. package/dist/molecules/SearchBox/SearchBox.d.ts +6 -0
  77. package/dist/molecules/SearchBox/SearchBox.js +60 -0
  78. package/dist/molecules/SearchBox/SearchBox.stories.d.ts +12 -0
  79. package/dist/molecules/SearchBox/SearchBox.stories.js +15 -0
  80. package/dist/molecules/ToggleView/ToggleView.d.ts +75 -0
  81. package/dist/molecules/ToggleView/ToggleView.js +102 -0
  82. package/dist/molecules/ToggleView/ToggleView.stories.d.ts +13 -0
  83. package/dist/molecules/ToggleView/ToggleView.stories.js +24 -0
  84. package/dist/organisms/ChipSelector/ChipSelector.d.ts +12 -0
  85. package/dist/organisms/ChipSelector/ChipSelector.js +43 -0
  86. package/dist/organisms/ChipSelector/ChipSelector.stories.d.ts +14 -0
  87. package/dist/organisms/ChipSelector/ChipSelector.stories.js +51 -0
  88. package/dist/organisms/MainNav/MainNav.d.ts +4 -0
  89. package/dist/organisms/MainNav/MainNav.js +103 -0
  90. package/dist/organisms/MainNav/MainNav.stories.d.ts +13 -0
  91. package/dist/organisms/MainNav/MainNav.stories.js +24 -0
  92. package/dist/styles/tokens.css +243 -0
  93. package/package.json +73 -0
@@ -0,0 +1 @@
1
+ ._button_1ql5u_1{box-sizing:border-box;cursor:pointer;width:var(--spacing-2-5);height:var(--spacing-2-5);padding:var(--spacing-0-5);border-width:0;border-radius:0px var(--spacing-0-125) var(--spacing-0-125) 0px;display:flex;flex-direction:row;align-items:center;justify-content:center;background-color:inherit;color:var(--icons-icon-search)}._text_1ql5u_31{flex:1;position:relative;border:none;outline:none;font-family:var(--font-family-body);font-weight:var(--font-weight-light);font-size:var(--font-size-sm);line-height:var(--line-height-sm);background:transparent;color:var(--text-text-search-bar)}._text_1ql5u_31::placeholder{font-style:italic}._input_1ql5u_61{flex:1;padding:0px 0px 0px var(--spacing-0-25)}._inputSearch_1ql5u_69{flex:1;border-radius:var(--spacing-0-125)}._searchfield_1ql5u_77{flex:1;height:var(--spacing-2-5);border-radius:var(--spacing-2-5);overflow:hidden;background-color:var(--surface-surface-search-bar)}._searchBox_1ql5u_91{flex:1;width:100%;min-width:250px;max-width:392px;height:var(--spacing-2-5);position:relative;border-radius:var(--spacing-2-5);overflow:hidden;text-align:left;background-color:var(--surface-surface-search-bar)}
@@ -0,0 +1 @@
1
+ ._separator_1ucrf_1{display:block;--separator-color: var(--color-brand-primary-primary-black);border-color:var(--separator-color);border-style:solid;--separator-thickness: 1px;border-width:0}._separator-vertical_1ucrf_19{border-left-width:var(--separator-thickness)}._separator-horizontal_1ucrf_27{border-top-width:var(--separator-thickness)}
@@ -0,0 +1 @@
1
+ ._text-body_dp585_1{font-family:var(--font-family-body),sans-serif}._text-display_dp585_7{font-family:var(--font-family-display)}._text-xxs_dp585_15{font-size:var(--font-size-xxs);line-height:var(--line-height-xxs)}._text-xs_dp585_23{font-size:var(--font-size-xs);line-height:var(--line-height-xs)}._text-sm_dp585_31{font-size:var(--font-size-sm);line-height:var(--line-height-sm)}._text-md_dp585_39{font-size:var(--font-size-md);line-height:var(--line-height-md)}._text-lg_dp585_47{font-size:var(--font-size-lg);line-height:var(--line-height-lg)}._text-xl_dp585_55{font-size:var(--font-size-xl);line-height:var(--line-height-xl)}._text-2xl_dp585_63{font-size:var(--font-size-2xl);line-height:var(--line-height-2xl)}._text-3xl_dp585_71{font-size:var(--font-size-3xl);line-height:var(--line-height-3xl)}._text-4xl_dp585_79{font-size:var(--font-size-4xl);line-height:var(--line-height-4xl)}._text-5xl_dp585_87{font-size:var(--font-size-5xl);line-height:var(--line-height-5xl)}._text-6xl_dp585_95{font-size:var(--font-size-6xl);line-height:var(--line-height-6xl)}._text-thin_dp585_105{font-weight:var(--font-weight-thin)}._text-extra-light_dp585_111{font-weight:var(--font-weight-extra-light)}._text-light_dp585_117{font-weight:var(--font-weight-light)}._text-regular_dp585_123{font-weight:var(--font-weight-regular)}._text-medium_dp585_129{font-weight:var(--font-weight-medium)}._text-semibold_dp585_135{font-weight:var(--font-weight-semibold)}._text-bold_dp585_141{font-weight:var(--font-weight-bold)}
@@ -0,0 +1 @@
1
+ ._toggleView_1qbhe_1{flex-wrap:wrap}._toggleOption_1qbhe_5{border:none;padding:var(--spacing-0-25) var(--spacing-1);gap:var(--spacing-0-125);cursor:pointer;border:1px solid var(--border-border-primary)}._toggleOption_1qbhe_5._selected_1qbhe_13{color:var(--text-text-invert);border:1px solid var(--color-brand-primary-primary-teal-blue);background-color:var(--color-brand-primary-primary-teal-blue)}._toggleOption_1qbhe_5._selected_1qbhe_13 path{fill:var(--icons-icon-invert)}
@@ -0,0 +1,7 @@
1
+ import { HideAtProps } from '../HideAt';
2
+ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, HideAtProps {
3
+ size: "xs" | "sm" | "md" | "lg" | "xl";
4
+ variant: "primary" | "secondary" | "cta-primary" | "tertiary" | "destructive";
5
+ disabled?: boolean;
6
+ }
7
+ export declare function Button({ children, size, variant, hideAt, className, ...otherProps }: ButtonProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,45 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { t as n } from "../../Text.module-ruz24ug-.js";
3
+ import { c as i } from "../../clsx-OuTLNxxd.js";
4
+ import { getHideAtStyles as l } from "../HideAt.js";
5
+ import '../../assets/Button.css';const m = "_button_1vql2_1", t = {
6
+ button: m,
7
+ "button-primary": "_button-primary_1vql2_71",
8
+ "button-secondary": "_button-secondary_1vql2_99",
9
+ "button-cta-primary": "_button-cta-primary_1vql2_143",
10
+ "button-tertiary": "_button-tertiary_1vql2_171",
11
+ "button-destructive": "_button-destructive_1vql2_207",
12
+ "button-size-xs": "_button-size-xs_1vql2_243",
13
+ "button-size-sm": "_button-size-sm_1vql2_251",
14
+ "button-size-md": "_button-size-md_1vql2_259",
15
+ "button-size-lg": "_button-size-lg_1vql2_267",
16
+ "button-size-xl": "_button-size-xl_1vql2_275"
17
+ };
18
+ function y({
19
+ children: _,
20
+ size: o,
21
+ variant: u,
22
+ hideAt: s,
23
+ className: e,
24
+ ...b
25
+ }) {
26
+ return /* @__PURE__ */ r(
27
+ "button",
28
+ {
29
+ className: i(
30
+ t.button,
31
+ t[`button-${u}`],
32
+ t[`button-size-${o}`],
33
+ n.text,
34
+ n[`text-${o}`],
35
+ l(s),
36
+ e
37
+ ),
38
+ ...b,
39
+ children: _
40
+ }
41
+ );
42
+ }
43
+ export {
44
+ y as Button
45
+ };
@@ -0,0 +1,15 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ import { Button } from './Button';
3
+ declare const meta: {
4
+ title: string;
5
+ component: typeof Button;
6
+ parameters: {
7
+ layout: string;
8
+ };
9
+ tags: string[];
10
+ };
11
+ export default meta;
12
+ type Story = StoryObj<typeof meta>;
13
+ export declare const AllProps: Story;
14
+ export declare const Variants: StoryObj<typeof Button>;
15
+ export declare const Sizes: StoryObj<typeof Button>;
@@ -0,0 +1,40 @@
1
+ import { jsx as r, jsxs as s } from "react/jsx-runtime";
2
+ import { Button as e } from "./Button.js";
3
+ const c = {
4
+ title: "Case Parts/Atoms/Button",
5
+ component: e,
6
+ parameters: {
7
+ // Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/configure/story-layout
8
+ layout: "centered"
9
+ },
10
+ // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
11
+ tags: ["autodocs"]
12
+ }, l = {
13
+ args: {
14
+ children: "Button Text",
15
+ size: "sm",
16
+ variant: "primary"
17
+ }
18
+ }, a = [
19
+ "primary",
20
+ "secondary",
21
+ "tertiary",
22
+ "cta-primary",
23
+ "destructive"
24
+ ], p = {
25
+ render: () => /* @__PURE__ */ r("div", { style: { display: "flex", flexDirection: "column", gap: "10px" }, children: a.map((t) => /* @__PURE__ */ s(e, { variant: t, size: "md", children: [
26
+ t.charAt(0).toUpperCase() + t.slice(1),
27
+ " Button"
28
+ ] }, t)) })
29
+ }, o = ["xs", "sm", "md", "lg", "xl"], m = {
30
+ render: () => /* @__PURE__ */ r("div", { style: { display: "flex", flexDirection: "column", gap: "10px" }, children: o.map((t) => /* @__PURE__ */ s(e, { size: t, variant: "primary", children: [
31
+ t.charAt(0).toUpperCase() + t.slice(1),
32
+ " Button"
33
+ ] }, t)) })
34
+ };
35
+ export {
36
+ l as AllProps,
37
+ m as Sizes,
38
+ p as Variants,
39
+ c as default
40
+ };
@@ -0,0 +1,13 @@
1
+ import { Property } from 'csstype';
2
+ import { HideAtProps } from '../HideAt';
3
+ import { ResponsiveProp } from '../ResponsiveProp';
4
+ /** A flex container for layout of elements. */
5
+ export interface FlexProps extends React.HTMLAttributes<HTMLDivElement>, HideAtProps {
6
+ /** The main direction of the flex container. */
7
+ flexDirection: ResponsiveProp<Property.FlexDirection>;
8
+ /** The alignment of items across the main flex axis. */
9
+ justifyContent?: ResponsiveProp<Property.JustifyContent>;
10
+ /** The alignment of items across the cross flex axis. */
11
+ alignItems?: ResponsiveProp<Property.AlignItems>;
12
+ }
13
+ export declare function Flex({ flexDirection, justifyContent, alignItems, style, hideAt, className, children, ...otherProps }: FlexProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,35 @@
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import { c as x } from "../../clsx-OuTLNxxd.js";
3
+ import { getHideAtStyles as c } from "../HideAt.js";
4
+ import { responsivePropToCSSVariables as e } from "../ResponsiveProp.js";
5
+ import '../../assets/Flex.css';const a = "_flex_99eez_1", p = {
6
+ flex: a
7
+ };
8
+ function _({
9
+ flexDirection: t = "row",
10
+ justifyContent: o = "flex-start",
11
+ alignItems: r = "stretch",
12
+ style: s = {},
13
+ hideAt: i,
14
+ className: l,
15
+ children: f,
16
+ ...m
17
+ }) {
18
+ return /* @__PURE__ */ n(
19
+ "div",
20
+ {
21
+ className: x(p.flex, c(i), l),
22
+ style: {
23
+ ...s,
24
+ ...e("flex-direction", t),
25
+ ...e("justify-content", o),
26
+ ...e("align-items", r)
27
+ },
28
+ ...m,
29
+ children: f
30
+ }
31
+ );
32
+ }
33
+ export {
34
+ _ as Flex
35
+ };
@@ -0,0 +1,14 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ import { Flex } from './Flex';
3
+ declare const meta: {
4
+ title: string;
5
+ component: typeof Flex;
6
+ parameters: {
7
+ layout: string;
8
+ };
9
+ tags: string[];
10
+ };
11
+ export default meta;
12
+ export declare const FlexDirection: StoryObj<typeof Flex>;
13
+ export declare const JustifyContent: StoryObj<typeof Flex>;
14
+ export declare const AlignItems: StoryObj<typeof Flex>;
@@ -0,0 +1,131 @@
1
+ import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
+ import { Flex as t } from "./Flex.js";
3
+ import { Text as c } from "../Text/Text.js";
4
+ import '../../assets/Flex2.css';const i = "_flexWrapper_1jk8h_1", d = {
5
+ flexWrapper: i
6
+ }, h = {
7
+ title: "Case Parts/Atoms/Flex",
8
+ component: t,
9
+ parameters: {
10
+ // Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/configure/story-layout
11
+ layout: "centered"
12
+ },
13
+ // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
14
+ tags: ["autodocs"]
15
+ };
16
+ function o({ children: l }) {
17
+ return /* @__PURE__ */ e("div", { className: d.flexWrapper, children: l });
18
+ }
19
+ function r({ children: l }) {
20
+ return /* @__PURE__ */ e(
21
+ c,
22
+ {
23
+ size: "md",
24
+ style: { backgroundColor: "lightgray", margin: 5, padding: 5 },
25
+ children: l
26
+ }
27
+ );
28
+ }
29
+ const u = {
30
+ render: () => /* @__PURE__ */ n(o, { children: [
31
+ /* @__PURE__ */ n(t, { flexDirection: "row", style: { backgroundColor: "#f0f0f0" }, children: [
32
+ /* @__PURE__ */ e(r, { children: "row" }),
33
+ /* @__PURE__ */ e(r, { children: "row" }),
34
+ /* @__PURE__ */ e(r, { children: "row" })
35
+ ] }),
36
+ /* @__PURE__ */ n(t, { flexDirection: "column", style: { backgroundColor: "#f0f0f0" }, children: [
37
+ /* @__PURE__ */ e(r, { children: "column" }),
38
+ /* @__PURE__ */ e(r, { children: "column" }),
39
+ /* @__PURE__ */ e(r, { children: "column" })
40
+ ] }),
41
+ /* @__PURE__ */ n(
42
+ t,
43
+ {
44
+ flexDirection: ["row", "column", "row"],
45
+ style: { backgroundColor: "#f0f0f0" },
46
+ children: [
47
+ /* @__PURE__ */ e(r, { children: '["row", "column", "row"]' }),
48
+ /* @__PURE__ */ e(r, { children: '["row", "column", "row"]' }),
49
+ /* @__PURE__ */ e(r, { children: '["row", "column", "row"]' })
50
+ ]
51
+ }
52
+ )
53
+ ] })
54
+ }, m = {
55
+ render: () => /* @__PURE__ */ n(o, { children: [
56
+ /* @__PURE__ */ n(
57
+ t,
58
+ {
59
+ flexDirection: "row",
60
+ justifyContent: "flex-start",
61
+ style: { backgroundColor: "#f0f0f0" },
62
+ children: [
63
+ /* @__PURE__ */ e(r, { children: "flex-start" }),
64
+ /* @__PURE__ */ e(r, { children: "flex-start" }),
65
+ /* @__PURE__ */ e(r, { children: "flex-start" })
66
+ ]
67
+ }
68
+ ),
69
+ /* @__PURE__ */ n(
70
+ t,
71
+ {
72
+ flexDirection: "row",
73
+ justifyContent: "flex-end",
74
+ style: { backgroundColor: "#f0f0f0" },
75
+ children: [
76
+ /* @__PURE__ */ e(r, { children: "flex-end" }),
77
+ /* @__PURE__ */ e(r, { children: "flex-end" }),
78
+ /* @__PURE__ */ e(r, { children: "flex-end" })
79
+ ]
80
+ }
81
+ ),
82
+ /* @__PURE__ */ n(
83
+ t,
84
+ {
85
+ flexDirection: "row",
86
+ justifyContent: ["start", "end", "start"],
87
+ style: { backgroundColor: "#f0f0f0" },
88
+ children: [
89
+ /* @__PURE__ */ e(r, { children: "start, end, start" }),
90
+ /* @__PURE__ */ e(r, { children: "start, end, start" }),
91
+ /* @__PURE__ */ e(r, { children: "start, end, start" })
92
+ ]
93
+ }
94
+ )
95
+ ] })
96
+ }, x = {
97
+ render: () => /* @__PURE__ */ n(o, { children: [
98
+ /* @__PURE__ */ n(
99
+ t,
100
+ {
101
+ flexDirection: "column",
102
+ alignItems: "end",
103
+ style: { backgroundColor: "#f0f0f0" },
104
+ children: [
105
+ /* @__PURE__ */ e(r, { children: "end" }),
106
+ /* @__PURE__ */ e(r, { children: "end" }),
107
+ /* @__PURE__ */ e(r, { children: "end" })
108
+ ]
109
+ }
110
+ ),
111
+ /* @__PURE__ */ n(
112
+ t,
113
+ {
114
+ flexDirection: "column",
115
+ alignItems: ["start", "center", "end"],
116
+ style: { backgroundColor: "#f0f0f0" },
117
+ children: [
118
+ /* @__PURE__ */ e(r, { children: "start, center, end" }),
119
+ /* @__PURE__ */ e(r, { children: "start, center, end" }),
120
+ /* @__PURE__ */ e(r, { children: "start, center, end" })
121
+ ]
122
+ }
123
+ )
124
+ ] })
125
+ };
126
+ export {
127
+ x as AlignItems,
128
+ u as FlexDirection,
129
+ m as JustifyContent,
130
+ h as default
131
+ };
@@ -0,0 +1,25 @@
1
+ import { HideAtProps } from '../HideAt';
2
+ import { ResponsiveProp } from '../ResponsiveProp';
3
+ export interface GridProps extends React.HTMLAttributes<HTMLDivElement> {
4
+ children: React.ReactNode;
5
+ }
6
+ /** A Grid component for layout of elements. Use the Column component to define children. */
7
+ export declare function Grid({ children, ...otherProps }: GridProps): import("react/jsx-runtime").JSX.Element;
8
+ export interface ColumnProps extends React.HTMLAttributes<HTMLDivElement>, HideAtProps {
9
+ /** The number of grid columns to span.
10
+ * If provided a number, it applies to all screen sizes.
11
+ * If provided an array, the first item applies to small screens, second to medium screens, and third to large screens.
12
+ */
13
+ span?: ResponsiveProp<number>;
14
+ /** The grid column in which to start the element.
15
+ * If provided a number, it applies to all screen sizes.
16
+ * If provided an array, the first item applies to small screens, second to medium screens, and third to large screens.
17
+ */
18
+ start?: ResponsiveProp<number | "auto">;
19
+ /** The content of the column. */
20
+ children: React.ReactNode;
21
+ }
22
+ /** A Column within a Grid. */
23
+ export declare function Column({ span, // default to full-width.
24
+ start, // default to "auto".
25
+ hideAt, className, children, style, ...otherProps }: ColumnProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,40 @@
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import { c as l } from "../../clsx-OuTLNxxd.js";
3
+ import { getHideAtStyles as u } from "../HideAt.js";
4
+ import { responsivePropToCSSVariables as t } from "../ResponsiveProp.js";
5
+ import '../../assets/Grid.css';const d = "_grid_wn2h7_3", p = "_column_wn2h7_21", n = {
6
+ grid: d,
7
+ column: p
8
+ };
9
+ function x({ children: o, ...r }) {
10
+ return /* @__PURE__ */ s("div", { className: n.grid, ...r, children: o });
11
+ }
12
+ function y({
13
+ span: o = [4, 12, 12],
14
+ // default to full-width.
15
+ start: r = ["auto", "auto", "auto"],
16
+ // default to "auto".
17
+ hideAt: i,
18
+ className: m,
19
+ children: c,
20
+ style: e = {},
21
+ ...a
22
+ }) {
23
+ return /* @__PURE__ */ s(
24
+ "div",
25
+ {
26
+ className: l(n.column, u(i), m),
27
+ style: {
28
+ ...e,
29
+ ...t("span", o),
30
+ ...t("start", r)
31
+ },
32
+ ...a,
33
+ children: c
34
+ }
35
+ );
36
+ }
37
+ export {
38
+ y as Column,
39
+ x as Grid
40
+ };
@@ -0,0 +1,17 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ import { Grid } from './Grid';
3
+ declare const meta: {
4
+ title: string;
5
+ component: typeof Grid;
6
+ parameters: {
7
+ layout: string;
8
+ };
9
+ };
10
+ export default meta;
11
+ export declare const NoSpanSpecified: StoryObj<typeof Grid>;
12
+ export declare const SpanOf1: StoryObj<typeof Grid>;
13
+ export declare const ResponsiveSpans: StoryObj<typeof Grid>;
14
+ export declare const WrappingForSmallOnly: StoryObj<typeof Grid>;
15
+ export declare const AlwaysWrapping: StoryObj<typeof Grid>;
16
+ export declare const Start: StoryObj<typeof Grid>;
17
+ export declare const ResponsiveStart: StoryObj<typeof Grid>;
@@ -0,0 +1,58 @@
1
+ import { jsx as s, jsxs as i } from "react/jsx-runtime";
2
+ import { Grid as t, Column as e } from "./Grid.js";
3
+ import { Text as n } from "../Text/Text.js";
4
+ const m = {
5
+ title: "Case Parts/Atoms/Grid",
6
+ component: t,
7
+ parameters: {
8
+ layout: "centered"
9
+ }
10
+ }, r = { backgroundColor: "#ccc", height: "50px" }, l = { backgroundColor: "#eee" }, y = {
11
+ render: () => /* @__PURE__ */ s(t, { style: l, children: /* @__PURE__ */ s(e, { style: r, children: /* @__PURE__ */ s(n, { size: "sm", children: "no span specified " }) }) })
12
+ }, z = {
13
+ render: () => {
14
+ const a = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], c = { backgroundColor: "#ccc", height: "50px" };
15
+ return /* @__PURE__ */ s(t, { style: l, children: a.map((d) => /* @__PURE__ */ s(e, { span: 1, style: c, children: /* @__PURE__ */ s(n, { size: "sm", children: "span 1" }) }, d)) });
16
+ }
17
+ }, u = {
18
+ render: () => /* @__PURE__ */ i(t, { style: l, children: [
19
+ /* @__PURE__ */ s(e, { span: [2, 6, 6], style: r, children: /* @__PURE__ */ s(n, { size: "sm", children: "span [2, 6, 6]" }) }),
20
+ /* @__PURE__ */ s(e, { span: [2, 6, 6], style: r, children: /* @__PURE__ */ s(n, { size: "sm", children: "span [2, 6, 6]" }) })
21
+ ] })
22
+ }, S = {
23
+ render: () => /* @__PURE__ */ i(t, { style: l, children: [
24
+ /* @__PURE__ */ s(e, { span: [4, 8, 8], style: r, children: /* @__PURE__ */ s(n, { size: "sm", children: "span [4, 8, 8]" }) }),
25
+ /* @__PURE__ */ s(e, { span: 4, style: r, children: /* @__PURE__ */ s(n, { size: "sm", children: "span 4" }) })
26
+ ] })
27
+ }, g = {
28
+ render: () => /* @__PURE__ */ i(t, { style: l, children: [
29
+ /* @__PURE__ */ s(e, { span: 7, style: r, children: /* @__PURE__ */ s(n, { size: "sm", children: "span 7" }) }),
30
+ /* @__PURE__ */ s(e, { span: 7, style: r, children: /* @__PURE__ */ s(n, { size: "sm", children: "span 7" }) })
31
+ ] })
32
+ }, f = {
33
+ render: () => /* @__PURE__ */ i(t, { style: l, children: [
34
+ /* @__PURE__ */ s(e, { start: 1, span: 2, style: r, children: /* @__PURE__ */ s(n, { size: "sm", children: "start 1, span 2" }) }),
35
+ /* @__PURE__ */ s(e, { start: 2, span: 2, style: r, children: /* @__PURE__ */ s(n, { size: "sm", children: "start 2, span 2" }) }),
36
+ /* @__PURE__ */ s(e, { start: 3, span: 2, style: r, children: /* @__PURE__ */ s(n, { size: "sm", children: "start 3, span 2" }) }),
37
+ /* @__PURE__ */ s(e, { start: 1, span: 1, style: r, children: /* @__PURE__ */ s(n, { size: "sm", children: "start 1, span 1" }) }),
38
+ /* @__PURE__ */ s(e, { start: 3, span: 1, style: r, children: /* @__PURE__ */ s(n, { size: "sm", children: "start 3, span 1" }) })
39
+ ] })
40
+ }, x = {
41
+ render: () => /* @__PURE__ */ i(t, { style: l, children: [
42
+ /* @__PURE__ */ s(e, { start: 1, span: [2, 6, 6], style: r, children: /* @__PURE__ */ s(n, { size: "sm", children: "start 1, span [2,6,6]" }) }),
43
+ /* @__PURE__ */ s(e, { start: [2, 4, 4], span: [2, 6, 6], style: r, children: /* @__PURE__ */ s(n, { size: "sm", children: "start [2,4,4], span [2,6,6]" }) }),
44
+ /* @__PURE__ */ s(e, { start: [3, 7, 7], span: [2, 6, 6], style: r, children: /* @__PURE__ */ s(n, { size: "sm", children: "start [3,7,7], span [2,6,6]" }) }),
45
+ /* @__PURE__ */ s(e, { start: 1, span: 1, style: r, children: /* @__PURE__ */ s(n, { size: "sm", children: "start 1, span 1" }) }),
46
+ /* @__PURE__ */ s(e, { start: [3, 7, 7], span: 1, style: r, children: /* @__PURE__ */ s(n, { size: "sm", children: "start [3,7,7] span 1" }) })
47
+ ] })
48
+ };
49
+ export {
50
+ g as AlwaysWrapping,
51
+ y as NoSpanSpecified,
52
+ u as ResponsiveSpans,
53
+ x as ResponsiveStart,
54
+ z as SpanOf1,
55
+ f as Start,
56
+ S as WrappingForSmallOnly,
57
+ m as default
58
+ };
@@ -0,0 +1,9 @@
1
+ export type HideAtValue = "sm" | "md" | "lg";
2
+ export type HideAtProp = HideAtValue | Array<HideAtValue> | undefined;
3
+ /** Describes a component which can be hidden at specific screen sizes. */
4
+ export interface HideAtProps {
5
+ /** Hide the element at specific screen sizes. */
6
+ hideAt?: HideAtProp;
7
+ }
8
+ /** Get the CSS styles for a HideAtProp. */
9
+ export declare function getHideAtStyles(hideAt: HideAtProp): string[];
@@ -0,0 +1,15 @@
1
+ import '../assets/HideAt.css';const i = {
2
+ "hideAt-lg": "_hideAt-lg_curbn_1",
3
+ "hideAt-md": "_hideAt-md_curbn_13",
4
+ "hideAt-sm": "_hideAt-sm_curbn_25"
5
+ };
6
+ function d(t) {
7
+ const e = n(t);
8
+ return e.length === 0 ? [] : e.map((r) => i[`hideAt-${r}`]).concat(["hide"]);
9
+ }
10
+ function n(t) {
11
+ return t === void 0 ? [] : Array.isArray(t) ? t : [t];
12
+ }
13
+ export {
14
+ d as getHideAtStyles
15
+ };
@@ -0,0 +1,8 @@
1
+ import { HideAtProps } from '../HideAt';
2
+ type IconSet = "fa-kit" | "fa-solid" | "fa-regular" | "fa-light" | "fa-thin" | "fa-brands";
3
+ interface IconProps extends React.HTMLAttributes<HTMLSpanElement>, HideAtProps {
4
+ iconKey: `${IconSet} ${string}`;
5
+ size?: "sm" | "md" | "lg";
6
+ }
7
+ export declare function Icon({ iconKey, size, hideAt, className, ...otherProps }: IconProps): import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,33 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { c as l } from "../../clsx-OuTLNxxd.js";
3
+ import { getHideAtStyles as _ } from "../HideAt.js";
4
+ import '../../assets/Icon.css';const e = {
5
+ "icon-sm": "_icon-sm_flrgw_1",
6
+ "icon-md": "_icon-md_flrgw_6",
7
+ "icon-lg": "_icon-lg_flrgw_11"
8
+ };
9
+ function d({
10
+ iconKey: o,
11
+ size: c = "md",
12
+ hideAt: i,
13
+ className: n,
14
+ ...s
15
+ }) {
16
+ const [t, m] = o.split(" ");
17
+ return /* @__PURE__ */ r(
18
+ "i",
19
+ {
20
+ className: l(
21
+ t,
22
+ m,
23
+ e[`icon-${c}`],
24
+ _(i),
25
+ n
26
+ ),
27
+ ...s
28
+ }
29
+ );
30
+ }
31
+ export {
32
+ d as Icon
33
+ };
@@ -0,0 +1,14 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ import { Icon } from './Icon';
3
+ declare const meta: {
4
+ title: string;
5
+ component: typeof Icon;
6
+ parameters: {
7
+ layout: string;
8
+ };
9
+ tags: string[];
10
+ };
11
+ export default meta;
12
+ type Story = StoryObj<typeof meta>;
13
+ export declare const Default: Story;
14
+ export declare const Sizes: StoryObj<typeof Icon>;
@@ -0,0 +1,28 @@
1
+ import { jsxs as a, Fragment as i, jsx as e } from "react/jsx-runtime";
2
+ import { Icon as t } from "./Icon.js";
3
+ const c = {
4
+ title: "Case Parts/Atoms/Icon",
5
+ component: t,
6
+ parameters: {
7
+ // Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/configure/story-layout
8
+ layout: "centered"
9
+ },
10
+ // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
11
+ tags: ["autodocs"]
12
+ }, n = {
13
+ args: {
14
+ iconKey: "fa-kit fa-chat",
15
+ title: "Live Chat"
16
+ }
17
+ }, r = {
18
+ render: () => /* @__PURE__ */ a(i, { children: [
19
+ /* @__PURE__ */ e(t, { iconKey: "fa-kit fa-chat", size: "sm", title: "Live Chat" }),
20
+ /* @__PURE__ */ e(t, { iconKey: "fa-kit fa-chat", size: "md", title: "Live Chat" }),
21
+ /* @__PURE__ */ e(t, { iconKey: "fa-kit fa-chat", size: "lg", title: "Live Chat" })
22
+ ] })
23
+ };
24
+ export {
25
+ n as Default,
26
+ r as Sizes,
27
+ c as default
28
+ };
@@ -0,0 +1,7 @@
1
+ import { HideAtProps } from '../HideAt';
2
+ /** A link element. */
3
+ export interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement>, HideAtProps {
4
+ /** Is the link disabled? */
5
+ disabled?: boolean;
6
+ }
7
+ export declare function Link({ href, children, disabled, hideAt, className, ...otherProps }: LinkProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,35 @@
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import { t as a } from "../../Text.module-ruz24ug-.js";
3
+ import { c as d } from "../../clsx-OuTLNxxd.js";
4
+ import { getHideAtStyles as m } from "../HideAt.js";
5
+ import '../../assets/Link.css';const c = "_link_6pq15_1", f = "_disabled_6pq15_27", s = {
6
+ link: c,
7
+ disabled: f
8
+ };
9
+ function b({
10
+ href: e,
11
+ children: i,
12
+ disabled: t = !1,
13
+ hideAt: o,
14
+ className: l,
15
+ ...r
16
+ }) {
17
+ return /* @__PURE__ */ n(
18
+ "a",
19
+ {
20
+ href: t ? void 0 : e,
21
+ className: d(
22
+ a["text-body"],
23
+ s.link,
24
+ t ? s.disabled : "",
25
+ m(o),
26
+ l
27
+ ),
28
+ ...r,
29
+ children: i
30
+ }
31
+ );
32
+ }
33
+ export {
34
+ b as Link
35
+ };
@@ -0,0 +1,13 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ import { Link } from './Link';
3
+ declare const meta: {
4
+ title: string;
5
+ component: typeof Link;
6
+ parameters: {
7
+ layout: string;
8
+ };
9
+ tags: string[];
10
+ };
11
+ export default meta;
12
+ type Story = StoryObj<typeof meta>;
13
+ export declare const Default: Story;