lism-css 0.0.1 → 0.0.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.
- package/README.md +52 -0
- package/dist/_virtual/jsx-runtime.js +5 -0
- package/dist/_virtual/jsx-runtime2.js +4 -0
- package/dist/_virtual/react-jsx-runtime.development.js +4 -0
- package/dist/_virtual/react-jsx-runtime.production.min.js +4 -0
- package/dist/components/Accordion/AccIcon.js +10 -0
- package/dist/components/Accordion/getProps.js +29 -0
- package/dist/components/Accordion/index.js +6 -0
- package/dist/components/Accordion/index2.js +32 -0
- package/dist/components/Accordion/setAccordion.js +37 -0
- package/dist/components/Accordion/style.css +1 -0
- package/dist/components/Box/getProps.js +7 -0
- package/dist/components/Box/index.js +9 -0
- package/dist/components/Center/index.js +8 -0
- package/dist/components/Columns/getProps.js +6 -0
- package/dist/components/Columns/index.js +9 -0
- package/dist/components/Container/index.js +9 -0
- package/dist/components/Decorator/getProps.js +15 -0
- package/dist/components/Decorator/index.js +9 -0
- package/dist/components/Divider/getProps.js +11 -0
- package/dist/components/Divider/index.js +9 -0
- package/dist/components/Dummy/getContent.js +9 -0
- package/dist/components/Dummy/index.js +17 -0
- package/dist/components/Dummy/texts.js +24 -0
- package/dist/components/Flex/Cluster.js +8 -0
- package/dist/components/Flex/FlexItem.js +9 -0
- package/dist/components/Flex/getProps.js +13 -0
- package/dist/components/Flex/index.js +9 -0
- package/dist/components/Frame/getProps.js +7 -0
- package/dist/components/Frame/index.js +9 -0
- package/dist/components/Grid/GridItem.js +10 -0
- package/dist/components/Grid/getProps.js +28 -0
- package/dist/components/Grid/index.js +9 -0
- package/dist/components/Icon/SVG.js +29 -0
- package/dist/components/Icon/getProps.js +34 -0
- package/dist/components/Icon/index.js +11 -0
- package/dist/components/Icon/presets.js +193 -0
- package/dist/components/Layer/getProps.js +9 -0
- package/dist/components/Layer/index.js +10 -0
- package/dist/components/LinkBox/index.js +9 -0
- package/dist/components/Lism/Link.js +8 -0
- package/dist/components/Lism/Media.js +10 -0
- package/dist/components/Lism/Text.js +8 -0
- package/dist/components/Lism/index.js +9 -0
- package/dist/components/Modal/Body.js +10 -0
- package/dist/components/Modal/CloseIconBtn.js +19 -0
- package/dist/components/Modal/Footer.js +10 -0
- package/dist/components/Modal/Header.js +10 -0
- package/dist/components/Modal/Inner.js +9 -0
- package/dist/components/Modal/getProps.js +19 -0
- package/dist/components/Modal/index.js +10 -0
- package/dist/components/Modal/index2.js +17 -0
- package/dist/components/Modal/setModal.js +37 -0
- package/dist/components/Modal/style.css +1 -0
- package/dist/components/Spacer/getProps.js +21 -0
- package/dist/components/Spacer/index.js +9 -0
- package/dist/components/Stack/index.js +8 -0
- package/dist/components/Tabs/Tab.js +22 -0
- package/dist/components/Tabs/TabItem.js +7 -0
- package/dist/components/Tabs/TabList.js +8 -0
- package/dist/components/Tabs/TabPanel.js +19 -0
- package/dist/components/Tabs/getProps.js +17 -0
- package/dist/components/Tabs/index.js +9 -0
- package/dist/components/Tabs/index2.js +55 -0
- package/dist/components/Tabs/setEvent.js +29 -0
- package/dist/components/Tabs/style.css +1 -0
- package/dist/components/WithSide/getProps.js +14 -0
- package/dist/components/WithSide/index.js +9 -0
- package/dist/components/getFilterProps.js +23 -0
- package/dist/components/getInsetProps.js +8 -0
- package/dist/components/getMediaProps.js +14 -0
- package/dist/components/getTransformProps.js +8 -0
- package/dist/config/prop_list.js +395 -0
- package/dist/config/tokens.js +67 -0
- package/dist/config.js +9 -0
- package/dist/css/all.css +1 -0
- package/dist/css/all_no_layer.css +1 -0
- package/dist/css/base.css +1 -0
- package/dist/css/dynamic.css +1 -0
- package/dist/css/layout.css +1 -0
- package/dist/css/props.css +1 -0
- package/dist/css/reset.css +1 -0
- package/dist/css/state.css +1 -0
- package/dist/css/utility.css +1 -0
- package/dist/css/with_layer.css +1 -0
- package/dist/index.js +54 -0
- package/dist/lib/getBpData.js +13 -0
- package/dist/lib/getLismProps.js +239 -0
- package/dist/lib/getMaybeCssVar.js +61 -0
- package/dist/lib/getMaybeUtilValue.js +6 -0
- package/dist/lib/helper/atts.js +11 -0
- package/dist/lib/helper/filterEmptyObj.js +9 -0
- package/dist/lib/helper/hasKeys.js +6 -0
- package/dist/lib/helper/isEmptyObj.js +6 -0
- package/dist/lib/helper/isNumStr.js +6 -0
- package/dist/lib/helper/splitWithComma.js +6 -0
- package/dist/lib/isPresetValue.js +6 -0
- package/dist/lib/isTokenValue.js +9 -0
- package/dist/node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.development.js +604 -0
- package/dist/node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.production.min.js +28 -0
- package/dist/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js +10 -0
- package/dist/scripts/accordion.js +4 -0
- package/dist/scripts/modal.js +4 -0
- package/dist/scripts/tabs.js +6 -0
- package/package.json +22 -22
- package/packages/astro/Accordion/AccBody.astro +15 -0
- package/packages/astro/Accordion/AccHeader.astro +13 -0
- package/packages/astro/Accordion/AccIcon.astro +19 -0
- package/packages/astro/Accordion/AccLabel.astro +12 -0
- package/packages/astro/Accordion/Accordion.astro +21 -0
- package/packages/astro/Accordion/__setEvent.js +2 -0
- package/packages/astro/Accordion/index.js +7 -0
- package/packages/astro/Box/Box.astro +11 -0
- package/packages/astro/Box/index.js +1 -0
- package/packages/astro/Center/Center.astro +11 -0
- package/packages/astro/Center/index.js +1 -0
- package/packages/astro/Columns/Columns.astro +11 -0
- package/packages/astro/Columns/index.js +1 -0
- package/packages/astro/Container/Container.astro +11 -0
- package/packages/astro/Container/index.js +1 -0
- package/packages/astro/Decorator/Decorator.astro +13 -0
- package/packages/astro/Decorator/index.js +1 -0
- package/packages/astro/Divider/Divider.astro +12 -0
- package/packages/astro/Divider/index.js +1 -0
- package/packages/astro/Dummy/Dummy.astro +12 -0
- package/packages/astro/Dummy/index.js +1 -0
- package/packages/astro/Flex/Cluster.astro +11 -0
- package/packages/astro/Flex/Flex.astro +14 -0
- package/packages/astro/Flex/index.js +2 -0
- package/packages/astro/Frame/Frame.astro +12 -0
- package/packages/astro/Frame/index.js +1 -0
- package/packages/astro/Grid/Grid.astro +13 -0
- package/packages/astro/Grid/GridItem.astro +15 -0
- package/packages/astro/Grid/index.js +2 -0
- package/packages/astro/Icon/Icon.astro +25 -0
- package/packages/astro/Icon/SVG.astro +30 -0
- package/packages/astro/Icon/index.js +2 -0
- package/packages/astro/Layer/Layer.astro +15 -0
- package/packages/astro/Layer/index.js +1 -0
- package/packages/astro/LinkBox/LinkBox.astro +16 -0
- package/packages/astro/LinkBox/index.js +1 -0
- package/packages/astro/Lism/Link.astro +10 -0
- package/packages/astro/Lism/Lism.astro +14 -0
- package/packages/astro/Lism/Media.astro +24 -0
- package/packages/astro/Lism/Text.astro +10 -0
- package/packages/astro/Lism/index.js +4 -0
- package/packages/astro/Modal/Body.astro +14 -0
- package/packages/astro/Modal/CloseIconBtn.astro +24 -0
- package/packages/astro/Modal/Footer.astro +14 -0
- package/packages/astro/Modal/Header.astro +14 -0
- package/packages/astro/Modal/Inner.astro +13 -0
- package/packages/astro/Modal/Modal.astro +20 -0
- package/packages/astro/Modal/index.js +8 -0
- package/packages/astro/OverlayLink/OverlayLink.astro +10 -0
- package/packages/astro/OverlayLink/index.js +1 -0
- package/packages/astro/Spacer/Spacer.astro +11 -0
- package/packages/astro/Spacer/index.js +1 -0
- package/packages/astro/Stack/Stack.astro +7 -0
- package/packages/astro/Stack/index.js +1 -0
- package/packages/astro/Tabs/Tab.astro +26 -0
- package/packages/astro/Tabs/TabItem.astro +8 -0
- package/packages/astro/Tabs/TabList.astro +8 -0
- package/packages/astro/Tabs/TabPanel.astro +22 -0
- package/packages/astro/Tabs/Tabs.astro +60 -0
- package/packages/astro/Tabs/index.js +7 -0
- package/packages/astro/Tabs/transformTabitems.js +40 -0
- package/packages/astro/Test/Test.astro +14 -0
- package/packages/astro/Test/TestItem.astro +14 -0
- package/packages/astro/Test/index.js +4 -0
- package/packages/astro/WithSide/WithSide.astro +12 -0
- package/packages/astro/WithSide/index.js +1 -0
- package/packages/astro/helper/index.js +6 -0
- package/packages/astro/index.js +29 -0
- package/packages/astro/types.ts +28 -0
- package/packages/next-js/Accordion/Accordion.jsx +19 -0
- package/packages/next-js/Accordion/index.js +2 -0
- package/src/scss/__memo/_lh-auto-all.scss +46 -0
- package/src/scss/__memo/_lh-auto-h.scss +50 -0
- package/src/scss/__memo/_lh-manual.scss +58 -0
- package/src/scss/_auto_output.scss +194 -0
- package/src/scss/_mixin.scss +38 -0
- package/src/scss/_props.scss +771 -0
- package/src/scss/_query.scss +40 -0
- package/src/scss/_setting.scss +22 -0
- package/src/scss/all.scss +10 -0
- package/src/scss/all_no_layer.scss +26 -0
- package/src/scss/base/_dom.scss +140 -0
- package/src/scss/base/_tokens.scss +307 -0
- package/src/scss/base/index.scss +70 -0
- package/src/scss/dynamic/index.scss +4 -0
- package/src/scss/layout/__switcher.scss +11 -0
- package/src/scss/layout/_center.scss +5 -0
- package/src/scss/layout/_columns.scss +18 -0
- package/src/scss/layout/_divider.scss +6 -0
- package/src/scss/layout/_flex.scss +12 -0
- package/src/scss/layout/_frame.scss +13 -0
- package/src/scss/layout/_grid.scss +16 -0
- package/src/scss/layout/_icon.scss +19 -0
- package/src/scss/layout/_spacer.scss +3 -0
- package/src/scss/layout/_stack.scss +4 -0
- package/src/scss/layout/_withSide.scss +20 -0
- package/src/scss/layout/index.scss +12 -0
- package/src/scss/props/__/__aspect.bkup.scss +36 -0
- package/src/scss/props/__/__border.bkup.scss +197 -0
- package/src/scss/props/__/__color.bkup.scss +67 -0
- package/src/scss/props/__/__display.bukup.scss +11 -0
- package/src/scss/props/__/__flex-props.bkup.scss +66 -0
- package/src/scss/props/__/__gap.bkup.scss +18 -0
- package/src/scss/props/__/__grid-props.bkup.scss +158 -0
- package/src/scss/props/__/__margin.bkup.scss +92 -0
- package/src/scss/props/__/__padding.bkup.scss +93 -0
- package/src/scss/props/__/__place.bkup.scss +74 -0
- package/src/scss/props/__/__radius.bkup.scss +27 -0
- package/src/scss/props/__/__sizing.bkup.scss +45 -0
- package/src/scss/props/__/__typography.bkup.scss +146 -0
- package/src/scss/props/__memo.scss +15 -0
- package/src/scss/props/_border.scss +67 -0
- package/src/scss/props/_color.scss +16 -0
- package/src/scss/props/_hover.scss +73 -0
- package/src/scss/props/_transition.scss +20 -0
- package/src/scss/props/index.scss +12 -0
- package/src/scss/reset.scss +99 -0
- package/src/scss/state/__container.bkup.scss +145 -0
- package/src/scss/state/__flow.bkup.scss +52 -0
- package/src/scss/state/_container.scss +45 -0
- package/src/scss/state/_flow.scss +45 -0
- package/src/scss/state/_gutter.scss +3 -0
- package/src/scss/state/_has-divider.scss +30 -0
- package/src/scss/state/_layer.scss +7 -0
- package/src/scss/state/_linkbox.scss +18 -0
- package/src/scss/state/_size.scss +60 -0
- package/src/scss/state/index.scss +8 -0
- package/src/scss/utility/index.scss +76 -0
- package/src/scss/with_layer.scss +28 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lism-css",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "ddryo",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"keywords": [
|
|
11
11
|
"css-framework",
|
|
12
|
-
"
|
|
12
|
+
"react",
|
|
13
13
|
"design-system"
|
|
14
14
|
],
|
|
15
15
|
"scripts": {
|
|
@@ -17,46 +17,46 @@
|
|
|
17
17
|
"build": "vite build && npm run build:css",
|
|
18
18
|
"build:vite": "vite build",
|
|
19
19
|
"build:css": "node scss-builder.cjs",
|
|
20
|
+
"lint:style": "stylelint '**/*.{css,scss}'",
|
|
20
21
|
"preview": "vite preview"
|
|
21
22
|
},
|
|
22
23
|
"files": [
|
|
23
24
|
"dist",
|
|
24
|
-
"
|
|
25
|
-
"src
|
|
25
|
+
"packages",
|
|
26
|
+
"src/scss"
|
|
26
27
|
],
|
|
27
28
|
"type": "module",
|
|
28
29
|
"main": "./dist/index.js",
|
|
29
30
|
"exports": {
|
|
30
31
|
".": "./dist/index.js",
|
|
31
32
|
"./*": "./dist/*",
|
|
32
|
-
"./
|
|
33
|
-
"./scss/*": "./src/scss/*",
|
|
33
|
+
"./react": "./dist/index.js",
|
|
34
34
|
"./react/*": "./dist/components/*",
|
|
35
|
-
"./
|
|
35
|
+
"./next-js/*": "./packages/next-js/*",
|
|
36
|
+
"./astro": "./packages/astro/index.js",
|
|
37
|
+
"./astro/*": "./packages/astro/*",
|
|
38
|
+
"./scss/*": "./src/scss/*",
|
|
39
|
+
"./all_with_layer.css": "./dist/css/all_with_layer.css",
|
|
40
|
+
"./all.css": "./dist/css/all.css"
|
|
36
41
|
},
|
|
37
42
|
"homepage": "https://www.lism.style",
|
|
38
43
|
"repository": {
|
|
39
44
|
"type": "git",
|
|
40
|
-
"url": "https://github.com/
|
|
41
|
-
"directory": "packages/lism-core"
|
|
45
|
+
"url": "https://github.com/lism-ui/lism-css/tree/main/packages/lism-css"
|
|
42
46
|
},
|
|
43
47
|
"bugs": {
|
|
44
|
-
"url": "https://github.com/
|
|
48
|
+
"url": "https://github.com/lism-ui/lism-css/issues"
|
|
45
49
|
},
|
|
46
50
|
"devDependencies": {
|
|
47
|
-
"@babel/cli": "^7.
|
|
48
|
-
"@babel/core": "^7.
|
|
49
|
-
"@babel/preset-env": "^7.
|
|
50
|
-
"@babel/preset-react": "^7.
|
|
51
|
+
"@babel/cli": "^7.27.2",
|
|
52
|
+
"@babel/core": "^7.27.3",
|
|
53
|
+
"@babel/preset-env": "^7.27.2",
|
|
54
|
+
"@babel/preset-react": "^7.27.1",
|
|
51
55
|
"@rollup/plugin-babel": "^6.0.4",
|
|
52
|
-
"@
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"rollup": "^4.12.0",
|
|
57
|
-
"vite": "^4.3.9",
|
|
58
|
-
"vite-plugin-svgr": "^3.2.0",
|
|
59
|
-
"vite-react-jsx": "^1.1.2"
|
|
56
|
+
"@vitejs/plugin-react-swc": "^3.10.0",
|
|
57
|
+
"glob": "^11.0.2",
|
|
58
|
+
"rollup": "^4.41.1",
|
|
59
|
+
"vite": "^6.3.5"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
62
|
"react": ">=18.0.0"
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
import type { LismProps } from '../types';
|
|
3
|
+
import { Lism } from '../Lism';
|
|
4
|
+
import { Grid } from '../Grid';
|
|
5
|
+
import { defaultProps } from '../../../dist/components/Accordion/getProps';
|
|
6
|
+
|
|
7
|
+
interface Props extends LismProps {}
|
|
8
|
+
const { isFlow, innerProps, ...props } = Astro.props || {};
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
<Grid {...defaultProps.body} {...props}>
|
|
12
|
+
<Lism isFlow={isFlow} {...defaultProps.inner} {...innerProps}>
|
|
13
|
+
<slot />
|
|
14
|
+
</Lism>
|
|
15
|
+
</Grid>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
import type { LismProps } from '../types';
|
|
3
|
+
import { Flex } from '../Flex';
|
|
4
|
+
import { defaultProps } from '../../../dist/components/Accordion/getProps';
|
|
5
|
+
|
|
6
|
+
interface Props extends LismProps {}
|
|
7
|
+
|
|
8
|
+
const props = Astro.props || {};
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
<Flex tag='summary' {...defaultProps.header} {...props}>
|
|
12
|
+
<slot />
|
|
13
|
+
</Flex>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
---
|
|
2
|
+
import type { LismProps } from '../types';
|
|
3
|
+
import { Lism } from '../Lism';
|
|
4
|
+
import { Icon } from '../Icon';
|
|
5
|
+
import { getAccIconProps } from '../../../dist/components/Accordion/getProps';
|
|
6
|
+
|
|
7
|
+
// Propsの定義
|
|
8
|
+
interface Props extends LismProps {
|
|
9
|
+
icon?: string;
|
|
10
|
+
size?: string;
|
|
11
|
+
iconProps?: Object;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const { viewBox, icon = 'caret-down', ...props } = Astro.props || {};
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
<Lism {...getAccIconProps(props)}>
|
|
18
|
+
{Astro.slots.has('default') ? <slot /> : <Icon viewBox={viewBox} icon={icon} />}
|
|
19
|
+
</Lism>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---
|
|
2
|
+
import type { LismProps } from '../types';
|
|
3
|
+
import { Lism } from '../Lism';
|
|
4
|
+
import { defaultProps } from '../../../dist/components/Accordion/getProps';
|
|
5
|
+
|
|
6
|
+
interface Props extends LismProps {}
|
|
7
|
+
const props = Astro.props || {};
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
<Lism {...defaultProps.label} {...props}>
|
|
11
|
+
<slot />
|
|
12
|
+
</Lism>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
import type { LismProps } from '../types';
|
|
3
|
+
import getLismProps from '../../../dist/lib/getLismProps';
|
|
4
|
+
import { getAccProps } from '../../../dist/components/Accordion/getProps';
|
|
5
|
+
|
|
6
|
+
// Propsの定義
|
|
7
|
+
interface Props extends LismProps {
|
|
8
|
+
duration?: string | number;
|
|
9
|
+
}
|
|
10
|
+
const props = Astro.props || {};
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
<details {...getLismProps(getAccProps(props))}>
|
|
14
|
+
<slot />
|
|
15
|
+
</details>
|
|
16
|
+
|
|
17
|
+
<script>
|
|
18
|
+
// import setEvent from './setEvent';
|
|
19
|
+
import setAccordion from '../../../dist/components/Accordion/setAccordion';
|
|
20
|
+
setAccordion();
|
|
21
|
+
</script>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
---
|
|
2
|
+
import type { LismProps } from '../types';
|
|
3
|
+
import { Lism } from '../Lism';
|
|
4
|
+
import getProps from '../../../dist/components/Box/getProps';
|
|
5
|
+
|
|
6
|
+
// Propsの定義
|
|
7
|
+
interface Props extends LismProps {}
|
|
8
|
+
const props = Astro.props || {};
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
<Lism {...getProps(props)}><slot /></Lism>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Box } from './Box.astro';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
---
|
|
2
|
+
import type { LismProps } from '../types';
|
|
3
|
+
import { Grid } from '../Grid';
|
|
4
|
+
// import getProps from '../../../dist/components/Center/getProps';
|
|
5
|
+
|
|
6
|
+
// Propsの定義
|
|
7
|
+
interface Props extends LismProps {}
|
|
8
|
+
const props = Astro.props || {};
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
<Grid _grid='center' {...props}><slot /></Grid>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Center } from './Center.astro';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
---
|
|
2
|
+
import type { LismProps } from '../types';
|
|
3
|
+
import { Grid } from '../Grid';
|
|
4
|
+
import getProps from '../../../dist/components/Columns/getProps';
|
|
5
|
+
|
|
6
|
+
// Propsの定義
|
|
7
|
+
interface Props extends LismProps {}
|
|
8
|
+
const props = Astro.props || {};
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
<Grid _grid='columns' {...getProps(props)}><slot /></Grid>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Columns } from './Columns.astro';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
---
|
|
2
|
+
import type { LismProps } from '../types';
|
|
3
|
+
import { Lism } from '../Lism';
|
|
4
|
+
|
|
5
|
+
interface Props extends LismProps {}
|
|
6
|
+
|
|
7
|
+
const { layout, size = true, ...props } = Astro.props || {};
|
|
8
|
+
const Layout = layout || Lism;
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
<Layout isContainer={size} {...props}><slot /></Layout>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Container } from './Container.astro';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
import type { LismProps } from '../types';
|
|
3
|
+
import { Lism } from '../Lism';
|
|
4
|
+
import getProps from '../../../dist/components/Decorator/getProps';
|
|
5
|
+
|
|
6
|
+
// Propsの定義
|
|
7
|
+
interface Props extends LismProps {}
|
|
8
|
+
const props = Astro.props || {};
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
<Lism {...getProps(props)}>
|
|
12
|
+
<slot />
|
|
13
|
+
</Lism>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Decorator } from './Decorator.astro';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---
|
|
2
|
+
import type { LismProps } from '../types';
|
|
3
|
+
import { Lism } from '../Lism';
|
|
4
|
+
import { getDividerProps } from '../../../dist/components/Divider/getProps';
|
|
5
|
+
|
|
6
|
+
// Propsの定義
|
|
7
|
+
interface Props extends LismProps {}
|
|
8
|
+
|
|
9
|
+
const props = Astro.props || {};
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
<Lism skipState {...getDividerProps(props)} />
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Divider } from './Divider.astro';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---
|
|
2
|
+
import type { LismProps } from '../types';
|
|
3
|
+
import { Lism } from '../Lism';
|
|
4
|
+
import getContent from '../../../dist/components/Dummy/getContent';
|
|
5
|
+
|
|
6
|
+
// Propsの定義
|
|
7
|
+
interface Props extends LismProps {}
|
|
8
|
+
const { tag = 'p', pre = '', length = 'm', lang = 'en', offset = 0, ...props } = Astro.props || {};
|
|
9
|
+
const content = getContent({ tag, pre, lang, length, offset });
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
<Lism tag={tag} {...props} set:html={content} />
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Dummy } from './Dummy.astro';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
import type { LismProps } from '../types';
|
|
3
|
+
import { Lism } from '../Lism';
|
|
4
|
+
import { getFlexProps } from '../../../dist/components/Flex/getProps';
|
|
5
|
+
|
|
6
|
+
// Propsの定義
|
|
7
|
+
interface Props extends LismProps {}
|
|
8
|
+
|
|
9
|
+
let props = Astro.props || {};
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
<Lism {...getFlexProps(props)}>
|
|
13
|
+
<slot />
|
|
14
|
+
</Lism>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---
|
|
2
|
+
import type { LismProps } from '../types';
|
|
3
|
+
import { Lism } from '../Lism';
|
|
4
|
+
import getProps from '../../../dist/components/Frame/getProps';
|
|
5
|
+
|
|
6
|
+
// Propsの定義
|
|
7
|
+
interface Props extends LismProps {}
|
|
8
|
+
|
|
9
|
+
const props = Astro.props || {};
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
<Lism {...getProps(props)}><slot /></Lism>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Frame } from './Frame.astro';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
import type { LismProps } from '../types';
|
|
3
|
+
import { Lism } from '../Lism';
|
|
4
|
+
import { getGridProps } from '../../../dist/components/Grid/getProps';
|
|
5
|
+
|
|
6
|
+
// Propsの定義
|
|
7
|
+
interface Props extends LismProps {}
|
|
8
|
+
let props = Astro.props;
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
<Lism {...getGridProps(props)}>
|
|
12
|
+
<slot />
|
|
13
|
+
</Lism>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
import type { LismProps } from '../types';
|
|
3
|
+
import { Lism } from '../Lism';
|
|
4
|
+
import { getGridItemProps } from '../../../dist/components/Grid/getProps';
|
|
5
|
+
|
|
6
|
+
// Propsの定義
|
|
7
|
+
interface Props extends LismProps {}
|
|
8
|
+
|
|
9
|
+
let { layout, ...props } = Astro.props;
|
|
10
|
+
const LismComponent = layout || Lism;
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
<LismComponent {...getGridItemProps(props)}>
|
|
14
|
+
<slot />
|
|
15
|
+
</LismComponent>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
import type { LismProps } from '../types';
|
|
3
|
+
import getLismProps from '../../../dist/lib/getLismProps';
|
|
4
|
+
import getProps from '../../../dist/components/Icon/getProps';
|
|
5
|
+
import SVG from './SVG.astro';
|
|
6
|
+
|
|
7
|
+
// Propsの定義
|
|
8
|
+
interface Props extends LismProps {}
|
|
9
|
+
|
|
10
|
+
const props = Astro.props || {};
|
|
11
|
+
|
|
12
|
+
// const hasChildren = Astro.slots.has('default');
|
|
13
|
+
// let { IconTag, iconProps, otherProps } = getProps(props, hasChildren);
|
|
14
|
+
// if (IconTag === '_SVG_') IconTag = SVG;
|
|
15
|
+
|
|
16
|
+
let { Component, lismProps, exProps } = getProps(props);
|
|
17
|
+
|
|
18
|
+
if (Component === '_SVG_') {
|
|
19
|
+
Component = SVG;
|
|
20
|
+
}
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
<Component {...getLismProps(lismProps)} {...exProps}>
|
|
24
|
+
<slot />
|
|
25
|
+
</Component>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
---
|
|
2
|
+
// Propsの定義
|
|
3
|
+
interface Props {
|
|
4
|
+
size?: string | number;
|
|
5
|
+
fill?: string;
|
|
6
|
+
viewBox?: string;
|
|
7
|
+
path?: string;
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}
|
|
10
|
+
let {
|
|
11
|
+
size = '1em',
|
|
12
|
+
fill = 'currentColor',
|
|
13
|
+
viewBox = '0 0 24 24',
|
|
14
|
+
path,
|
|
15
|
+
...props
|
|
16
|
+
} = Astro.props || {};
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
<svg
|
|
20
|
+
xmlns='http://www.w3.org/2000/svg'
|
|
21
|
+
viewBox={viewBox}
|
|
22
|
+
width={size}
|
|
23
|
+
height={size}
|
|
24
|
+
fill={fill}
|
|
25
|
+
focusable='false'
|
|
26
|
+
{...props}
|
|
27
|
+
>
|
|
28
|
+
{path && <path d={path} />}
|
|
29
|
+
<slot />
|
|
30
|
+
</svg>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
import type { LismProps } from '../types';
|
|
3
|
+
import { Lism } from '../Lism';
|
|
4
|
+
import { getLayerProps } from '../../../dist/components/Layer/getProps';
|
|
5
|
+
|
|
6
|
+
// Propsの定義
|
|
7
|
+
interface Props extends LismProps {}
|
|
8
|
+
|
|
9
|
+
let { layout, ...props } = Astro.props || {};
|
|
10
|
+
const Layout = layout || Lism;
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
<Layout isLayer {...getLayerProps(props)}>
|
|
14
|
+
<slot />
|
|
15
|
+
</Layout>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Layer } from './Layer.astro';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
import type { LismProps } from '../types';
|
|
3
|
+
import { Lism } from '../Lism';
|
|
4
|
+
// import getProps from '../../../dist/components/LinkBox/getProps';
|
|
5
|
+
|
|
6
|
+
interface Props extends LismProps {}
|
|
7
|
+
const { layout, ...props } = Astro.props || {};
|
|
8
|
+
|
|
9
|
+
const hasHref = !!props.href;
|
|
10
|
+
const tag = hasHref ? 'a' : 'div';
|
|
11
|
+
const LismComponent = layout || Lism;
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
<LismComponent isLinkBox hov='fade' tag={tag} {...props}>
|
|
15
|
+
<slot />
|
|
16
|
+
</LismComponent>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as LinkBox } from './LinkBox.astro';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
import type { LismProps } from '../types';
|
|
3
|
+
import getLismProps from '../../../dist/lib/getLismProps';
|
|
4
|
+
|
|
5
|
+
// Propsの定義
|
|
6
|
+
interface Props extends LismProps {}
|
|
7
|
+
|
|
8
|
+
const { as, exProps, tag, ...props } = Astro.props || {};
|
|
9
|
+
const JSX = as || tag || 'div';
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
<JSX {...getLismProps(props)} {...exProps}>
|
|
13
|
+
<slot />
|
|
14
|
+
</JSX>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
import type { LismProps } from '../types';
|
|
3
|
+
import getLismProps from '../../../dist/lib/getLismProps';
|
|
4
|
+
import getMediaProps from '../../../dist/components/getMediaProps';
|
|
5
|
+
import { Image } from 'astro:assets';
|
|
6
|
+
|
|
7
|
+
// Propsの定義
|
|
8
|
+
interface Props extends LismProps {
|
|
9
|
+
// src?: string;
|
|
10
|
+
// alt?: string;
|
|
11
|
+
// width?: string | number;
|
|
12
|
+
// height?: string | number;
|
|
13
|
+
}
|
|
14
|
+
const { as, exProps, tag, ...props } = Astro.props || {};
|
|
15
|
+
|
|
16
|
+
let JSX = as || tag || 'img';
|
|
17
|
+
if (JSX === 'AstroImage') {
|
|
18
|
+
JSX = Image;
|
|
19
|
+
}
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
<JSX {...getLismProps(getMediaProps(props))} {...exProps}>
|
|
23
|
+
<slot />
|
|
24
|
+
</JSX>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
import type { LismProps } from '../types';
|
|
3
|
+
import { defaultProps } from '../../../dist/components/Modal/getProps';
|
|
4
|
+
import { Lism } from '../Lism';
|
|
5
|
+
|
|
6
|
+
// Propsの定義
|
|
7
|
+
interface Props extends LismProps {}
|
|
8
|
+
const { layout, ...props } = Astro.props || {};
|
|
9
|
+
const Layout = layout || Lism;
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
<Layout {...defaultProps.body} {...props}>
|
|
13
|
+
<slot />
|
|
14
|
+
</Layout>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
import type { LismProps } from '../types';
|
|
3
|
+
import { defaultProps } from '../../../dist/components/Modal/getProps';
|
|
4
|
+
import { Lism } from '../Lism';
|
|
5
|
+
import { Icon } from '../Icon';
|
|
6
|
+
|
|
7
|
+
// Propsの定義
|
|
8
|
+
interface Props extends LismProps {}
|
|
9
|
+
const { modalId = '', icon, srText = 'Close', ...props } = Astro.props || {};
|
|
10
|
+
const hasSlot = Astro.slots.has('default');
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
<Lism data-modal-close={modalId} {...defaultProps.closeBtn} {...props}>
|
|
14
|
+
{
|
|
15
|
+
hasSlot ? (
|
|
16
|
+
<slot />
|
|
17
|
+
) : (
|
|
18
|
+
<>
|
|
19
|
+
<Icon icon={icon || 'x'} />
|
|
20
|
+
<span class='u--hidden'>{srText || 'Close'}</span>
|
|
21
|
+
</>
|
|
22
|
+
)
|
|
23
|
+
}
|
|
24
|
+
</Lism>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
import type { LismProps } from '../types';
|
|
3
|
+
import { defaultProps } from '../../../dist/components/Modal/getProps';
|
|
4
|
+
import { Lism } from '../Lism';
|
|
5
|
+
|
|
6
|
+
// Propsの定義
|
|
7
|
+
interface Props extends LismProps {}
|
|
8
|
+
const { layout, ...props } = Astro.props || {};
|
|
9
|
+
const Layout = layout || Lism;
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
<Layout {...defaultProps.footer} {...props}>
|
|
13
|
+
<slot />
|
|
14
|
+
</Layout>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
import type { LismProps } from '../types';
|
|
3
|
+
import { defaultProps } from '../../../dist/components/Modal/getProps';
|
|
4
|
+
import { Lism } from '../Lism';
|
|
5
|
+
|
|
6
|
+
// Propsの定義
|
|
7
|
+
interface Props extends LismProps {}
|
|
8
|
+
const { layout, ...props } = Astro.props || {};
|
|
9
|
+
const Layout = layout || Lism;
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
<Layout {...defaultProps.header} {...props}>
|
|
13
|
+
<slot />
|
|
14
|
+
</Layout>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
import type { LismProps } from '../types';
|
|
3
|
+
import { defaultProps } from '../../../dist/components/Modal/getProps';
|
|
4
|
+
import { Stack } from '../Stack';
|
|
5
|
+
|
|
6
|
+
// Propsの定義
|
|
7
|
+
interface Props extends LismProps {}
|
|
8
|
+
const props = Astro.props || {};
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
<Stack {...defaultProps.inner} {...props}>
|
|
12
|
+
<slot />
|
|
13
|
+
</Stack>
|