lism-css 0.9.2 → 1.0.0-beta.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 (102) hide show
  1. package/dist/components/Box/Box.stories.d.ts +7 -0
  2. package/dist/components/Center/Center.stories.d.ts +8 -0
  3. package/dist/components/Cluster/Cluster.stories.d.ts +7 -0
  4. package/dist/components/Columns/Columns.stories.d.ts +8 -0
  5. package/dist/components/Container/Container.stories.d.ts +8 -0
  6. package/dist/components/Dummy/getContent.d.ts +1 -2
  7. package/dist/components/Flex/Flex.stories.d.ts +9 -0
  8. package/dist/components/Flow/Flow.stories.d.ts +9 -0
  9. package/dist/components/FluidCols/FluidCols.stories.d.ts +7 -0
  10. package/dist/components/Frame/Frame.stories.d.ts +7 -0
  11. package/dist/components/Grid/Grid.stories.d.ts +8 -0
  12. package/dist/components/Layer/Layer.stories.d.ts +8 -0
  13. package/dist/components/LinkBox/LinkBox.stories.d.ts +7 -0
  14. package/dist/components/Lism/Lism.stories.d.ts +1 -650
  15. package/dist/components/SideMain/SideMain.stories.d.ts +9 -0
  16. package/dist/components/Stack/Stack.stories.d.ts +8 -0
  17. package/dist/components/SwitchCols/SwitchCols.stories.d.ts +9 -0
  18. package/dist/components/Wrapper/Wrapper.stories.d.ts +10 -0
  19. package/dist/components/atomic/Decorator/Decorator.stories.d.ts +10 -0
  20. package/dist/components/atomic/Decorator/getProps.d.ts +4 -5
  21. package/dist/components/atomic/Divider/Divider.stories.d.ts +8 -0
  22. package/dist/components/atomic/Divider/getProps.d.ts +2 -2
  23. package/dist/components/atomic/Icon/Icon.d.ts +7 -3
  24. package/dist/components/atomic/Icon/Icon.stories.d.ts +15 -0
  25. package/dist/components/atomic/Icon/getProps.d.ts +10 -5
  26. package/dist/components/atomic/Icon/index.d.ts +1 -0
  27. package/dist/components/atomic/Media/Media.d.ts +6 -2
  28. package/dist/components/atomic/Media/Media.stories.d.ts +9 -0
  29. package/dist/components/atomic/Media/getProps.d.ts +4 -5
  30. package/dist/components/atomic/Spacer/Spacer.stories.d.ts +9 -0
  31. package/dist/components/atomic/Spacer/getProps.d.ts +2 -2
  32. package/dist/css/base.css +1 -1
  33. package/dist/css/main.css +1 -1
  34. package/dist/css/main_no_layer.css +1 -1
  35. package/dist/lib/getLismProps.d.ts +5 -5
  36. package/dist/lib/types/ResponsiveProps.d.ts +1 -1
  37. package/package.json +7 -6
  38. package/packages/astro/Box/Box.astro +2 -3
  39. package/packages/astro/Center/Center.astro +3 -0
  40. package/packages/astro/Cluster/Cluster.astro +3 -0
  41. package/packages/astro/Columns/Columns.astro +3 -0
  42. package/packages/astro/Container/Container.astro +4 -2
  43. package/packages/astro/Decorator/Decorator.astro +3 -4
  44. package/packages/astro/Divider/Divider.astro +3 -4
  45. package/packages/astro/Dummy/Dummy.astro +8 -4
  46. package/packages/astro/Flex/Flex.astro +3 -0
  47. package/packages/astro/Flow/Flow.astro +3 -0
  48. package/packages/astro/FluidCols/FluidCols.astro +3 -0
  49. package/packages/astro/Frame/Frame.astro +3 -0
  50. package/packages/astro/Grid/Grid.astro +3 -0
  51. package/packages/astro/HTML/a.astro +3 -0
  52. package/packages/astro/HTML/button.astro +3 -0
  53. package/packages/astro/HTML/div.astro +3 -0
  54. package/packages/astro/HTML/h.astro +6 -0
  55. package/packages/astro/HTML/img.astro +3 -0
  56. package/packages/astro/HTML/li.astro +3 -0
  57. package/packages/astro/HTML/ol.astro +3 -0
  58. package/packages/astro/HTML/p.astro +3 -0
  59. package/packages/astro/HTML/span.astro +3 -0
  60. package/packages/astro/HTML/ul.astro +3 -0
  61. package/packages/astro/Icon/Icon.astro +7 -12
  62. package/packages/astro/Layer/Layer.astro +4 -1
  63. package/packages/astro/LinkBox/LinkBox.astro +4 -3
  64. package/packages/astro/Lism/Lism.astro +5 -6
  65. package/packages/astro/Media/Media.astro +6 -3
  66. package/packages/astro/SideMain/SideMain.astro +3 -0
  67. package/packages/astro/Spacer/Spacer.astro +3 -4
  68. package/packages/astro/Stack/Stack.astro +3 -0
  69. package/packages/astro/SwitchCols/SwitchCols.astro +3 -0
  70. package/packages/astro/Wrapper/Wrapper.astro +5 -0
  71. package/packages/astro/env.d.ts +10 -0
  72. package/packages/astro/tsconfig.json +12 -0
  73. package/packages/astro/types.ts +53 -0
  74. package/src/scss/base/tokens/_shadow.scss +1 -0
  75. package/packages/astro/OverlayLink/OverlayLink.astro +0 -10
  76. package/packages/astro/OverlayLink/index.js +0 -1
  77. package/packages/astro/helper.js +0 -6
  78. /package/packages/astro/Box/{index.js → index.ts} +0 -0
  79. /package/packages/astro/Center/{index.js → index.ts} +0 -0
  80. /package/packages/astro/Cluster/{index.js → index.ts} +0 -0
  81. /package/packages/astro/Columns/{index.js → index.ts} +0 -0
  82. /package/packages/astro/Container/{index.js → index.ts} +0 -0
  83. /package/packages/astro/Decorator/{index.js → index.ts} +0 -0
  84. /package/packages/astro/Divider/{index.js → index.ts} +0 -0
  85. /package/packages/astro/Dummy/{index.js → index.ts} +0 -0
  86. /package/packages/astro/Flex/{index.js → index.ts} +0 -0
  87. /package/packages/astro/Flow/{index.js → index.ts} +0 -0
  88. /package/packages/astro/FluidCols/{index.js → index.ts} +0 -0
  89. /package/packages/astro/Frame/{index.js → index.ts} +0 -0
  90. /package/packages/astro/Grid/{index.js → index.ts} +0 -0
  91. /package/packages/astro/HTML/{index.js → index.ts} +0 -0
  92. /package/packages/astro/Icon/{index.js → index.ts} +0 -0
  93. /package/packages/astro/Layer/{index.js → index.ts} +0 -0
  94. /package/packages/astro/LinkBox/{index.js → index.ts} +0 -0
  95. /package/packages/astro/Lism/{index.js → index.ts} +0 -0
  96. /package/packages/astro/Media/{index.js → index.ts} +0 -0
  97. /package/packages/astro/SideMain/{index.js → index.ts} +0 -0
  98. /package/packages/astro/Spacer/{index.js → index.ts} +0 -0
  99. /package/packages/astro/Stack/{index.js → index.ts} +0 -0
  100. /package/packages/astro/SwitchCols/{index.js → index.ts} +0 -0
  101. /package/packages/astro/Wrapper/{index.js → index.ts} +0 -0
  102. /package/packages/astro/{index.js → index.ts} +0 -0
