@pismo/marola 0.0.1-alpha.19 → 0.0.1-alpha.2

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 (145) hide show
  1. package/README.md +5 -17
  2. package/dist/Button-REznN-RP.js +1139 -0
  3. package/dist/Dialog.module-BO0mdB7d.js +15 -0
  4. package/dist/assets/CallToActionButton.css +1 -0
  5. package/dist/assets/Dialog.css +1 -1
  6. package/dist/assets/LoadingSpinner.css +1 -1
  7. package/dist/assets/Typography.css +1 -1
  8. package/dist/assets/main.css +1 -0
  9. package/dist/components/CallToActionButton/CallToActionButton.d.ts +23 -0
  10. package/dist/components/CallToActionButton/CallToActionButton.js +57 -0
  11. package/dist/components/Dialog/Actions.js +1 -1
  12. package/dist/components/Dialog/Backdrop.d.ts +1 -1
  13. package/dist/components/Dialog/Backdrop.js +9 -2
  14. package/dist/components/Dialog/CloseIconButton.js +10 -11
  15. package/dist/components/Dialog/Dialog.d.ts +4 -5
  16. package/dist/components/Dialog/Dialog.js +20103 -445
  17. package/dist/components/Dialog/Title.js +7 -22
  18. package/dist/components/LoadingSpinner/LoadingSpinner.d.ts +0 -2
  19. package/dist/components/LoadingSpinner/LoadingSpinner.js +13 -12
  20. package/dist/components/Typography/Typography.d.ts +6 -17
  21. package/dist/components/Typography/Typography.js +64 -85
  22. package/dist/main.d.ts +3 -25
  23. package/dist/main.js +15 -62
  24. package/dist/types/helpers.d.ts +7 -14
  25. package/package.json +9 -51
  26. package/src/playground/Playground.tsx +58 -0
  27. package/dist/Button-2b1peDFT.js +0 -130
  28. package/dist/ClickAwayListener-BSW-Nd-y.js +0 -107
  29. package/dist/Dialog.module-B8COssqi.js +0 -15
  30. package/dist/Popup-B6ZSGIEI.js +0 -1248
  31. package/dist/Portal-DIeBsWdL.js +0 -73
  32. package/dist/SelectButton-pciwIWcj.js +0 -46
  33. package/dist/Tabs.module-jkH1Qjn7.js +0 -22
  34. package/dist/assets/Advice.css +0 -1
  35. package/dist/assets/Button.css +0 -1
  36. package/dist/assets/Checkbox.css +0 -1
  37. package/dist/assets/Chip.css +0 -1
  38. package/dist/assets/IconButton.css +0 -1
  39. package/dist/assets/Input.css +0 -1
  40. package/dist/assets/InputSearch.css +0 -1
  41. package/dist/assets/PageHeader.css +0 -1
  42. package/dist/assets/Pagination.css +0 -1
  43. package/dist/assets/SelectButton.css +0 -1
  44. package/dist/assets/Skeleton.css +0 -1
  45. package/dist/assets/Snackbar.css +0 -1
  46. package/dist/assets/SortTooltip.css +0 -1
  47. package/dist/assets/Stepper.css +0 -1
  48. package/dist/assets/Table.css +0 -1
  49. package/dist/assets/Tabs.css +0 -1
  50. package/dist/assets/TextDisplay.css +0 -1
  51. package/dist/assets/Toggle.css +0 -1
  52. package/dist/assets/Tooltip.css +0 -1
  53. package/dist/combineHooksSlotProps-DVjg9PRh.js +0 -80
  54. package/dist/components/Advice/Advice.d.ts +0 -28
  55. package/dist/components/Advice/Advice.js +0 -25
  56. package/dist/components/Advice/Advice.stories.d.ts +0 -16
  57. package/dist/components/Button/Button.d.ts +0 -32
  58. package/dist/components/Button/Button.js +0 -94
  59. package/dist/components/Button/Button.stories.d.ts +0 -62
  60. package/dist/components/Checkbox/Checkbox.d.ts +0 -34
  61. package/dist/components/Checkbox/Checkbox.js +0 -56
  62. package/dist/components/Checkbox/Checkbox.stories.d.ts +0 -31
  63. package/dist/components/Chip/Chip.d.ts +0 -37
  64. package/dist/components/Chip/Chip.js +0 -143
  65. package/dist/components/Chip/Chip.stories.d.ts +0 -40
  66. package/dist/components/Chip/chip.test.d.ts +0 -1
  67. package/dist/components/Dialog/Dialog.stories.d.ts +0 -343
  68. package/dist/components/Icon/Icon.d.ts +0 -27
  69. package/dist/components/Icon/Icon.js +0 -116
  70. package/dist/components/Icon/Icon.stories.d.ts +0 -16
  71. package/dist/components/IconButton/Icon.stories.d.ts +0 -15
  72. package/dist/components/IconButton/IconButton.d.ts +0 -36
  73. package/dist/components/IconButton/IconButton.js +0 -70
  74. package/dist/components/Input/Input.d.ts +0 -44
  75. package/dist/components/Input/Input.js +0 -496
  76. package/dist/components/Input/Input.stories.d.ts +0 -43
  77. package/dist/components/InputSearch/InputSearch.d.ts +0 -9
  78. package/dist/components/InputSearch/InputSearch.js +0 -34
  79. package/dist/components/InputSearch/InputSearch.stories.d.ts +0 -39
  80. package/dist/components/LoadingSpinner/LoadingSpinner.stories.d.ts +0 -14
  81. package/dist/components/PageHeader/PageHeader.d.ts +0 -36
  82. package/dist/components/PageHeader/PageHeader.js +0 -51
  83. package/dist/components/PageHeader/PageHeader.stories.d.ts +0 -43
  84. package/dist/components/Pagination/Pagination.d.ts +0 -55
  85. package/dist/components/Pagination/Pagination.js +0 -222
  86. package/dist/components/Pagination/Pagination.stories.d.ts +0 -17
  87. package/dist/components/Select/Select.d.ts +0 -26
  88. package/dist/components/Select/Select.js +0 -857
  89. package/dist/components/Select/Select.stories.d.ts +0 -22
  90. package/dist/components/Select/SelectButton.d.ts +0 -12
  91. package/dist/components/Select/SelectButton.js +0 -8
  92. package/dist/components/Skeleton/Skeleton.d.ts +0 -25
  93. package/dist/components/Skeleton/Skeleton.js +0 -23
  94. package/dist/components/Skeleton/Skeleton.stories.d.ts +0 -14
  95. package/dist/components/Skeleton/SkeletonCircle.stories.d.ts +0 -14
  96. package/dist/components/Skeleton/SkeletonTable.stories.d.ts +0 -16
  97. package/dist/components/Snackbar/Snackbar.d.ts +0 -25
  98. package/dist/components/Snackbar/Snackbar.js +0 -622
  99. package/dist/components/Snackbar/Snackbar.stories.d.ts +0 -318
  100. package/dist/components/SortTooltip/SortTooltip.d.ts +0 -28
  101. package/dist/components/SortTooltip/SortTooltip.js +0 -78
  102. package/dist/components/Stepper/Stepper.d.ts +0 -26
  103. package/dist/components/Stepper/Stepper.js +0 -33
  104. package/dist/components/Stepper/Stepper.stories.d.ts +0 -16
  105. package/dist/components/Table/Table.d.ts +0 -39
  106. package/dist/components/Table/Table.js +0 -120
  107. package/dist/components/Table/TableContext.d.ts +0 -19
  108. package/dist/components/Table/TableContext.js +0 -21
  109. package/dist/components/Tabs/Tab.d.ts +0 -14
  110. package/dist/components/Tabs/Tab.js +0 -181
  111. package/dist/components/Tabs/Tab.stories.d.ts +0 -15
  112. package/dist/components/Tabs/TabPanel.d.ts +0 -12
  113. package/dist/components/Tabs/TabPanel.js +0 -118
  114. package/dist/components/Tabs/TabPanel.stories.d.ts +0 -14
  115. package/dist/components/Tabs/Tabs.d.ts +0 -15
  116. package/dist/components/Tabs/Tabs.js +0 -401
  117. package/dist/components/Tabs/Tabs.stories.d.ts +0 -14
  118. package/dist/components/TextDisplay/TextDisplay.d.ts +0 -23
  119. package/dist/components/TextDisplay/TextDisplay.js +0 -37
  120. package/dist/components/TextDisplay/TextDisplay.stories.d.ts +0 -13
  121. package/dist/components/TextDisplay/textDisplay.test.d.ts +0 -1
  122. package/dist/components/Toggle/Toggle.d.ts +0 -11
  123. package/dist/components/Toggle/Toggle.js +0 -251
  124. package/dist/components/Toggle/Toggle.stories.d.ts +0 -21
  125. package/dist/components/Tooltip/Tooltip.d.ts +0 -29
  126. package/dist/components/Tooltip/Tooltip.js +0 -139
  127. package/dist/components/Tooltip/Tooltip.stories.d.ts +0 -33
  128. package/dist/components/Typography/Typography.stories.d.ts +0 -32
  129. package/dist/components/Typography/typography.test.d.ts +0 -1
  130. package/dist/index-CH45lKw7.js +0 -840
  131. package/dist/index-CjW42-M-.js +0 -19584
  132. package/dist/marola.css +0 -1
  133. package/dist/test-utils/assertStyles.d.ts +0 -1
  134. package/dist/test-utils/assertStyles.js +0 -11
  135. package/dist/useButton-DNk3wrQp.js +0 -105
  136. package/dist/useCompoundItem-D1iRfg8D.js +0 -84
  137. package/dist/useControlled-CCMYYdCM.js +0 -31
  138. package/dist/useEnhancedEffect-CJGo-L3B.js +0 -5
  139. package/dist/useEventCallback-xTG9piMa.js +0 -45
  140. package/dist/useIsFocusVisible-BH4IAdcw.js +0 -69
  141. package/dist/useList-B0hog_3-.js +0 -436
  142. package/dist/useTimeout-DxF9kiZL.js +0 -36
  143. package/dist/utils/styleStrings.d.ts +0 -6
  144. package/dist/utils/styleStrings.js +0 -10
  145. package/dist/utils/styleStrings.test.d.ts +0 -1
