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

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 (60) hide show
  1. package/dist/Dialog.module-DFEmFdYT.js +30 -0
  2. package/dist/SelectButton-C8JQKaf4.js +61 -0
  3. package/dist/assets/Advice.css +1 -1
  4. package/dist/assets/Button.css +1 -1
  5. package/dist/assets/Checkbox.css +1 -1
  6. package/dist/assets/Chip.css +1 -1
  7. package/dist/assets/Dialog.css +1 -1
  8. package/dist/assets/IconButton.css +1 -1
  9. package/dist/assets/Input.css +1 -1
  10. package/dist/assets/PageHeader.css +1 -1
  11. package/dist/assets/Pagination.css +1 -1
  12. package/dist/assets/SelectButton.css +1 -1
  13. package/dist/assets/Snackbar.css +1 -1
  14. package/dist/assets/SortTooltip.css +1 -1
  15. package/dist/assets/Stepper.css +1 -1
  16. package/dist/assets/Table.css +1 -1
  17. package/dist/assets/Toggle.css +1 -1
  18. package/dist/assets/Typography.css +1 -1
  19. package/dist/components/Advice/Advice.js +32 -17
  20. package/dist/components/Button/Button.js +56 -85
  21. package/dist/components/Checkbox/Checkbox.js +57 -42
  22. package/dist/components/Chip/Chip.js +81 -111
  23. package/dist/components/Dialog/Actions.js +1 -1
  24. package/dist/components/Dialog/Backdrop.js +1 -1
  25. package/dist/components/Dialog/CloseIconButton.js +1 -1
  26. package/dist/components/Dialog/Dialog.d.ts +1 -1
  27. package/dist/components/Dialog/Dialog.js +2 -2
  28. package/dist/components/Dialog/{Title.d.ts → DialogTitle.d.ts} +3 -3
  29. package/dist/components/Dialog/DialogTitle.js +29 -0
  30. package/dist/components/Icon/Icon.d.ts +1 -1
  31. package/dist/components/Icon/Icon.js +31 -25
  32. package/dist/components/IconButton/IconButton.js +34 -64
  33. package/dist/components/Input/Input.js +241 -229
  34. package/dist/components/PageHeader/PageHeader.js +52 -37
  35. package/dist/components/Pagination/Pagination.js +127 -113
  36. package/dist/components/Select/Select.js +2 -2
  37. package/dist/components/Select/SelectButton.js +1 -1
  38. package/dist/components/Snackbar/Snackbar.js +176 -161
  39. package/dist/components/SortTooltip/SortTooltip.js +53 -38
  40. package/dist/components/Stepper/Stepper.js +37 -22
  41. package/dist/components/Table/Table.d.ts +33 -16
  42. package/dist/components/Table/Table.js +98 -81
  43. package/dist/components/Table/Table.stories.d.ts +29 -0
  44. package/dist/components/Table/_Table.TBody.stories.d.ts +14 -0
  45. package/dist/components/Table/_Table.THead.stories.d.ts +14 -0
  46. package/dist/components/Table/_Table.Td.stories.d.ts +16 -0
  47. package/dist/components/Table/_Table.Th.stories.d.ts +15 -0
  48. package/dist/components/Table/_Table.Tr.stories.d.ts +15 -0
  49. package/dist/components/TextDisplay/TextDisplay.js +13 -13
  50. package/dist/components/Toggle/Toggle.js +138 -123
  51. package/dist/components/Typography/Typography.d.ts +1 -1
  52. package/dist/components/Typography/Typography.js +54 -84
  53. package/dist/main.js +42 -37
  54. package/dist/marola.css +1 -1
  55. package/dist/utils/styleStrings.d.ts +1 -1
  56. package/dist/utils/styleStrings.js +7 -7
  57. package/package.json +1 -1
  58. package/dist/Dialog.module-B8COssqi.js +0 -15
  59. package/dist/SelectButton-pciwIWcj.js +0 -46
  60. package/dist/components/Dialog/Title.js +0 -29
package/dist/marola.css CHANGED
@@ -1 +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
+ :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-1: 3.75rem;--heading-line-height-1: 4.875rem;--heading-font-size-2: 3rem;--heading-line-height-2: 4rem;--heading-font-size-3: 2.25rem;--heading-line-height-3: 2.875rem;--heading-font-size-4: 1.875rem;--heading-line-height-4: 2.375rem;--heading-font-size-5: 1.5rem;--heading-line-height-5: 2rem;--heading-font-size-6: 1.25rem;--heading-line-height-6: 1.75rem;--base-font-size: .875rem;--base-line-height: 1.3125rem;--base-weight: 400;--base-bold: 700;--base-font-size-sm: .75rem;--base-line-height-sm: 1.25rem;--base-font-size-lg: 1rem;--base-line-height-lg: 1.5rem;--base-font-size-xl: 1.25rem;--base-line-height-xl: 1.75rem;--base-font-size-xxl: 1.5rem;--base-line-height-xxl: 4.875rem}: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 { Split } from '../types/helpers';
2
2
 
3
3
  export type BlockType<T extends string> = Split<T, '-'>[0];
4
- export declare const bemify: <T extends string>(variant: T, blocksWithElements: BlockType<T>[]) => string;
4
+ export declare const bemify: <T extends string>(variant: T, blocksWithElements?: BlockType<T>[]) => string;
5
5
  export declare const getBEMBase: (variant: string) => string;
6
6
  export declare const getBEMBlock: (variant: string) => string;
