@pismo/marola 0.0.1-alpha.15 → 0.0.1-alpha.17
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/{Button-B1umG8kJ.js → Button-CSuug0jG.js} +2 -2
- package/dist/{ClickAwayListener-HI1G6ob9.js → ClickAwayListener-hSFuUJnv.js} +3 -3
- package/dist/{Popup-DFJQc_jn.js → Popup-DwaWJ3ye.js} +3 -3
- package/dist/{Portal-D__zvwbZ.js → Portal-CGBQMhI6.js} +2 -2
- package/dist/SelectButton-DWZ2BRaX.js +44 -0
- package/dist/assets/Chip.css +1 -1
- package/dist/assets/Input.css +1 -1
- package/dist/assets/InputSearch.css +1 -1
- package/dist/assets/PageHeader.css +1 -1
- package/dist/assets/SelectButton.css +1 -1
- package/dist/{combineHooksSlotProps-BHqhiBfc.js → combineHooksSlotProps-D8j4htsd.js} +1 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Chip/Chip.js +1 -1
- package/dist/components/Dialog/CloseIconButton.js +1 -1
- package/dist/components/Dialog/Dialog.js +4 -4
- package/dist/components/IconButton/IconButton.js +1 -1
- package/dist/components/Input/Input.js +51 -51
- package/dist/components/InputSearch/InputSearch.js +7 -7
- package/dist/components/PageHeader/PageHeader.js +23 -23
- package/dist/components/Select/Select.d.ts +9 -8
- package/dist/components/Select/Select.js +158 -160
- package/dist/components/Select/Select.stories.d.ts +10 -19
- package/dist/components/Select/SelectButton.d.ts +3 -4
- package/dist/components/Select/SelectButton.js +2 -2
- package/dist/components/Snackbar/Snackbar.js +4 -4
- package/dist/components/Tabs/Tab.js +3 -3
- package/dist/components/Tabs/TabPanel.js +1 -1
- package/dist/components/Tabs/Tabs.js +3 -3
- package/dist/components/Toggle/Toggle.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +3 -3
- package/dist/{index-BJ8HbRCy.js → index-BfeM9yWx.js} +1 -1
- package/dist/{index-CqjC7P5Y.js → index-CtPvew6C.js} +88 -85
- package/dist/main.d.ts +4 -1
- package/dist/main.js +19 -19
- package/dist/marola.css +1 -0
- package/dist/{useButton-Bc8IAgyk.js → useButton-DSAvAfH_.js} +1 -1
- package/dist/{useEventCallback-vAfOD-oT.js → useEventCallback-lXNMsMLa.js} +1 -1
- package/dist/{useList-ByMguSS_.js → useList-C5PBIv2I.js} +2 -2
- package/package.json +2 -2
- package/dist/SelectButton-DWtqAiwt.js +0 -45
- package/dist/_commonjsHelpers-CT_km90n.js +0 -30
- package/dist/components/Advice/Advice.stories.js +0 -48
- package/dist/components/Button/Button.stories.js +0 -40
- package/dist/components/Chip/Chip.stories.js +0 -59
- package/dist/components/Chip/chip.test.js +0 -17303
- package/dist/components/Dialog/Dialog.stories.js +0 -59
- package/dist/components/Input/Input.stories.js +0 -106
- package/dist/components/InputSearch/InputSearch.stories.js +0 -73
- package/dist/components/LoadingSpinner/LoadingSpinner.stories.js +0 -38
- package/dist/components/PageHeader/PageHeader.stories.js +0 -49
- package/dist/components/Select/Select.stories.js +0 -65
- package/dist/components/Snackbar/Snackbar.stories.js +0 -62
- package/dist/components/Toggle/Toggle.stories.js +0 -33
- package/dist/components/Typography/Typography.stories.js +0 -30
- package/dist/components/Typography/typography.test.js +0 -234
- package/dist/magic-string.es-O_8lTkE3.js +0 -738
- package/dist/react.esm-DGd9_oKA.js +0 -11126
- package/dist/utils/styleStrings.test.js +0 -41
- package/dist/vi.Y_w82WR8-XVYrIxgm.js +0 -9861
package/dist/main.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { Advice as e } from "./components/Advice/Advice.js";
|
|
2
|
+
import { Button as p } from "./components/Button/Button.js";
|
|
3
|
+
import { Checkbox as f } from "./components/Checkbox/Checkbox.js";
|
|
4
|
+
import { Chip as n } from "./components/Chip/Chip.js";
|
|
5
5
|
import { Dialog as l } from "./components/Dialog/Dialog.js";
|
|
6
|
-
import { FamilyAndIcons as T, Icon as
|
|
7
|
-
import { IconButton as
|
|
8
|
-
import { Input as
|
|
6
|
+
import { FamilyAndIcons as T, Icon as c } from "./components/Icon/Icon.js";
|
|
7
|
+
import { IconButton as S } from "./components/IconButton/IconButton.js";
|
|
8
|
+
import { Input as u } from "./components/Input/Input.js";
|
|
9
9
|
import { InputSearch as d } from "./components/InputSearch/InputSearch.js";
|
|
10
10
|
import { LoadingSpinner as I } from "./components/LoadingSpinner/LoadingSpinner.js";
|
|
11
11
|
import { PageHeader as C } from "./components/PageHeader/PageHeader.js";
|
|
12
12
|
import { Pagination as y, paginationDefaultTranslations as A } from "./components/Pagination/Pagination.js";
|
|
13
|
-
import {
|
|
13
|
+
import { Select as B, SelectOption as v } from "./components/Select/Select.js";
|
|
14
14
|
import { Skeleton as H, SkeletonCircle as L, SkeletonTable as O } from "./components/Skeleton/Skeleton.js";
|
|
15
15
|
import { Snackbar as q } from "./components/Snackbar/Snackbar.js";
|
|
16
16
|
import { SortTooltip as z, sortTooltipDefaultTranslations as E } from "./components/SortTooltip/SortTooltip.js";
|
|
@@ -22,28 +22,28 @@ import { Tooltip as W } from "./components/Tooltip/Tooltip.js";
|
|
|
22
22
|
import { Typography as Y } from "./components/Typography/Typography.js";
|
|
23
23
|
import { default as _ } from "./components/Dialog/Title.js";
|
|
24
24
|
import { default as oo } from "./components/Dialog/Content.js";
|
|
25
|
-
import { default as
|
|
25
|
+
import { default as eo } from "./components/Dialog/Actions.js";
|
|
26
26
|
import { Tab as po } from "./components/Tabs/Tab.js";
|
|
27
27
|
import { TabPanel as fo } from "./components/Tabs/TabPanel.js";
|
|
28
28
|
export {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
29
|
+
eo as Actions,
|
|
30
|
+
e as Advice,
|
|
31
|
+
p as Button,
|
|
32
|
+
f as Checkbox,
|
|
33
|
+
n as Chip,
|
|
34
34
|
oo as Content,
|
|
35
35
|
l as Dialog,
|
|
36
36
|
_ as DialogTitle,
|
|
37
37
|
T as FamilyAndIcons,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
c as Icon,
|
|
39
|
+
S as IconButton,
|
|
40
|
+
u as Input,
|
|
41
41
|
d as InputSearch,
|
|
42
42
|
I as LoadingSpinner,
|
|
43
|
-
B as Option,
|
|
44
43
|
C as PageHeader,
|
|
45
44
|
y as Pagination,
|
|
46
|
-
|
|
45
|
+
B as Select,
|
|
46
|
+
v as SelectOption,
|
|
47
47
|
H as Skeleton,
|
|
48
48
|
L as SkeletonCircle,
|
|
49
49
|
O as SkeletonTable,
|
package/dist/marola.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{--secondary-orange: #ffa945;--secondary-orange-rgb: 255, 169, 69;--secondary-orange-dark: #fe8d53;--secondary-orange-dark-rgb: 254, 141, 83;--secondary-orange-light: #525061;--secondary-orange-light-rgb: 82, 80, 97;--secondary-green: #99dec3;--secondary-green-rgb: 153, 222, 195;--secondary-green-dark: #6acbb1;--secondary-green-dark-rgb: 106, 203, 177;--secondary-green-darker: #31aa7e;--secondary-green-darker-rgb: 49, 170, 126;--secondary-green-light: #baedd9;--secondary-green-light-rgb: 186, 237, 217;--accent: #1897f3;--accent-rgb: 24, 151, 243;--accent-dark: #1672c7;--accent-dark-rgb: 22, 114, 199;--accent-light: #4fb1f9;--accent-light-rgb: 79, 177, 249;--accent-lighter: #8ae1fd;--accent-lighter-rgb: 138, 225, 253;--alert: #df4561;--alert-rgb: 223, 69, 97;--alert-dark: #bb2b45;--alert-dark-rgb: 187, 43, 69;--accent-alert-light: #f37c91;--accent-alert-light-rgb: 243, 124, 145;--cream: #fafafa;--cream-rgb: 250, 250, 250;--hover: #42b7ff;--hover-rgb: 66, 183, 255;--active: #0a75cc;--active-rgb: 10, 117, 204;--border: #d9d9d9;--border-rgb: 217, 217, 217}:root{--gray-100: #16161e;--gray-100-rgb: 22, 22, 30;--gray-95: #3f3d4b;--gray-95-rgb: 63, 61, 75;--gray-90: #525061;--gray-90-rgb: 82, 80, 97;--gray-75: #838192;--gray-75-rgb: 131, 129, 146;--gray-50: #bcbac8;--gray-50-rgb: 188, 186, 200;--gray-25: #dbdae2;--gray-25-rgb: 219, 218, 226;--gray-10: #ebeaf0;--gray-10-rgb: 235, 234, 240;--gray-5: #f7f7fc;--gray-5-rgb: 247, 247, 252;--black-100: #000000;--black-100-rgb: 0, 0, 0;--black-75: #616161;--black-75-rgb: 97, 97, 97;--black-50: #838192;--black-50-rgb: 131, 129, 146;--black-25: #bcbac8;--black-25-rgb: 188, 186, 200;--black-10: #ebeaf0;--black-10-rgb: 235, 234, 240;--white-100: #ffffff;--white-100-rgb: 255, 255, 255}:root{--heading-font-weight: 700;--heading-font-size-xl: 3.75rem;--heading-line-height-xl: 4.875rem;--heading-font-size-l: 3rem;--heading-line-height-l: 3.9375rem;--heading-font-size: 2.25rem;--heading-line-height: 2.875rem;--heading-font-size-s: 1.5rem;--heading-line-height-s: 2rem;--body-font-size: 1rem;--body-line-height: 1.3125rem;--body-weight: normal;--body-bold: bold;--body-font-size-large: 1.5rem;--body-line-height-large: 1.625rem;--body-font-size-medium: 1.125;--body-line-height-medium: 1rem;--body-font-size-small: .875rem;--body-line-height-small: 1.125rem;--body-font-size-tiny: .75rem;--body-line-height-tiny: 1rem;--quote-font-size-large: 1.5rem;--quote-line-height-large: 2rem;--quote-font-weight-large: normal;--quote-font-size: 1rem;--quote-line-height: 1.3125rem;--quote-font-weight: normal;--form-input-font-size: 1rem;--form-input-line-height: 1.3125rem;--form-input-font-weight: bold;--form-hint-font-size: .875rem;--form-hint-line-height: 1.3125rem;--form-hint-font-weight: normal;--form-label-font-size: .875rem;--form-label-line-height: 1.3125rem;--form-label-font-weight: normal;--form-dropdown-font-size: 1rem;--form-dropdown-line-height: 1.3125rem;--form-dropdown-font-weight: normal;--table-font-size: .875rem;--table-line-height: 1.0625rem;--table-header-font-weight: bold;--table-body-font-weight: normal;--table-body-secondary-line-height: 1.3125rem;--button-font-size: 1rem;--button-line-height: 1.25rem;--button-font-weight: bold;--font-size-small: .75rem;--font-weight-small: 400;--font-line-height-small: 1.25rem;--font-weight-700: 700}:root{--spacing: 8px;--border-radius: 6px;--border-radius-soft: 4px;--transition-soft: .3s;--transition-long: .75s}*{box-sizing:border-box}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as D } from "./objectWithoutPropertiesLoose-D7Cp0Pg_.js";
|
|
2
2
|
import * as i from "react";
|
|
3
|
-
import { u as S, e as k } from "./index-
|
|
3
|
+
import { u as S, e as k } from "./index-CtPvew6C.js";
|
|
4
4
|
import { u as _ } from "./useIsFocusVisible-BH4IAdcw.js";
|
|
5
5
|
function v(p) {
|
|
6
6
|
const {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as p } from "./objectWithoutPropertiesLoose-D7Cp0Pg_.js";
|
|
2
2
|
import * as f from "react";
|
|
3
|
-
import { L as x } from "./combineHooksSlotProps-
|
|
4
|
-
import { u as re, e as ie } from "./index-
|
|
3
|
+
import { L as x } from "./combineHooksSlotProps-D8j4htsd.js";
|
|
4
|
+
import { u as re, e as ie } from "./index-CtPvew6C.js";
|
|
5
5
|
function W(t, e, r = (n, l) => n === l) {
|
|
6
6
|
return t.length === e.length && t.every((n, l) => r(n, e[l]));
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pismo/marola",
|
|
3
3
|
"description": "CDX tribe component library",
|
|
4
|
-
"version": "0.0.1-alpha.
|
|
4
|
+
"version": "0.0.1-alpha.17",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/main.js",
|
|
7
7
|
"types": "dist/main.d.ts",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"coverage": "vitest run --coverage",
|
|
32
32
|
"export-files": "node scripts/export-files.cjs",
|
|
33
33
|
"prebuild": "yarn export-files",
|
|
34
|
-
"build": "tsc --p ./tsconfig-build.json && vite build",
|
|
34
|
+
"build": "tsc --p ./tsconfig-build.json && vite build && mv ./dist/assets/marola.css ./dist",
|
|
35
35
|
"postbuild": "storybook build --disable-telemetry --output-dir build",
|
|
36
36
|
"storybook": "storybook dev -p 6006"
|
|
37
37
|
},
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import './assets/SelectButton.css';
|
|
2
|
-
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
3
|
-
import * as o from "react";
|
|
4
|
-
import { forwardRef as x } from "react";
|
|
5
|
-
import { c as p } from "./clsx-DB4S2d7J.js";
|
|
6
|
-
import { Typography as w } from "./components/Typography/Typography.js";
|
|
7
|
-
const d = "_select_yw431_1", m = "_select__listbox_yw431_4", u = "_select__listbox__option_yw431_12", y = "_select__listbox__option__icon_yw431_20", h = "_select__listbox__option__text_yw431_24", C = "_select__list__option__icon_yw431_44", _ = {
|
|
8
|
-
select: d,
|
|
9
|
-
select__listbox: m,
|
|
10
|
-
select__listbox__option: u,
|
|
11
|
-
select__listbox__option__icon: y,
|
|
12
|
-
select__listbox__option__text: h,
|
|
13
|
-
"select__listbox__option--disabled": "_select__listbox__option--disabled_yw431_27",
|
|
14
|
-
"select__listbox__option--selected": "_select__listbox__option--selected_yw431_36",
|
|
15
|
-
select__list__option__icon: C,
|
|
16
|
-
"select-button": "_select-button_yw431_49",
|
|
17
|
-
"select-button__text": "_select-button__text_yw431_62",
|
|
18
|
-
"select-button__text__prefix": "_select-button__text__prefix_yw431_69",
|
|
19
|
-
"select-button__icon": "_select-button__icon_yw431_72",
|
|
20
|
-
"select-button--active": "_select-button--active_yw431_78"
|
|
21
|
-
}, f = (t) => /* @__PURE__ */ o.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ o.createElement("path", { d: "M2.11104 4.9999C2.36691 4.9999 2.62291 5.09756 2.81791 5.29287L8.11104 10.5843L13.4048 5.29053C13.7954 4.8999 14.4282 4.8999 14.8188 5.29053C15.2095 5.68115 15.2095 6.31396 14.8188 6.70459L8.81885 12.7046C8.42822 13.0952 7.79541 13.0952 7.40479 12.7046L1.40479 6.70459C1.01416 6.31396 1.01416 5.68115 1.40479 5.29053C1.59854 5.09678 1.85479 4.9999 2.11104 4.9999Z", fill: "currentColor" })), v = (t) => /* @__PURE__ */ o.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ o.createElement("path", { d: "M13.8889 11C13.633 11 13.377 10.9023 13.182 10.707L7.8889 5.41563L2.59515 10.7094C2.20453 11.1 1.57172 11.1 1.18109 10.7094C0.790466 10.3188 0.790466 9.68594 1.18109 9.29532L7.18109 3.29532C7.57172 2.90469 8.20453 2.90469 8.59515 3.29532L14.5952 9.29532C14.9858 9.68594 14.9858 10.3188 14.5952 10.7094C14.4014 10.9031 14.1452 11 13.8889 11Z", fill: "#3F3D4B", fillOpacity: 0.88 })), E = x((t, c) => {
|
|
22
|
-
const { children: n, type: i = "button", disabled: a, className: b, "data-testid": r } = t, s = t["aria-expanded"];
|
|
23
|
-
return /* @__PURE__ */ l(
|
|
24
|
-
"button",
|
|
25
|
-
{
|
|
26
|
-
className: p(b, s ? _["select-button--active"] : "", _["select-button"]),
|
|
27
|
-
type: i,
|
|
28
|
-
onClick: t.onClick,
|
|
29
|
-
disabled: a,
|
|
30
|
-
"data-testid": r,
|
|
31
|
-
ref: c,
|
|
32
|
-
children: [
|
|
33
|
-
/* @__PURE__ */ l("span", { className: _["select-button__text"], children: [
|
|
34
|
-
/* @__PURE__ */ e("span", { className: _["select-button__text__prefix"], children: t["aria-labelledby"] }),
|
|
35
|
-
/* @__PURE__ */ e(w, { element: "span", variant: "body-small", className: _["select-button__text__content"], children: n })
|
|
36
|
-
] }),
|
|
37
|
-
/* @__PURE__ */ e("span", { className: _["select-button__icon"], children: s ? /* @__PURE__ */ e(v, {}) : /* @__PURE__ */ e(f, {}) })
|
|
38
|
-
]
|
|
39
|
-
}
|
|
40
|
-
);
|
|
41
|
-
});
|
|
42
|
-
export {
|
|
43
|
-
E as B,
|
|
44
|
-
_ as s
|
|
45
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
var u = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2
|
-
function f(e) {
|
|
3
|
-
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
4
|
-
}
|
|
5
|
-
function l(e) {
|
|
6
|
-
if (e.__esModule)
|
|
7
|
-
return e;
|
|
8
|
-
var r = e.default;
|
|
9
|
-
if (typeof r == "function") {
|
|
10
|
-
var t = function o() {
|
|
11
|
-
return this instanceof o ? Reflect.construct(r, arguments, this.constructor) : r.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
t.prototype = r.prototype;
|
|
14
|
-
} else
|
|
15
|
-
t = {};
|
|
16
|
-
return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(e).forEach(function(o) {
|
|
17
|
-
var n = Object.getOwnPropertyDescriptor(e, o);
|
|
18
|
-
Object.defineProperty(t, o, n.get ? n : {
|
|
19
|
-
enumerable: !0,
|
|
20
|
-
get: function() {
|
|
21
|
-
return e[o];
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
}), t;
|
|
25
|
-
}
|
|
26
|
-
export {
|
|
27
|
-
l as a,
|
|
28
|
-
u as c,
|
|
29
|
-
f as g
|
|
30
|
-
};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { Advice as o } from "./Advice.js";
|
|
2
|
-
import * as e from "react";
|
|
3
|
-
const n = (t) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 576 512", "data-waves-icon": "fa/duotone/helmet-battle", fill: "currentColor", color: "currentColor", width: "1em", height: "1em", style: {
|
|
4
|
-
fill: "currentcolor",
|
|
5
|
-
color: "currentcolor",
|
|
6
|
-
width: "1em",
|
|
7
|
-
height: "1em"
|
|
8
|
-
}, ...t }, /* @__PURE__ */ e.createElement("defs", null, /* @__PURE__ */ e.createElement("style", null, `
|
|
9
|
-
.fa-secondary {
|
|
10
|
-
opacity: .4
|
|
11
|
-
}
|
|
12
|
-
`)), /* @__PURE__ */ e.createElement("path", { className: "fa-primary", d: "M31.99 256c17.63 0 32.01-12.5 32.01-28V0L.9928 221.1C-4.132 238.9 11.24 256 31.99 256zM575 221.1L512 0v228c0 15.5 14.38 28 32 28C564.8 256 580.1 238.9 575 221.1zM159.1 192L159.1 224l96 32v256l64-.0022L320 256l96-32l.0008-31.1H159.1z" }), /* @__PURE__ */ e.createElement("path", { className: "fa-secondary", d: "M480 210.9C480 90.38 288 0 288 0S95.1 90.38 95.1 210.9c0 82.75-22.88 145.9-31.13 180.6c-3.375 14.5 3.625 29.38 16.38 35.25L255.1 512V256L159.1 224L159.1 192h256L416 224l-96 32l-.0009 255.1l174.9-85.25c12.63-5.875 19.75-20.75 16.25-35.25C502.9 356.8 480 293.6 480 210.9z" })), c = {
|
|
13
|
-
title: "Components/Advice",
|
|
14
|
-
component: o,
|
|
15
|
-
tags: ["autodocs"],
|
|
16
|
-
parameters: {
|
|
17
|
-
layout: "padded"
|
|
18
|
-
}
|
|
19
|
-
}, a = {
|
|
20
|
-
args: {
|
|
21
|
-
type: "without-results",
|
|
22
|
-
content: "No Results"
|
|
23
|
-
}
|
|
24
|
-
}, l = {
|
|
25
|
-
args: {
|
|
26
|
-
type: "no-permission",
|
|
27
|
-
content: "No Permission"
|
|
28
|
-
}
|
|
29
|
-
}, r = {
|
|
30
|
-
name: "Custom Icons (Waves Icons)",
|
|
31
|
-
args: {
|
|
32
|
-
icon: { icon: "logo", iconFamily: "pi", color: "var(--secondary-orange)", size: "5rem" },
|
|
33
|
-
content: "Pismo"
|
|
34
|
-
}
|
|
35
|
-
}, m = {
|
|
36
|
-
name: "Custom Icons (SVG)",
|
|
37
|
-
args: {
|
|
38
|
-
IconSvg: n,
|
|
39
|
-
content: "Ready for battle?"
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
export {
|
|
43
|
-
r as CustomIcon,
|
|
44
|
-
m as CustomIconSVG,
|
|
45
|
-
l as NoPermission,
|
|
46
|
-
a as WithoutResults,
|
|
47
|
-
c as default
|
|
48
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import "../Chip/Chip.js";
|
|
3
|
-
import { Button as i } from "./Button.js";
|
|
4
|
-
import "react";
|
|
5
|
-
import "../Dialog/Backdrop.js";
|
|
6
|
-
import "../Typography/Typography.js";
|
|
7
|
-
import "../IconButton/IconButton.js";
|
|
8
|
-
import "../Select/Select.js";
|
|
9
|
-
import "../Table/Table.js";
|
|
10
|
-
import "../Tabs/Tabs.js";
|
|
11
|
-
const k = {
|
|
12
|
-
title: "Components/Button",
|
|
13
|
-
component: i,
|
|
14
|
-
tags: ["autodocs"],
|
|
15
|
-
decorators: [
|
|
16
|
-
(o) => /* @__PURE__ */ t("div", { style: { padding: "1em" }, children: /* @__PURE__ */ t(o, {}) })
|
|
17
|
-
],
|
|
18
|
-
argTypes: {
|
|
19
|
-
onClick: {
|
|
20
|
-
if: { arg: "link", exists: !1 }
|
|
21
|
-
},
|
|
22
|
-
type: {
|
|
23
|
-
control: { type: "text" },
|
|
24
|
-
if: { arg: "onClick", exists: !0 }
|
|
25
|
-
},
|
|
26
|
-
link: {
|
|
27
|
-
control: { type: "text" },
|
|
28
|
-
if: { arg: "onClick", exists: !1 }
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}, f = {
|
|
32
|
-
args: { children: "Button", onClick: () => alert("Button was clicked!") }
|
|
33
|
-
}, g = {
|
|
34
|
-
args: { children: "Button", link: "https://marola.pismolabs.io" }
|
|
35
|
-
};
|
|
36
|
-
export {
|
|
37
|
-
g as Link,
|
|
38
|
-
f as Simple,
|
|
39
|
-
k as default
|
|
40
|
-
};
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { Chip as i } from "./Chip.js";
|
|
3
|
-
import { Icon as e } from "../Icon/Icon.js";
|
|
4
|
-
import "../Button/Button.js";
|
|
5
|
-
import "react";
|
|
6
|
-
import "../Dialog/Backdrop.js";
|
|
7
|
-
import "../Typography/Typography.js";
|
|
8
|
-
import "../IconButton/IconButton.js";
|
|
9
|
-
import "../Select/Select.js";
|
|
10
|
-
import "../Table/Table.js";
|
|
11
|
-
import "../Tabs/Tabs.js";
|
|
12
|
-
const f = {
|
|
13
|
-
title: "Components/Chip",
|
|
14
|
-
component: i,
|
|
15
|
-
tags: ["autodocs"],
|
|
16
|
-
decorators: [
|
|
17
|
-
(s) => /* @__PURE__ */ a("div", { style: { padding: "1em" }, children: /* @__PURE__ */ a(s, {}) })
|
|
18
|
-
]
|
|
19
|
-
}, r = {
|
|
20
|
-
args: {
|
|
21
|
-
label: "Example text"
|
|
22
|
-
}
|
|
23
|
-
}, t = {
|
|
24
|
-
args: {
|
|
25
|
-
...r == null ? void 0 : r.args,
|
|
26
|
-
onClickContent: () => alert("Button was clicked!")
|
|
27
|
-
}
|
|
28
|
-
}, n = {
|
|
29
|
-
args: {
|
|
30
|
-
...t == null ? void 0 : t.args,
|
|
31
|
-
onClickRemove: () => alert("Remove changes!")
|
|
32
|
-
}
|
|
33
|
-
}, o = {
|
|
34
|
-
args: {
|
|
35
|
-
...n == null ? void 0 : n.args,
|
|
36
|
-
leftAdornment: {
|
|
37
|
-
icon: /* @__PURE__ */ a(e, { icon: "calendar-days", color: "rgba(var(--gray-95-rgb), 0.45)", size: "1.125rem" })
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}, b = {
|
|
41
|
-
args: {
|
|
42
|
-
...o == null ? void 0 : o.args,
|
|
43
|
-
variant: "outlined"
|
|
44
|
-
}
|
|
45
|
-
}, j = {
|
|
46
|
-
args: {
|
|
47
|
-
...o == null ? void 0 : o.args,
|
|
48
|
-
variant: "contained"
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
export {
|
|
52
|
-
t as Clickable,
|
|
53
|
-
n as ClickableWithRemove,
|
|
54
|
-
j as FullContained,
|
|
55
|
-
o as FullDefault,
|
|
56
|
-
b as FullOutlined,
|
|
57
|
-
r as Simple,
|
|
58
|
-
f as default
|
|
59
|
-
};
|