@lism-css/ui 0.2.1 → 0.2.3

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 (74) hide show
  1. package/dist/components/Accordion/astro/index.d.ts +6 -0
  2. package/dist/components/Accordion/setAccordion.js +7 -7
  3. package/dist/components/Avatar/astro/index.d.ts +1 -1
  4. package/dist/components/Badge/astro/index.d.ts +1 -1
  5. package/dist/components/Button/astro/index.d.ts +1 -1
  6. package/dist/components/Callout/getProps.d.ts +1 -1
  7. package/dist/components/Chat/astro/index.d.ts +1 -0
  8. package/dist/components/Chat/getProps.d.ts +53 -0
  9. package/dist/components/Chat/react/Chat.d.ts +7 -0
  10. package/dist/components/Chat/react/index.d.ts +1 -0
  11. package/dist/components/Modal/astro/index.d.ts +5 -0
  12. package/dist/components/Modal/setModal.js +1 -1
  13. package/dist/components/NavMenu/astro/index.d.ts +11 -0
  14. package/dist/components/NavMenu/getProps.d.ts +32 -0
  15. package/dist/components/NavMenu/react/NavMenu.d.ts +16 -0
  16. package/dist/components/NavMenu/react/index.d.ts +8 -0
  17. package/dist/components/ShapeDivider/astro/index.d.ts +1 -0
  18. package/dist/components/ShapeDivider/getProps.d.ts +11 -0
  19. package/dist/components/ShapeDivider/react/ShapeDivider.d.ts +4 -0
  20. package/dist/components/ShapeDivider/react/index.d.ts +1 -0
  21. package/dist/components/Tabs/astro/index.d.ts +5 -0
  22. package/dist/components/astro.d.ts +3 -0
  23. package/dist/components/react.d.ts +3 -0
  24. package/dist/scripts/tabs.js +1 -1
  25. package/dist/style.css +1 -1
  26. package/package.json +1 -1
  27. package/src/components/Accordion/_style.css +10 -10
  28. package/src/components/Accordion/getProps.js +6 -6
  29. package/src/components/Accordion/setAccordion.js +2 -2
  30. package/src/components/Avatar/astro/Avatar.astro +0 -1
  31. package/src/components/Avatar/react/Avatar.jsx +0 -1
  32. package/src/components/Callout/getProps.ts +1 -1
  33. package/src/components/Chat/_style.css +64 -0
  34. package/src/components/Chat/astro/Chat.astro +41 -0
  35. package/src/components/Chat/astro/index.js +1 -0
  36. package/src/components/Chat/getProps.js +57 -0
  37. package/src/components/Chat/react/Chat.jsx +24 -0
  38. package/src/components/Chat/react/index.js +1 -0
  39. package/src/components/Modal/_style.css +7 -7
  40. package/src/components/Modal/getProps.js +3 -3
  41. package/src/components/Modal/react/Body.jsx +1 -1
  42. package/src/components/Modal/react/CloseBtn.jsx +1 -2
  43. package/src/components/Modal/react/Inner.jsx +1 -1
  44. package/src/components/Modal/react/Modal.jsx +1 -1
  45. package/src/components/Modal/react/OpenBtn.jsx +1 -1
  46. package/src/components/Modal/setModal.ts +1 -1
  47. package/src/components/NavMenu/_style.css +21 -0
  48. package/src/components/NavMenu/astro/Item.astro +8 -0
  49. package/src/components/NavMenu/astro/Link.astro +8 -0
  50. package/src/components/NavMenu/astro/Nest.astro +8 -0
  51. package/src/components/NavMenu/astro/Root.astro +9 -0
  52. package/src/components/NavMenu/astro/index.js +6 -0
  53. package/src/components/NavMenu/getProps.js +65 -0
  54. package/src/components/NavMenu/react/NavMenu.jsx +19 -0
  55. package/src/components/NavMenu/react/index.js +3 -0
  56. package/src/components/ShapeDivider/_style.css +56 -0
  57. package/src/components/ShapeDivider/astro/ShapeDivider.astro +31 -0
  58. package/src/components/ShapeDivider/astro/index.js +1 -0
  59. package/src/components/ShapeDivider/getProps.js +40 -0
  60. package/src/components/ShapeDivider/react/ShapeDivider.jsx +33 -0
  61. package/src/components/ShapeDivider/react/index.js +1 -0
  62. package/src/components/Tabs/_style.css +4 -4
  63. package/src/components/Tabs/astro/Tab.astro +1 -1
  64. package/src/components/Tabs/astro/TabList.astro +1 -1
  65. package/src/components/Tabs/astro/TabPanel.astro +1 -1
  66. package/src/components/Tabs/astro/Tabs.astro +1 -1
  67. package/src/components/Tabs/getProps.js +1 -1
  68. package/src/components/Tabs/react/Tab.jsx +1 -1
  69. package/src/components/Tabs/react/TabList.jsx +1 -1
  70. package/src/components/Tabs/react/TabPanel.jsx +1 -1
  71. package/src/components/Tabs/script.js +1 -1
  72. package/src/components/astro.ts +3 -0
  73. package/src/components/react.ts +3 -0
  74. package/src/style.scss +3 -0