@@ -1,10 +1,10 @@
1
- const s = (e, n) => {
2
- const r = new RegExp(`^([${n.join("|")}]*)-`);
3
- let t = e.replace(r, "$1__");
1
+ const n = (r, e) => {
2
+ const g = new RegExp(`^([${e == null ? void 0 : e.join("|")}]*)-`);
3
+ let t = r.replace(g, "$1__");
4
4
  return t = t.replace(new RegExp("(?<!-)-(?!-)", "g"), "--"), t;
5
- }, c = (e) => e.split("--")[0], l = (e) => e.split(/--|__/)[0];
5
+ }, p = (r) => r.split("--")[0], B = (r) => r.split(/--|__/)[0];
6
6
  export {
7
- s as bemify,
8
- c as getBEMBase,
9
- l as getBEMBlock
7
+ n as bemify,
8
+ p as getBEMBase,
9
+ B as getBEMBlock
10
10
  };
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.19",
4
+ "version": "0.0.1-alpha.20",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
7
7
  "types": "dist/main.d.ts",
@@ -1,15 +0,0 @@
1
- import './assets/Dialog.css';
2
- const _ = "_dialog_aobxu_1", o = "_dialog__backdrop_aobxu_11", a = "_dialog__panel_aobxu_19", i = "_dialog__title_aobxu_35", l = "_dialog__subtitle_aobxu_42", d = "_dialog__divider_aobxu_51", t = "_dialog__actions_aobxu_64", g = {
3
- dialog: _,
4
- dialog__backdrop: o,
5
- dialog__panel: a,
6
- dialog__title: i,
7
- "dialog__title--small": "_dialog__title--small_aobxu_39",
8
- dialog__subtitle: l,
9
- dialog__divider: d,
10
- "dialog__close-icon": "_dialog__close-icon_aobxu_55",
11
- dialog__actions: t
12
- };
13
- export {
14
- g as s
15
- };
@@ -1,46 +0,0 @@
1
- import './assets/SelectButton.css';
2
- import { jsxs as c, jsx as e } from "react/jsx-runtime";
3
- import * as o from "react";
4
- import { forwardRef as h } from "react";
5
- import { c as d } from "./clsx-DB4S2d7J.js";
6
- import { Typography as i } from "./components/Typography/Typography.js";
7
- const m = "_select_185hp_1", u = "_select__popup_185hp_4", w = "_select__listbox_185hp_7", C = "_select__listbox__option_185hp_17", v = "_select__listbox__option__icon_185hp_25", f = "_select__listbox__option__text_185hp_29", g = "_select__list__option__icon_185hp_49", _ = {
8
- select: m,
9
- select__popup: u,
10
- select__listbox: w,
11
- select__listbox__option: C,
12
- select__listbox__option__icon: v,
13
- select__listbox__option__text: f,
14
- "select__listbox__option--disabled": "_select__listbox__option--disabled_185hp_32",
15
- "select__listbox__option--selected": "_select__listbox__option--selected_185hp_41",
16
- select__list__option__icon: g,
17
- "select-button": "_select-button_185hp_54",
18
- "base-Select-popup": "_base-Select-popup_185hp_69",
19
- "select-button__text": "_select-button__text_185hp_72",
20
- "select-button__icon": "_select-button__icon_185hp_81",
21
- "select-button--active": "_select-button--active_185hp_87"
22
- }, L = (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" })), y = (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 })), j = h((t, n) => {
23
- const { children: p, disabled: a, className: r, "data-testid": b, prefix: s, onClick: x } = t, l = t["aria-expanded"];
24
- return /* @__PURE__ */ c(
25
- "button",
26
- {
27
- className: d(r, l ? _["select-button--active"] : "", _["select-button"]),
28
- type: "button",
29
- onClick: x,
30
- disabled: a,
31
- "data-testid": b,
32
- ref: n,
33
- children: [
34
- /* @__PURE__ */ c("span", { className: _["select-button__text"], children: [
35
- s && /* @__PURE__ */ e(i, { element: "span", variant: "body-small", children: s }),
36
- /* @__PURE__ */ e(i, { element: "span", variant: "body-small", children: p })
37
- ] }),
38
- /* @__PURE__ */ e("span", { className: _["select-button__icon"], children: l ? /* @__PURE__ */ e(y, {}) : /* @__PURE__ */ e(L, {}) })
39
- ]
40
- }
41
- );
42
- });
43
- export {
44
- j as S,
45
- _ as s
46
- };
@@ -1,29 +0,0 @@
1
- import { jsxs as l, Fragment as s, jsx as e } from "react/jsx-runtime";
2
- import { Typography as a } from "../Typography/Typography.js";
3
- import { s as r } from "../../Dialog.module-B8COssqi.js";
4
- const n = ({ title: i, subTitle: t }) => /* @__PURE__ */ l(s, { children: [
5
- /* @__PURE__ */ e(
6
- a,
7
- {
8
- element: "h1",
9
- elementProps: { id: "alert-dialog-title" },
10
- variant: "h4",
11
- className: r.dialog__title,
12
- children: i
13
- }
14
- ),
15
- /* @__PURE__ */ e("hr", { className: r.dialog__divider, "aria-hidden": !0 }),
16
- t && /* @__PURE__ */ e(
17
- a,
18
- {
19
- element: "h2",
20
- elementProps: { id: "alert-dialog-description" },
21
- variant: "h4",
22
- className: r.dialog__subtitle,
23
- children: t
24
- }
25
- )
26
- ] });
27
- export {
28
- n as default
29
- };