@@ -1,10 +1,9 @@
1
1
  ---
2
- import type { LismProps } from '../../types';
2
+ import type { DecoratorProps } from 'lism-css/react/atomic/Decorator/getProps';
3
3
  import { Lism } from '../Lism';
4
- import getProps from '../../../dist/components/atomic/Decorator/getProps';
4
+ import getProps from 'lism-css/react/atomic/Decorator/getProps';
5
5
 
6
- // Propsの定義
7
- interface Props extends LismProps {}
6
+ type Props = DecoratorProps;
8
7
  const props = Astro.props || {};
9
8
  ---
10
9
 
@@ -1,10 +1,9 @@
1
1
  ---
2
- import type { LismProps } from '../../types';
2
+ import type { AstroLismProps } from '../types';
3
3
  import { Lism } from '../Lism';
4
- import { getDividerProps } from '../../../dist/components/atomic/Divider/getProps';
4
+ import { getDividerProps } from 'lism-css/react/atomic/Divider/getProps';
5
5
 
6
- // Propsの定義
7
- interface Props extends LismProps {}
6
+ type Props = AstroLismProps;
8
7
 
9
8
  const props = Astro.props || {};
10
9
  ---
@@ -1,10 +1,14 @@
1
1
  ---
2
- import type { LismProps } from '../../types';
2
+ import type { AstroLismProps } from '../types';
3
3
  import { Lism } from '../Lism';