@@ -3,7 +3,7 @@
3
3
  * Memo: ::backdrop のアニメーションはFirefoxで動かない
4
4
  */
5
5
  @layer lism.modules {
6
- .d--modal {
6
+ .c--modal {
7
7
  --flow: 0; /* flow直下にきても影響しないように */
8
8
  --duration: var(--modal-duration, 0.4s);
9
9
  width: 100%;
@@ -15,30 +15,30 @@
15
15
  transition-duration: var(--duration);
16
16
  transition-property: opacity;
17
17
  }
18
- .d--modal::backdrop {
18
+ .c--modal::backdrop {
19
19
  background: none;
20
20
  }
21
- .d--modal[open] {
21
+ .c--modal[open] {
22
22
  display: flex;
23
23
  flex-direction: column;
24
24
  justify-content: center;
25
25
  }
26
26
 
27
- .d--modal_inner {
27
+ .c--modal_inner {
28
28
  --offset: 0 0; /* アニメーション用 */
29
29
  background-color: var(--base);
30
30
  transition: translate var(--duration);
31
31
  max-height: 100%;
32
32
  }
33
33
 
34
- /* .d--modal_body {
34
+ /* .c--modal_body {
35
35
  overscroll-behavior: contain;
36
36
  } */
37
37
 
38
- .d--modal:not([data-is-open]) {
38
+ .c--modal:not([data-is-open]) {
39
39
  opacity: 0;
40
40
  }
41
- .d--modal:not([data-is-open]) > .d--modal_inner {
41
+ .c--modal:not([data-is-open]) > .c--modal_inner {
42
42
  translate: var(--offset);
43
43
  }
44
44
  }
@@ -2,7 +2,7 @@ import atts from 'lism-css/lib/helper/atts';
2
2
 
3
3
  export function getProps({ lismClass = '', duration, style = {}, ...props }) {
4
4
  const theProps = {
5
- lismClass: atts(lismClass, 'd--modal'),
5
+ lismClass: atts(lismClass, 'c--modal'),
6
6
  setPlain: true,
7
7
  };
8
8
  if (duration) {
@@ -17,14 +17,14 @@ export function getInnerProps({ lismClass = '', offset, style = {}, ...props })
17
17
  style['--offset'] = offset;
18
18
  }
19
19
  return {
20
- lismClass: atts(lismClass, 'd--modal_inner'),
20
+ lismClass: atts(lismClass, 'c--modal_inner'),
21
21
  style,
22
22
  ...props,
23
23
  };
24
24
  }
25
25
 
26
26
  export const defaultProps = {
27
- body: { lismClass: 'd--modal_body' },
27
+ body: { lismClass: 'c--modal_body' },
28
28
  closeBtn: { tag: 'button', setPlain: true, hov: 'o', d: 'in-flex' },
29
29
  openBtn: { tag: 'button', setPlain: true, hov: 'o', d: 'in-flex' },
30
30
  };
@@ -1,4 +1,4 @@
1
- import { Lism } from '../../Lism';
1
+ import { Lism } from 'lism-css/react';
2
2
  import { defaultProps } from '../getProps';
3
3
 
4
4
  export default function ModalBody({ children, ...props }) {
@@ -1,5 +1,4 @@
1
- import { Lism } from '../../Lism';
2
- import { Icon } from '../../atomic/Icon';
1
+ import { Lism, Icon } from 'lism-css/react';
3
2
  import { defaultProps } from '../getProps';
4
3
 
5
4
  // duration: [s]
@@ -1,4 +1,4 @@
1
- import { Lism } from '../../Lism';
1
+ import { Lism } from 'lism-css/react';
2
2
  import { getInnerProps } from '../getProps';
3
3
 
4
4
  export default function ModalInner({ children, ...props }) {
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { Lism } from '../../Lism';
2
+ import { Lism } from 'lism-css/react';
3
3
  import { setEvent } from '../setModal';
4
4
  import { getProps } from '../getProps';
5
5
 
@@ -1,4 +1,4 @@
1
- import { Lism } from '../../Lism';
1
+ import { Lism } from 'lism-css/react';
2
2
  import { defaultProps } from '../getProps';
3
3
 
4
4
  // duration: [s]
@@ -98,7 +98,7 @@ export function setEvent(modal: HTMLDialogElement): void {
98
98
  }
99
99
 
100
100
  const setModal = () => {
101
- const modals = document.querySelectorAll('.d--modal');
101
+ const modals = document.querySelectorAll('.c--modal');
102
102
 
103
103
  modals?.forEach((target) => {
104
104
  setEvent(target as HTMLDialogElement);
@@ -0,0 +1,21 @@
1
+ @layer lism.modules {
2
+ .c--navMenu {
3
+ --link-td: none;
4
+ --hl: var(--hl--s);
5
+ --_item-p: var(--s20);
6
+ --focus-offset: -1px; /* アコーディオン化した時にoutlineが一部見えなくなるのを防ぐ */
7
+ }
8
+
9
+ .c--navMenu_nest {
10
+ --_item-p: inherit;
11
+ }
12
+
13
+ .c--navMenu_link {
14
+ padding: var(--_item-p);
15
+ }
16
+
17
+ .c--navMenu_nest,
18
+ .c--navMenu_item {
19
+ --bdc: inherit;
20
+ }
21
+ }
@@ -0,0 +1,8 @@
1
+ ---
2
+ import { Lism } from 'lism-css/astro';
3
+ import { getItemProps } from '../getProps';
4
+ ---
5
+
6
+ <Lism {...getItemProps(Astro.props)}>
7
+ <slot />
8
+ </Lism>
@@ -0,0 +1,8 @@
1
+ ---
2
+ import { Flex } from 'lism-css/astro';
3
+ import { getLinkProps } from '../getProps';
4
+ ---
5
+
6
+ <Flex {...getLinkProps(Astro.props)}>
7
+ <slot />
8
+ </Flex>
@@ -0,0 +1,8 @@
1
+ ---
2
+ import { Stack } from 'lism-css/astro';
3
+ import { getNestProps } from '../getProps';
4
+ ---
5
+
6
+ <Stack {...getNestProps(Astro.props)}>
7
+ <slot />
8
+ </Stack>
@@ -0,0 +1,9 @@
1
+ ---
2
+ import { Stack } from 'lism-css/astro';
3
+ import { getRootProps } from '../getProps';
4
+ import '../_style.css';
5
+ ---
6
+
7
+ <Stack {...getRootProps(Astro.props)}>
8
+ <slot />
9
+ </Stack>
@@ -0,0 +1,6 @@
1
+ import Root from './Root.astro';
2
+ import Nest from './Nest.astro';
3
+ import Item from './Item.astro';
4
+ import Link from './Link.astro';
5
+
6
+ export default { Root, Nest, Item, Link };
@@ -0,0 +1,65 @@
1
+ /**
2
+ * NavMenu コンポーネントの共通プロパティ処理
3
+ */
4
+ import getMaybeCssVar from 'lism-css/lib/getMaybeCssVar';
5
+
6
+ /**
7
+ * NavMenu.Root のプロパティを処理
8
+ * @param {object} props - コンポーネントのプロパティ
9
+ * @param {string} [props.hovC] - ホバー時のテキストカラー(--hov-c として出力)
10
+ * @param {string} [props.hovBgc] - ホバー時の背景カラー(--hov-bgc として出力)
11
+ * @param {string} [props.itemP] - 各アイテムのパディング(--_item-p として出力)
12
+ * @param {object} [props.style] - スタイルオブジェクト
13
+ */
14
+ export function getRootProps({ hovC, hovBgc, itemP, style = {}, ...props }) {
15
+ const computedStyle = { ...style };
16
+
17
+ if (hovBgc) computedStyle['--hov-bgc'] = getMaybeCssVar(hovBgc, 'color');
18
+ if (hovC) computedStyle['--hov-c'] = getMaybeCssVar(hovC, 'color');
19
+ if (itemP) computedStyle['--_item-p'] = getMaybeCssVar(itemP, 'space');
20
+
21
+ return {
22
+ lismClass: 'c--navMenu',
23
+ tag: 'ul',
24
+ style: computedStyle,
25
+ ...props,
26
+ };
27
+ }
28
+
29
+ /**
30
+ * NavMenu.Nest のプロパティを処理
31
+ */
32
+ export function getNestProps(props) {
33
+ return {
34
+ lismClass: 'c--navMenu_nest',
35
+ tag: 'ul',
36
+ 'px-s': '20',
37
+ ...props,
38
+ };
39
+ }
40
+
41
+ /**
42
+ * NavMenu.Item のプロパティを処理
43
+ */
44
+ export function getItemProps(props) {
45
+ return {
46
+ lismClass: 'c--navMenu_item',
47
+ tag: 'li',
48
+ ...props,
49
+ };
50
+ }
51
+
52
+ /**
53
+ * NavMenu.Link のプロパティを処理
54
+ * @param {string} [props.href] - リンク先URL。指定時は a タグになる
55
+ * @param {string} [props.tag='span'] - HTML タグ
56
+ */
57
+ export function getLinkProps({ href, tag = 'span', ...props }) {
58
+ return {
59
+ lismClass: 'c--navMenu_link',
60
+ tag: href ? 'a' : tag,
61
+ href,
62
+ c: 'inherit',
63
+ ...props,
64
+ };
65
+ }
@@ -0,0 +1,19 @@
1
+ import { Lism, Stack, Flex } from 'lism-css/react';
2
+ import { getRootProps, getNestProps, getItemProps, getLinkProps } from '../getProps';
3
+ import '../_style.css';
4
+
5
+ export function Root({ children, ...props }) {
6
+ return <Stack {...getRootProps(props)}>{children}</Stack>;
7
+ }
8
+
9
+ export function Nest({ children, ...props }) {
10
+ return <Stack {...getNestProps(props)}>{children}</Stack>;
11
+ }
12
+
13
+ export function Item({ children, ...props }) {
14
+ return <Lism {...getItemProps(props)}>{children}</Lism>;
15
+ }
16
+
17
+ export function Link({ children, ...props }) {
18
+ return <Flex {...getLinkProps(props)}>{children}</Flex>;
19
+ }
@@ -0,0 +1,3 @@
1
+ import { Root, Item, Link, Nest } from './NavMenu';
2
+
3
+ export default { Root, Item, Link, Nest };
@@ -0,0 +1,56 @@
1
+ /* Note: scale 反転は、__inner に対して行う。shapeDivider自身を反転させると、X方向に隙間ができてしまう。 */
2
+ @layer lism.modules {
3
+ .c--shapeDivider {
4
+ --level: 0;
5
+
6
+ /* svg配置調整用 */
7
+ --_inner-offset: 0px;
8
+ --_inner-stretch: 1;
9
+
10
+ /* flip がオンなら -1 にセット */
11
+ --_flipX: 1;
12
+ --_flipY: 1;
13
+
14
+ /* 500px時点を最小値, 1200px時点を最大値にして、clampで高さを変動させる */
15
+ height: clamp(calc(5px * var(--level)), calc(1cqw * var(--level)), calc(12px * var(--level)));
16
+ overflow: visible;
17
+ }
18
+
19
+ .c--shapeDivider:where([data-flip^='X']) {
20
+ --_flipX: -1;
21
+ }
22
+
23
+ .c--shapeDivider:where([data-flip$='Y']) {
24
+ --_flipY: -1;
25
+ }
26
+ .c--shapeDivider_inner {
27
+ /* 隙間ができるのを防ぐ */
28
+ --offsetY: 0.5px;
29
+ --offsetX: -0.5px;
30
+ height: 100%;
31
+ width: calc(100% + 1px);
32
+ scale: calc(var(--_flipX) * var(--_inner-stretch)) var(--_flipY);
33
+ translate: calc(var(--offsetX) + var(--_inner-offset)) calc(var(--offsetY) * var(--_flipY));
34
+ }
35
+
36
+ .c--shapeDivider_svg {
37
+ /* 位置ずれ防止 */
38
+ display: block;
39
+ }
40
+
41
+ /* 左右にスライドするアニメーション */
42
+ :where([data-has-animation='true']) .c--shapeDivider_svg {
43
+ /* ↓ X 100% にしてるのは translateXのcalc計算で * -1 をしなくていいように。*/
44
+ transform-origin: 100% 0;
45
+ animation: lism--slideShape 12s infinite alternate linear;
46
+ }
47
+ }
48
+
49
+ @keyframes lism--slideShape {
50
+ 0% {
51
+ transform: scaleX(4);
52
+ }
53
+ 100% {
54
+ transform: scaleX(4) translateX(calc(100% - 25%));
55
+ }
56
+ }
@@ -0,0 +1,31 @@
1
+ ---
2
+ import { Lism } from 'lism-css/astro';
3
+ import getProps from '../getProps';
4
+ import '../_style.css';
5
+
6
+ const componentProps = getProps(Astro.props);
7
+ const { viewBox, isAnimation, isEmpty, ...lismProps } = componentProps || {};
8
+ ---
9
+
10
+ {
11
+ componentProps && (
12
+ <Lism {...lismProps}>
13
+ {isEmpty ? null : (
14
+ <div class='c--shapeDivider_inner'>
15
+ <svg
16
+ xmlns='http://www.w3.org/2000/svg'
17
+ class='c--shapeDivider_svg'
18
+ viewBox={viewBox}
19
+ width='100%'
20
+ height='100%'
21
+ fill='currentColor'
22
+ focusable='false'
23
+ preserveAspectRatio='none'
24
+ >
25
+ <slot />
26
+ </svg>
27
+ </div>
28
+ )}
29
+ </Lism>
30
+ )
31
+ }
@@ -0,0 +1 @@
1
+ export { default } from './ShapeDivider.astro';
@@ -0,0 +1,40 @@
1
+ /**
2
+ * ShapeDivider コンポーネントの共通プロパティ処理
3
+ * @param {string} [props.viewBox] - SVG の viewBox
4
+ * @param {boolean} [props.isAnimation] - アニメーションを有効にするか
5
+ * @param {boolean} [props.isEmpty] - シェイプを非表示にしてスペーサーとして使用
6
+ * @param {number} [props.level=5] - シェイプの高さレベル
7
+ * @param {string} [props.stretch] - 水平方向の引き伸ばし量
8
+ * @param {string} [props.offset] - 水平方向のオフセット
9
+ * @param {string} [props.flip] - X/Y/XY で反転方向を指定
10
+ */
11
+ export default function getProps({ viewBox, isAnimation, isEmpty, level = 5, stretch, offset, flip, style = {}, ...restProps }) {
12
+ // level が 0 の場合は非表示
13
+ if (level === 0) return null;
14
+
15
+ // CSS変数をセット
16
+ const computedStyle = { ...style };
17
+ computedStyle['--level'] = level || null;
18
+ computedStyle['--_inner-offset'] = offset || null;
19
+ computedStyle['--_inner-stretch'] = stretch || null;
20
+
21
+ const _props = {
22
+ lismClass: 'c--shapeDivider',
23
+ 'max-sz': 'full',
24
+ 'aria-hidden': 'true',
25
+ };
26
+ if (flip) _props['data-flip'] = flip;
27
+ if (isAnimation) _props['data-has-animation'] = 'true';
28
+
29
+ return {
30
+ ..._props,
31
+ style: computedStyle,
32
+
33
+ // SVG用のprops
34
+ viewBox,
35
+ isEmpty,
36
+
37
+ // その他のprops
38
+ ...restProps,
39
+ };
40
+ }
@@ -0,0 +1,33 @@
1
+ import { Lism } from 'lism-css/react';
2
+ import getProps from '../getProps';
3
+ import '../_style.css';
4
+
5
+ export default function ShapeDivider({ children, ...props }) {
6
+ const componentProps = getProps(props);
7
+
8
+ // level が 0 の場合は非表示
9
+ if (!componentProps) return null;
10
+
11
+ const { viewBox, isAnimation, isEmpty, ...lismProps } = componentProps;
12
+
13
+ return (
14
+ <Lism {...lismProps}>
15
+ {isEmpty ? null : (
16
+ <div className='c--shapeDivider_inner'>
17
+ <svg
18
+ xmlns='http://www.w3.org/2000/svg'
19
+ className='c--shapeDivider_svg'
20
+ viewBox={viewBox}
21
+ width='100%'
22
+ height='100%'
23
+ fill='currentColor'
24
+ focusable='false'
25
+ preserveAspectRatio='none'
26
+ >
27
+ {children}
28
+ </svg>
29
+ </div>
30
+ )}
31
+ </Lism>
32
+ );
33
+ }
@@ -0,0 +1 @@
1
+ export { default } from './ShapeDivider';
@@ -1,14 +1,14 @@
1
1
  @layer lism.modules {
2
- .d--tabs {
2
+ .c--tabs {
3
3
  display: grid;
4
4
  grid: 'list' 'panel' / 100%;
5
5
  }
6
- .d--tabs_list {
6
+ .c--tabs_list {
7
7
  grid-area: list;
8
8
  display: flex;
9
9
  overflow-x: auto;
10
10
  }
11
- .d--tabs_tab {
11
+ .c--tabs_tab {
12
12
  &[aria-selected='true'] {
13
13
  --_notSelected: ;
14
14
  }
@@ -21,7 +21,7 @@
21
21
  }
22
22
  }
23
23
 
24
- .d--tabs_panel {
24
+ .c--tabs_panel {
25
25
  grid-area: panel;
26
26
  width: 100%;
27
27
 
@@ -12,6 +12,6 @@ const { tabId = 'tab', index = 0, isActive, ...props } = Astro.props;
12
12
  const controlId = `${tabId}-${index}`;
13
13
  ---
14
14
 
15
- <Lism tag='button' lismClass='d--tabs_tab' setPlain role='tab' aria-controls={controlId} aria-selected={isActive ? 'true' : 'false'} {...props}>
15
+ <Lism tag='button' lismClass='c--tabs_tab' setPlain role='tab' aria-controls={controlId} aria-selected={isActive ? 'true' : 'false'} {...props}>
16
16
  <slot />
17
17
  </Lism>
@@ -3,6 +3,6 @@
3
3
  import { Lism } from 'lism-css/astro';
4
4
  ---
5
5
 
6
- <Lism lismClass='d--tabs_list' role='tablist' {...Astro.props}>
6
+ <Lism lismClass='c--tabs_list' role='tablist' {...Astro.props}>
7
7
  <slot />
8
8
  </Lism>
@@ -11,6 +11,6 @@ const { tabId = 'tab', index = 0, isActive = false, ...props } = Astro.props;
11
11
  const controlId = `${tabId}-${index}`;
12
12
  ---
13
13
 
14
- <Lism id={controlId} role='tabpanel' aria-hidden={isActive ? 'false' : 'true'} lismClass='d--tabs_panel' {...props}>
14
+ <Lism id={controlId} role='tabpanel' aria-hidden={isActive ? 'false' : 'true'} lismClass='c--tabs_panel' {...props}>
15
15
  <slot />
16
16
  </Lism>
@@ -50,7 +50,7 @@ const hasItems = btns.length > 0;
50
50
 
51
51
  <script>
52
52
  import setTabs from '../setTabs';
53
- const tabsAll = document.querySelectorAll('.d--tabs');
53
+ const tabsAll = document.querySelectorAll('.c--tabs');
54
54
  tabsAll.forEach((tabs) => {
55
55
  setTabs(tabs);
56
56
  });
@@ -2,7 +2,7 @@ import atts from 'lism-css/lib/helper/atts';
2
2
 
3
3
  export default function getTabsProps({ lismClass, ...props }) {
4
4
  return {
5
- lismClass: atts(lismClass, 'd--tabs'),
5
+ lismClass: atts(lismClass, 'c--tabs'),
6
6
  ...props,
7
7
  };
8
8
  }
@@ -7,7 +7,7 @@ export default function Tab({ tabId = 'tab', index = 0, isActive = false, ...pro
7
7
  return (
8
8
  <Lism
9
9
  tag='button'
10
- lismClass='d--tabs_tab'
10
+ lismClass='c--tabs_tab'
11
11
  setPlain
12
12
  role='tab'
13
13
  aria-controls={controlId}
@@ -2,5 +2,5 @@ import { Lism } from 'lism-css/react';
2
2
 
3
3
  export default function TabList(props) {
4
4
  // jc: 's',
5
- return <Lism lismClass='d--tabs_list' role='tablist' {...props} />;
5
+ return <Lism lismClass='c--tabs_list' role='tablist' {...props} />;
6
6
  }
@@ -4,5 +4,5 @@ import { Lism } from 'lism-css/react';
4
4
  export default function TabPanel({ tabId = 'tab', isActive = false, index = 0, ...props }) {
5
5
  const controlId = `${tabId}-${index}`;
6
6
 
7
- return <Lism id={controlId} role='tabpanel' aria-hidden={isActive ? 'false' : 'true'} lismClass='d--tabs_panel' {...props} />;
7
+ return <Lism id={controlId} role='tabpanel' aria-hidden={isActive ? 'false' : 'true'} lismClass='c--tabs_panel' {...props} />;
8
8
  }
@@ -1,7 +1,7 @@
1
1
  import setTabs from './setTabs.js';
2
2
 
3
3
  document.addEventListener('DOMContentLoaded', function () {
4
- const tabsAll = document.querySelectorAll('.d--tabs');
4
+ const tabsAll = document.querySelectorAll('.c--tabs');
5
5
  tabsAll.forEach((tabs) => {
6
6
  setTabs(tabs);
7
7
  });
@@ -4,5 +4,8 @@ export { default as Avatar } from './Avatar/astro';
4
4
  export { default as Badge } from './Badge/astro';
5
5
  export { default as Button } from './Button/astro';
6
6
  export { default as Callout } from './Callout/astro';
7
+ export { default as Chat } from './Chat/astro';
7
8
  export { default as Modal } from './Modal/astro';
9
+ export { default as NavMenu } from './NavMenu/astro';
10
+ export { default as ShapeDivider } from './ShapeDivider/astro';
8
11
  export { default as Tabs } from './Tabs/astro';
@@ -4,5 +4,8 @@ export { default as Avatar } from './Avatar/react';
4
4
  export { default as Badge } from './Badge/react';
5
5
  export { default as Button } from './Button/react';
6
6
  export { default as Callout } from './Callout/react';
7
+ export { default as Chat } from './Chat/react';
7
8
  export { default as Modal } from './Modal/react';
9
+ export { default as NavMenu } from './NavMenu/react';
10
+ export { default as ShapeDivider } from './ShapeDivider/react';
8
11
  export { default as Tabs } from './Tabs/react';
package/src/style.scss CHANGED
@@ -2,3 +2,6 @@
2
2
  @use './components/Avatar/_style.css' as avatar;
3
3
  @use './components/Badge/_style.css' as badge;
4
4
  @use './components/Button/_style.css' as button;
5
+ @use './components/Chat/_style.css' as chat;
6
+ @use './components/NavMenu/_style.css' as navmenu;
7
+ @use './components/ShapeDivider/_style.css' as shapedivider;