@@ -1,34 +0,0 @@
1
- import { ReactNode } from 'react';
2
-
3
- type CheckboxTheme = 'light' | 'accent';
4
- type CheckboxSizes = 'small' | 'normal';
5
- type CheckboxProps = {
6
- /** Space separated list of CSS classes to apply */
7
- className?: string;
8
- /** ID that tests can use to get this component from the DOM */
9
- 'data-testid'?: string;
10
- /** Checkbox label */
11
- label?: ReactNode;
12
- /** Checkbox theme */
13
- theme?: CheckboxTheme;
14
- /** Checkbox size */
15
- size?: CheckboxSizes;
16
- /** Checkbox size */
17
- checked?: boolean;
18
- /** Indeterminate state */
19
- isIndeterminate?: boolean;
20
- /** Name */
21
- name?: string;
22
- /** Functionality to perform when the checkbox value change */
23
- onChange: (checked: boolean) => void;
24
- /** Checkbox label */
25
- children?: ReactNode;
26
- /** Set the highlight of the label */
27
- highlightLabel?: boolean;
28
- };
29
- /**
30
- * Checkboxes allow the user to select one or more items from a set.
31
- * Checkboxes can be used to turn an option on or off.
32
- */
33
- declare const Checkbox: ({ className, label, name, theme, size, checked, onChange, isIndeterminate, highlightLabel, ...rest }: CheckboxProps) => import("react/jsx-runtime").JSX.Element;
34
- export { Checkbox };
@@ -1,56 +0,0 @@
1
- import '../../assets/Checkbox.css';
2
- import { jsxs as N, jsx as h } from "react/jsx-runtime";
3
- import * as k from "react";
4
- import { useState as g, useEffect as w } from "react";
5
- import { c as i } from "../../clsx-DB4S2d7J.js";
6
- const y = (a) => /* @__PURE__ */ k.createElement("svg", { width: 14, height: 10, viewBox: "0 0 14 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...a }, /* @__PURE__ */ k.createElement("path", { d: "M13.7063 0.293438C14.0969 0.684062 14.0969 1.31531 13.7063 1.70594L5.70625 9.70594C5.31563 10.0966 4.68437 10.0966 4.29375 9.70594L0.292875 5.70594C-0.097625 5.31531 -0.097625 4.68406 0.292875 4.29344C0.683437 3.90281 1.31656 3.90281 1.70719 4.29344L4.97188 7.58406L12.2937 0.293438C12.6844 -0.0978125 13.3156 -0.0978125 13.7063 0.293438Z", fill: "#F7F7FC" })), z = "_label_1aw5t_10", E = "_checkmark_1aw5t_20", e = {
7
- "checkbox-wrapper": "_checkbox-wrapper_1aw5t_1",
8
- label: z,
9
- "label--highlighted": "_label--highlighted_1aw5t_14",
10
- "label--highlighted-checked": "_label--highlighted-checked_1aw5t_17",
11
- checkmark: E,
12
- "checkmark--checked": "_checkmark--checked_1aw5t_32",
13
- "checkmark--light-theme": "_checkmark--light-theme_1aw5t_35",
14
- "checkmark--accent-theme": "_checkmark--accent-theme_1aw5t_42",
15
- "checkmark--small-size": "_checkmark--small-size_1aw5t_49",
16
- "checkmark--normal-size": "_checkmark--normal-size_1aw5t_56"
17
- }, F = (a) => /* @__PURE__ */ k.createElement("svg", { width: 10, height: 3, viewBox: "0 0 10 3", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...a }, /* @__PURE__ */ k.createElement("rect", { y: 0.5, width: 10, height: 2, rx: 1, fill: "#1897F3" })), M = ({
18
- className: a,
19
- label: o,
20
- name: d,
21
- theme: b = "accent",
22
- size: p = "normal",
23
- checked: l,
24
- onChange: x,
25
- isIndeterminate: r,
26
- highlightLabel: C = !1,
27
- ...s
28
- }) => {
29
- const [c, n] = g(l), [t, _] = g(r);
30
- w(() => {
31
- l !== c && n(l);
32
- }, [l]), w(() => {
33
- typeof r == "boolean" && _(r);
34
- }, [r]);
35
- const f = i(e["checkbox-wrapper"], a), v = i(
36
- e.checkmark,
37
- e[`checkmark--${b}-theme`],
38
- e[`checkmark--${p}-size`],
39
- (c || t) && e["checkmark--checked"]
40
- ), u = C && (s.children || o) ? i(
41
- e.label,
42
- e["label--highlighted"],
43
- (c || t) && e["label--highlighted-checked"]
44
- ) : e.label;
45
- return /* @__PURE__ */ N("div", { className: f, onClick: () => {
46
- let m = !c;
47
- t && (_(!1), m = !0), x(m), n(m);
48
- }, ...s, children: [
49
- /* @__PURE__ */ h("input", { name: d, type: "checkbox", checked: !t && c, readOnly: !0 }),
50
- /* @__PURE__ */ h("span", { className: v, children: t ? /* @__PURE__ */ h(F, {}) : c && /* @__PURE__ */ h(y, {}) }),
51
- /* @__PURE__ */ h("label", { className: u, children: s.children || o })
52
- ] });
53
- };
54
- export {
55
- M as Checkbox
56
- };
@@ -1,31 +0,0 @@
1
- import { StoryObj } from '@storybook/react';
2
-
3
- declare const meta: {
4
- title: string;
5
- component: ({ className, label, name, theme, size, checked, onChange, isIndeterminate, highlightLabel, ...rest }: {
6
- className?: string | undefined;
7
- 'data-testid'?: string | undefined;
8
- label?: import('react').ReactNode;
9
- theme?: ("light" | "accent") | undefined;
10
- size?: ("small" | "normal") | undefined;
11
- checked?: boolean | undefined;
12
- isIndeterminate?: boolean | undefined;
13
- name?: string | undefined;
14
- onChange: (checked: boolean) => void;
15
- children?: import('react').ReactNode;
16
- highlightLabel?: boolean | undefined;
17
- }) => import("react/jsx-runtime").JSX.Element;
18
- tags: string[];
19
- parameters: {
20
- layout: string;
21
- };
22
- };
23
- export default meta;
24
- type Story = StoryObj<typeof meta>;
25
- export declare const Default: Story;
26
- export declare const DefaultWithLabel: Story;
27
- export declare const LightTheme: Story;
28
- export declare const LightThemeIndeterminate: Story;
29
- export declare const LabelAsChildren: Story;
30
- export declare const HighlightLabel: Story;
31
- export declare const SmallSize: Story;
@@ -1,37 +0,0 @@
1
- import { IconFamilies, IconProps } from '../../main';
2
- import { ReactElement, ReactNode } from 'react';
3
-
4
- export type Variant = 'default' | 'contained' | 'outlined';
5
- type ChipProps = {
6
- /** Main content to display, typically just some text */
7
- label: ReactNode;
8
- /** Whether to show loading state (skeleton) */
9
- loading?: boolean;
10
- /** Left icon to display */
11
- leftAdornment?: ChipAdornmentSlotProps;
12
- /** Dataset test id only used for tests to reach in and grab the rendered DOM node of the chip wrapper */
13
- 'data-testid'?: string;
14
- /** Functionality to perform when the main body of the chip is clicked */
15
- onClickContent?: () => void;
16
- /** If present an 'x' icon will be on the right side of the button when clicked whatever functionality is passed to
17
- * this will be executed */
18
- onClickRemove?: () => void;
19
- /** Whether to show the button in a disabled state, user will be unable to interact with the chip */
20
- disabled?: boolean;
21
- /** Any additional classes to apply to the Chip wrapper */
22
- className?: string;
23
- /** Which style of chip to show */
24
- variant?: Variant;
25
- /** Dataset test id only used for tests, used to hook onto the loading skeleton component for this chip */
26
- 'data-testid-skeleton'?: string;
27
- };
28
- export type ChipAdornmentSlotProps = {
29
- /** The Marola Icon to display */
30
- icon: ReactElement<IconProps<IconFamilies>>;
31
- /** Any additional classes to apply to icon */
32
- className?: string;
33
- /** Dataset test id only used for tests to reach in and grab the rendered DOM node of the icon */
34
- 'data-testid'?: string;
35
- };
36
- export declare const Chip: import('react').ForwardRefExoticComponent<ChipProps & import('react').RefAttributes<unknown>>;
37
- export {};
@@ -1,143 +0,0 @@
1
- import '../../assets/Chip.css';
2
- import { jsx as t, jsxs as m } from "react/jsx-runtime";
3
- import { forwardRef as u, cloneElement as p } from "react";
4
- import { c as s } from "../../clsx-DB4S2d7J.js";
5
- import { Icon as f } from "../Icon/Icon.js";
6
- import "../Button/Button.js";
7
- import "../Dialog/Backdrop.js";
8
- import "../Typography/Typography.js";
9
- import "../IconButton/IconButton.js";
10
- import "../Select/Select.js";
11
- import { Skeleton as y } from "../Skeleton/Skeleton.js";
12
- import "../Table/Table.js";
13
- import "../Tabs/Tabs.js";
14
- import { B as g } from "../../Button-2b1peDFT.js";
15
- const k = "_h1_1hro6_1", q = "_h2_1hro6_11", C = "_h3_1hro6_21", x = "_h4_1hro6_31", N = "_body_1hro6_41", v = "_quote_1hro6_75", S = "_form__input_1hro6_98", w = "_form__hint_1hro6_103", M = "_form__label_1hro6_108", R = "_form__dropdown_1hro6_113", A = "_table__header_1hro6_131", I = "_table__body_1hro6_136", T = "_button_1hro6_159", j = "_SM_1hro6_178", B = "_chip_1hro6_178", E = "_chip__adornment_1hro6_224", P = "_chip__remove_1hro6_229", e = {
16
- h1: k,
17
- "h1--bold": "_h1--bold_1hro6_7",
18
- h2: q,
19
- "h2--bold": "_h2--bold_1hro6_17",
20
- h3: C,
21
- "h3--bold": "_h3--bold_1hro6_27",
22
- h4: x,
23
- "h4--bold": "_h4--bold_1hro6_37",
24
- body: N,
25
- "body--large": "_body--large_1hro6_46",
26
- "body--medium": "_body--medium_1hro6_50",
27
- "body--small": "_body--small_1hro6_54",
28
- "body--tiny": "_body--tiny_1hro6_58",
29
- "body--bold": "_body--bold_1hro6_62",
30
- "body--strikethrough": "_body--strikethrough_1hro6_65",
31
- "body--underlined": "_body--underlined_1hro6_68",
32
- "body--strikethrough-underlined": "_body--strikethrough-underlined_1hro6_71",
33
- quote: v,
34
- "quote--large": "_quote--large_1hro6_80",
35
- "quote--bold": "_quote--bold_1hro6_85",
36
- "quote--strikethrough": "_quote--strikethrough_1hro6_88",
37
- "quote--underlined": "_quote--underlined_1hro6_91",
38
- "quote--strikethrough-underlined": "_quote--strikethrough-underlined_1hro6_94",
39
- form__input: S,
40
- form__hint: w,
41
- form__label: M,
42
- form__dropdown: R,
43
- "form--bold": "_form--bold_1hro6_118",
44
- "form--strikethrough": "_form--strikethrough_1hro6_121",
45
- "form--underlined": "_form--underlined_1hro6_124",
46
- "form--strikethrough-underlined": "_form--strikethrough-underlined_1hro6_127",
47
- table__header: A,
48
- table__body: I,
49
- "table__body--secondary": "_table__body--secondary_1hro6_141",
50
- "table--bold": "_table--bold_1hro6_146",
51
- "table--strikethrough": "_table--strikethrough_1hro6_149",
52
- "table--underlined": "_table--underlined_1hro6_152",
53
- "table--strikethrough-underlined": "_table--strikethrough-underlined_1hro6_155",
54
- button: T,
55
- "button--bold": "_button--bold_1hro6_165",
56
- "button--strikethrough": "_button--strikethrough_1hro6_168",
57
- "button--underlined": "_button--underlined_1hro6_171",
58
- "button--strikethrough-underlined": "_button--strikethrough-underlined_1hro6_174",
59
- SM: j,
60
- chip: B,
61
- "SM--bold": "_SM--bold_1hro6_183",
62
- "chip--button": "_chip--button_1hro6_199",
63
- "chip--outlined": "_chip--outlined_1hro6_212",
64
- "chip--contained": "_chip--contained_1hro6_218",
65
- chip__adornment: E,
66
- chip__remove: P,
67
- "chip__remove--disabled": "_chip__remove--disabled_1hro6_240"
68
- }, z = u((o, _) => {
69
- const { children: d, onClickContent: h, disabled: l, className: n, variant: a } = o;
70
- let r = s(
71
- e.chip,
72
- { [e["chip--outlined"]]: a === "outlined" },
73
- { [e["chip--contained"]]: a === "contained" },
74
- n
75
- );
76
- return h ? (r += ` ${e["chip--button"]}`, /* @__PURE__ */ t(
77
- g,
78
- {
79
- onClick: h,
80
- disabled: l,
81
- "data-testid": o["data-testid"],
82
- ref: _,
83
- className: r,
84
- children: d
85
- }
86
- )) : /* @__PURE__ */ t("span", { "data-testid": o["data-testid"], ref: _, className: r, children: d });
87
- }), U = (o) => {
88
- const { icon: _, disabled: d = !1, className: h } = o;
89
- if (_) {
90
- const l = s(e.chip__adornment, h), n = d ? p(_, { color: "rgb(var(--gray-95-rgb), 0.4)" }) : _;
91
- return /* @__PURE__ */ t("span", { className: l, children: n });
92
- }
93
- return null;
94
- }, Y = u((o, _) => {
95
- const {
96
- label: d,
97
- className: h,
98
- onClickContent: l,
99
- leftAdornment: n,
100
- loading: a = !1,
101
- disabled: r = !1,
102
- variant: c = "default",
103
- onClickRemove: b
104
- } = o;
105
- return a ? /* @__PURE__ */ t(
106
- y,
107
- {
108
- style: { width: "6rem", height: "2rem", borderRadius: "4rem", display: "inline-flex" },
109
- "data-testid": o["data-testid-skeleton"]
110
- }
111
- ) : /* @__PURE__ */ m(
112
- z,
113
- {
114
- ref: _,
115
- "data-testid": o["data-testid"],
116
- onClickContent: l,
117
- disabled: r,
118
- className: h,
119
- variant: c,
120
- children: [
121
- n && /* @__PURE__ */ t(U, { ...n, disabled: r }),
122
- d,
123
- b && /* @__PURE__ */ t(
124
- "span",
125
- {
126
- className: s(e.chip__remove, { [e["chip__remove--disabled"]]: r }),
127
- role: "button",
128
- tabIndex: r ? -1 : 0,
129
- "aria-label": "remove",
130
- onClick: (i) => {
131
- i == null || i.stopPropagation(), i == null || i.nativeEvent.stopImmediatePropagation(), b();
132
- },
133
- "aria-disabled": r,
134
- children: /* @__PURE__ */ t(f, { icon: "circle-xmark", size: "1.125rem", color: "rgba(var(--gray-95-rgb), 0.45)" })
135
- }
136
- )
137
- ]
138
- }
139
- );
140
- });
141
- export {
142
- Y as Chip
143
- };
@@ -1,40 +0,0 @@
1
- import { StoryObj } from '@storybook/react';
2
-
3
- declare const meta: {
4
- title: string;
5
- component: import('react').ForwardRefExoticComponent<{
6
- label: import('react').ReactNode;
7
- loading?: boolean | undefined;
8
- leftAdornment?: import('./Chip').ChipAdornmentSlotProps | undefined;
9
- 'data-testid'?: string | undefined;
10
- onClickContent?: (() => void) | undefined;
11
- onClickRemove?: (() => void) | undefined;
12
- disabled?: boolean | undefined;
13
- className?: string | undefined;
14
- variant?: import('./Chip').Variant | undefined;
15
- 'data-testid-skeleton'?: string | undefined;
16
- } & import('react').RefAttributes<unknown>>;
17
- tags: string[];
18
- decorators: ((Story: import('@storybook/types').PartialStoryFn<import('@storybook/react').ReactRenderer, {
19
- label: import('react').ReactNode;
20
- loading?: boolean | undefined;
21
- leftAdornment?: import('./Chip').ChipAdornmentSlotProps | undefined;
22
- 'data-testid'?: string | undefined;
23
- onClickContent?: (() => void) | undefined;
24
- onClickRemove?: (() => void) | undefined;
25
- disabled?: boolean | undefined;
26
- className?: string | undefined;
27
- variant?: import('./Chip').Variant | undefined;
28
- 'data-testid-skeleton'?: string | undefined;
29
- ref?: import('react').LegacyRef<unknown> | undefined;
30
- key?: import('react').Key | null | undefined;
31
- }>) => import("react/jsx-runtime").JSX.Element)[];
32
- };
33
- export default meta;
34
- type Story = StoryObj<typeof meta>;
35
- export declare const Simple: Story;
36
- export declare const Clickable: Story;
37
- export declare const ClickableWithRemove: Story;
38
- export declare const FullDefault: Story;
39
- export declare const FullOutlined: Story;
40
- export declare const FullContained: Story;
@@ -1 +0,0 @@
1
- export {};