4
- import getContent from '../../../dist/components/Dummy/getContent';
4
+ import getContent from 'lism-css/react/Dummy/getContent';
5
5
 
6
- // Propsの定義
7
- interface Props extends LismProps {}
6
+ type Props = AstroLismProps & {
7
+ pre?: string;
8
+ length?: string;
9
+ lang?: 'ja' | 'en' | 'ar';
10
+ offset?: number;
11
+ };
8
12
  const { as: tagName = 'p', pre = '', length = 'm', lang = 'en', offset = 0, ...props } = Astro.props || {};
9
13
  const content = getContent({ tag: tagName, pre, lang, length, offset });
10
14
  ---
@@ -1,5 +1,8 @@
1
1
  ---
2
+ import type { AstroLismProps } from '../types';
2
3
  import { Lism } from '../Lism';
4
+
5
+ type Props = AstroLismProps;
3
6
  ---
4
7
 
5
8
  <Lism layout='flex' {...Astro.props}><slot /></Lism>
@@ -1,5 +1,8 @@
1
1
  ---
2
+ import type { AstroLismProps } from '../types';
2
3
  import { Lism } from '../Lism';
4
+
5
+ type Props = AstroLismProps;
3
6
  ---
4
7
 
5
8
  <Lism layout='flow' {...Astro.props}><slot /></Lism>
@@ -1,5 +1,8 @@
1
1
  ---
2
+ import type { AstroLismProps } from '../types';
2
3
  import { Lism } from '../Lism';
4
+
5
+ type Props = AstroLismProps;
3
6
  ---
4
7
 
5
8
  <Lism layout='fluidCols' {...Astro.props}><slot /></Lism>
@@ -1,5 +1,8 @@
1
1
  ---
2
+ import type { AstroLismProps } from '../types';
2
3
  import { Lism } from '../Lism';
4
+
5
+ type Props = AstroLismProps;
3
6
  ---
4
7
 
5
8
  <Lism layout='frame' {...Astro.props}><slot /></Lism>
@@ -1,5 +1,8 @@
1
1
  ---
2
+ import type { AstroLismProps } from '../types';
2
3
  import { Lism } from '../Lism';
4
+
5
+ type Props = AstroLismProps;
3
6
  ---
4
7
 
5
8
  <Lism layout='grid' {...Astro.props}><slot /></Lism>
@@ -1,5 +1,8 @@
1
1
  ---
2
+ import type { AstroLismProps } from '../types';
2
3
  import Lism from '../Lism/Lism.astro';
4
+
5
+ type Props = AstroLismProps;
3
6
  ---
4
7
 
5
8
  <Lism as='a' {...Astro.props}><slot /></Lism>
@@ -1,5 +1,8 @@
1
1
  ---
2
+ import type { AstroLismProps } from '../types';
2
3
  import Lism from '../Lism/Lism.astro';
4
+
5
+ type Props = AstroLismProps;
3
6
  ---
4
7
 
5
8
  <Lism as='button' {...Astro.props}><slot /></Lism>
@@ -1,5 +1,8 @@
1
1
  ---
2
+ import type { AstroLismProps } from '../types';
2
3
  import Lism from '../Lism/Lism.astro';
4
+
5
+ type Props = AstroLismProps;
3
6
  ---
4
7
 
5
8
  <Lism as='div' {...Astro.props}><slot /></Lism>
@@ -1,5 +1,11 @@
1
1
  ---
2
+ import type { AstroLismProps } from '../types';
2
3
  import Lism from '../Lism/Lism.astro';
4
+
5
+ type Props = AstroLismProps & {
6
+ lv?: '1' | '2' | '3' | '4' | '5' | '6';
7
+ };
8
+
3
9
  const { lv = '1', ...props } = Astro.props;
4
10
  ---
5
11
 
@@ -1,5 +1,8 @@
1
1
  ---
2
+ import type { AstroLismProps } from '../types';
2
3
  import Lism from '../Lism/Lism.astro';
4
+
5
+ type Props = AstroLismProps;
3
6
  ---
4
7
 
5
8
  <Lism as='img' {...Astro.props}><slot /></Lism>
@@ -1,5 +1,8 @@
1
1
  ---
2
+ import type { AstroLismProps } from '../types';
2
3
  import Lism from '../Lism/Lism.astro';
4
+
5
+ type Props = AstroLismProps;
3
6
  ---
4
7
 
5
8
  <Lism as='li' {...Astro.props}><slot /></Lism>
@@ -1,5 +1,8 @@
1
1
  ---
2
+ import type { AstroLismProps } from '../types';
2
3
  import Lism from '../Lism/Lism.astro';
4
+
5
+ type Props = AstroLismProps;
3
6
  ---
4
7
 
5
8
  <Lism as='ol' {...Astro.props}><slot /></Lism>
@@ -1,5 +1,8 @@
1
1
  ---
2
+ import type { AstroLismProps } from '../types';
2
3
  import Lism from '../Lism/Lism.astro';
4
+
5
+ type Props = AstroLismProps;
3
6
  ---
4
7
 
5
8
  <Lism as='p' {...Astro.props}><slot /></Lism>
@@ -1,5 +1,8 @@
1
1
  ---
2
+ import type { AstroLismProps } from '../types';
2
3
  import Lism from '../Lism/Lism.astro';
4
+
5
+ type Props = AstroLismProps;
3
6
  ---
4
7
 
5
8
  <Lism as='span' {...Astro.props}><slot /></Lism>
@@ -1,5 +1,8 @@
1
1
  ---
2
+ import type { AstroLismProps } from '../types';
2
3
  import Lism from '../Lism/Lism.astro';
4
+
5
+ type Props = AstroLismProps;
3
6
  ---
4
7
 
5
8
  <Lism as='ul' {...Astro.props}><slot /></Lism>
@@ -1,24 +1,19 @@
1
1
  ---
2
- import type { LismProps } from '../../types';
3
- import getLismProps from '../../../dist/lib/getLismProps';
4
- import getProps from '../../../dist/components/atomic/Icon/getProps';
2
+ import type { IconProps } from 'lism-css/react/atomic/Icon/getProps';
3
+ import type { AstroLismProps } from '../types';
4
+ import getLismProps from 'lism-css/lib/getLismProps';
5
+ import getProps from 'lism-css/react/atomic/Icon/getProps';
5
6
  import SVG from './SVG.astro';
6
7
 
7
- // Propsの定義
8
- interface Props extends LismProps {
9
- Component?: any;
10
- lismProps?: LismProps;
11
- exProps?: any;
12
- content?: string;
13
- }
8
+ type AstroIconElementProps = astroHTML.JSX.SVGAttributes & astroHTML.JSX.ImgHTMLAttributes;
14
9
 
15
- const props = Astro.props || {};
10
+ type Props = Omit<AstroLismProps, 'as'> & IconProps & AstroIconElementProps;
16
11
 
17
12
  // const hasChildren = Astro.slots.has('default');
18
13
  // let { IconTag, iconProps, otherProps } = getProps(props, hasChildren);
19
14
  // if (IconTag === '_SVG_') IconTag = SVG;
20
15
 
21
- let { Component, lismProps, exProps = {}, content }: Props = getProps(props);
16
+ let { Component, lismProps, exProps = {}, content } = getProps(Astro.props as IconProps);
22
17
 
23
18
  if (Component === '_SVG_') {
24
19
  Component = SVG;
@@ -1,6 +1,9 @@
1
1
  ---
2
+ import type { AstroLismProps } from '../types';
2
3
  import { Lism } from '../Lism';
3
- import getFilterProps from '../../../dist/components/getFilterProps';
4
+ import getFilterProps, { type FilterProps } from 'lism-css/react/getFilterProps';
5
+
6
+ type Props = AstroLismProps & FilterProps;
4
7
  ---
5
8
 
6
9
  <Lism isLayer {...getFilterProps(Astro.props, 'backdropFilter')}>
@@ -1,9 +1,10 @@
1
1
  ---
2
- import type { LismProps } from '../../types';
2
+ import type { AstroLismProps } from '../types';
3
3
  import { Lism } from '../Lism';
4
- // import getProps from '../../../dist/components/LinkBox/getProps';
5
4
 
6
- interface Props extends LismProps {}
5
+ type Props = AstroLismProps & {
6
+ href?: string;
7
+ };
7
8
  const props = Astro.props || {};
8
9
 
9
10
  const hasHref = !!props.href;
@@ -1,14 +1,13 @@
1
1
  ---
2
- import type { LismProps } from '../../types';
3
- import getLismProps from '../../../dist/lib/getLismProps';
2
+ import type { AstroLismProps } from '../types';
3
+ import getLismProps from 'lism-css/lib/getLismProps';
4
4
 
5
- // Propsの定義
6
- interface Props extends LismProps {}
5
+ interface Props extends AstroLismProps {}
7
6
 
8
- const { as, exProps, ...props } = Astro.props || {};
7
+ const { as, exProps, ...props } = Astro.props;
9
8
  const JSX = as || 'div';
10
9
  ---
11
10
 
12
- <JSX {...getLismProps(props)} {...exProps}>
11
+ <JSX {...getLismProps(props) as Record<string, unknown>} {...exProps}>
13
12
  <slot />
14
13
  </JSX>
@@ -1,11 +1,14 @@
1
1
  ---
2
- import getLismProps from '../../../dist/lib/getLismProps';
3
- import getMediaProps from '../../../dist/components/atomic/Media/getProps';
2
+ import type { MediaProps } from 'lism-css/react/atomic/Media/getProps';
3
+ import getLismProps from 'lism-css/lib/getLismProps';
4
+ import getMediaProps from 'lism-css/react/atomic/Media/getProps';
4
5
  import { Image } from 'astro:assets';
5
6
 
7
+ type Props = MediaProps;
8
+
6
9
  const { as, exProps, ...props } = Astro.props || {};
7
10
 
8
- let JSX = as || 'img';
11
+ let JSX: any = as || 'img';
9
12
  if (JSX === 'AstroImage') {
10
13
  JSX = Image;
11
14
  }
@@ -1,5 +1,8 @@
1
1
  ---
2
+ import type { AstroLismProps } from '../types';
2
3
  import { Lism } from '../Lism';
4
+
5
+ type Props = AstroLismProps;
3
6
  ---
4
7
 
5
8
  <Lism layout='sideMain' {...Astro.props}><slot /></Lism>
@@ -1,10 +1,9 @@
1
1
  ---
2
- import type { LismProps } from '../../types';
2
+ import type { AstroLismProps } from '../types';
3
3
  import { Lism } from '../Lism';
4
- import getProps from '../../../dist/components/atomic/Spacer/getProps';
4
+ import getProps from 'lism-css/react/atomic/Spacer/getProps';
5
5
 
6
- // Propsの定義
7
- interface Props extends LismProps {}
6
+ type Props = AstroLismProps;
8
7
  const props = Astro.props || {};
9
8
  ---
10
9
 
@@ -1,5 +1,8 @@
1
1
  ---
2
+ import type { AstroLismProps } from '../types';
2
3
  import { Lism } from '../Lism';
4
+
5
+ type Props = AstroLismProps;
3
6
  ---
4
7
 
5
8
  <Lism layout='stack' {...Astro.props}><slot /></Lism>
@@ -1,5 +1,8 @@
1
1
  ---
2
+ import type { AstroLismProps } from '../types';
2
3
  import { Lism } from '../Lism';
4
+
5
+ type Props = AstroLismProps;
3
6
  ---
4
7
 
5
8
  <Lism layout='switchCols' {...Astro.props}><slot /></Lism>
@@ -1,6 +1,11 @@
1
1
  ---
2
+ import type { AstroLismProps } from '../types';
2
3
  import { Lism } from '../Lism';
3
4
 
5
+ type Props = AstroLismProps & {
6
+ contentSize?: AstroLismProps['isWrapper'];
7
+ };
8
+
4
9
  const { contentSize = true, ...props } = Astro.props || {};
5
10
  ---
6
11
 
@@ -0,0 +1,10 @@
1
+ /// <reference types="astro/client" />
2
+
3
+ declare module '*.astro' {
4
+ const component: (props: Record<string, unknown>) => unknown;
5
+ export default component;
6
+ }
7
+
8
+ declare module 'astro:assets' {
9
+ export const Image: typeof import('astro/components/Image.astro').default;
10
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "extends": "astro/tsconfigs/strict",
3
+ "compilerOptions": {
4
+ "allowJs": true,
5
+ "checkJs": false,
6
+ "moduleResolution": "bundler",
7
+ "esModuleInterop": true,
8
+ "resolveJsonModule": true,
9
+ "skipLibCheck": true
10
+ },
11
+ "include": ["./**/*.astro", "./**/*.ts"]
12
+ }
@@ -0,0 +1,53 @@
1
+ /**
2
+ * Astro 用の Lism Props 型
3
+ *
4
+ * Astro テンプレートではコンポーネント呼び出し時にジェネリクスを渡せないため、
5
+ * React の ElementType に依存せず、as を任意の文字列で受け取る。
6
+ * astroHTML.JSX の HTML 属性型を union し、as で要素を切り替えた際の
7
+ * 要素固有属性(href, src 等)も受け入れられるようにする。
8
+ *
9
+ * @see https://github.com/withastro/roadmap/discussions/601
10
+ * @see https://github.com/withastro/roadmap/discussions/398
11
+ */
12
+ import type { HTMLTag } from 'astro/types';
13
+ import type { LismProps } from 'lism-css/lib/getLismProps';
14
+ import type { LayoutType, CssValue } from 'lism-css/lib/types/LayoutProps';
15
+
16
+ type AstroHTMLAttributesRaw = astroHTML.JSX.HTMLAttributes &
17
+ astroHTML.JSX.AnchorHTMLAttributes &
18
+ astroHTML.JSX.ImgHTMLAttributes &
19
+ astroHTML.JSX.ButtonHTMLAttributes &
20
+ astroHTML.JSX.FormHTMLAttributes &
21
+ astroHTML.JSX.InputHTMLAttributes &
22
+ astroHTML.JSX.SelectHTMLAttributes &
23
+ astroHTML.JSX.TextareaHTMLAttributes;
24
+
25
+ /** LismProps と同名のキーを除外し、Lism 側の型を優先させる */
26
+ type AstroHTMLAttributes = Omit<AstroHTMLAttributesRaw, keyof LismProps | keyof AstroLayoutProps>;
27
+
28
+ /**
29
+ * React では LayoutSpecificProps(判別可能ユニオン・12メンバー)を使用しているが、
30
+ * Astro ではいまとのところジェネリクスを用いていないので AstroHTMLAttributes(8つの HTML 属性型の intersection)が
31
+ * 常に全体に交差されるため、12パターン × 巨大な型で TS2590 が発生する。
32
+ * React では ComponentPropsWithoutRef<T> の T が具体的な1要素に確定するため問題にならない。
33
+ * Astro 用にはフラットな型を使用して回避する。
34
+ *
35
+ * NOTE: 将来的に Astro の Polymorphic 型を導入すれば、as の値から具体的な1要素に
36
+ * 確定できるため、AstroHTMLAttributesRaw の巨大な intersection が不要になり、
37
+ * LayoutSpecificProps も直接使用できる可能性がある。
38
+ */
39
+ type AstroLayoutProps = {
40
+ layout?: LayoutType;
41
+ flow?: CssValue;
42
+ autoFill?: boolean;
43
+ sideW?: CssValue;
44
+ mainW?: CssValue;
45
+ breakSize?: CssValue;
46
+ };
47
+
48
+ export type AstroLismProps = LismProps &
49
+ AstroLayoutProps &
50
+ AstroHTMLAttributes & {
51
+ as?: HTMLTag;
52
+ exProps?: Record<string, unknown>;
53
+ };
@@ -11,6 +11,7 @@
11
11
  --sh--40: var(--sh-inset) var(--shsz--40) var(--shc);
12
12
  --sh--50: var(--sh-inset) var(--shsz--50) var(--shc);
13
13
 
14
+ --bxsh--5: var(--sh--5);
14
15
  --bxsh--10: var(--sh--5), var(--sh--10);
15
16
  --bxsh--20: var(--sh--10), var(--sh--20);
16
17
  --bxsh--30: var(--sh--20), var(--sh--30);
@@ -1,10 +0,0 @@
1
- ---
2
- import type { LismProps } from '../../types';
3
- import { Lism } from '../Lism';
4
- import getOverlayLinkProps from '../../../dist/components/OverlayLink/getProps';
5
-
6
- interface Props extends LismProps {}
7
- const props = Astro.props || {};
8
- ---
9
-
10
- <Lism {...getOverlayLinkProps(props)}><slot /></Lism>
@@ -1 +0,0 @@
1
- export { default as OverlayLink } from './OverlayLink.astro';
@@ -1,6 +0,0 @@
1
- // https://stackoverflow.com/questions/105034/how-do-i-create-a-guid-uuid
2
- export function uuidv4() {
3
- return '10000000-1000-4000-8000-100000000000'.replace(/[018]/g, (c) =>
4
- (c ^ (crypto.getRandomValues(new Uint8Array(1))[0] & (15 >> (c / 4)))).toString(16)
5
- );
6
- }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes