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.
Files changed (234) hide show
  1. package/README.md +52 -0
  2. package/dist/_virtual/jsx-runtime.js +5 -0
  3. package/dist/_virtual/jsx-runtime2.js +4 -0
  4. package/dist/_virtual/react-jsx-runtime.development.js +4 -0
  5. package/dist/_virtual/react-jsx-runtime.production.min.js +4 -0
  6. package/dist/components/Accordion/AccIcon.js +10 -0
  7. package/dist/components/Accordion/getProps.js +29 -0
  8. package/dist/components/Accordion/index.js +6 -0
  9. package/dist/components/Accordion/index2.js +32 -0
  10. package/dist/components/Accordion/setAccordion.js +37 -0
  11. package/dist/components/Accordion/style.css +1 -0
  12. package/dist/components/Box/getProps.js +7 -0
  13. package/dist/components/Box/index.js +9 -0
  14. package/dist/components/Center/index.js +8 -0
  15. package/dist/components/Columns/getProps.js +6 -0
  16. package/dist/components/Columns/index.js +9 -0
  17. package/dist/components/Container/index.js +9 -0
  18. package/dist/components/Decorator/getProps.js +15 -0
  19. package/dist/components/Decorator/index.js +9 -0
  20. package/dist/components/Divider/getProps.js +11 -0
  21. package/dist/components/Divider/index.js +9 -0
  22. package/dist/components/Dummy/getContent.js +9 -0
  23. package/dist/components/Dummy/index.js +17 -0
  24. package/dist/components/Dummy/texts.js +24 -0
  25. package/dist/components/Flex/Cluster.js +8 -0
  26. package/dist/components/Flex/FlexItem.js +9 -0
  27. package/dist/components/Flex/getProps.js +13 -0
  28. package/dist/components/Flex/index.js +9 -0
  29. package/dist/components/Frame/getProps.js +7 -0
  30. package/dist/components/Frame/index.js +9 -0
  31. package/dist/components/Grid/GridItem.js +10 -0
  32. package/dist/components/Grid/getProps.js +28 -0
  33. package/dist/components/Grid/index.js +9 -0
  34. package/dist/components/Icon/SVG.js +29 -0
  35. package/dist/components/Icon/getProps.js +34 -0
  36. package/dist/components/Icon/index.js +11 -0
  37. package/dist/components/Icon/presets.js +193 -0
  38. package/dist/components/Layer/getProps.js +9 -0
  39. package/dist/components/Layer/index.js +10 -0
  40. package/dist/components/LinkBox/index.js +9 -0
  41. package/dist/components/Lism/Link.js +8 -0
  42. package/dist/components/Lism/Media.js +10 -0
  43. package/dist/components/Lism/Text.js +8 -0
  44. package/dist/components/Lism/index.js +9 -0
  45. package/dist/components/Modal/Body.js +10 -0
  46. package/dist/components/Modal/CloseIconBtn.js +19 -0
  47. package/dist/components/Modal/Footer.js +10 -0
  48. package/dist/components/Modal/Header.js +10 -0
  49. package/dist/components/Modal/Inner.js +9 -0
  50. package/dist/components/Modal/getProps.js +19 -0
  51. package/dist/components/Modal/index.js +10 -0
  52. package/dist/components/Modal/index2.js +17 -0
  53. package/dist/components/Modal/setModal.js +37 -0
  54. package/dist/components/Modal/style.css +1 -0
  55. package/dist/components/Spacer/getProps.js +21 -0
  56. package/dist/components/Spacer/index.js +9 -0
  57. package/dist/components/Stack/index.js +8 -0
  58. package/dist/components/Tabs/Tab.js +22 -0
  59. package/dist/components/Tabs/TabItem.js +7 -0
  60. package/dist/components/Tabs/TabList.js +8 -0
  61. package/dist/components/Tabs/TabPanel.js +19 -0
  62. package/dist/components/Tabs/getProps.js +17 -0
  63. package/dist/components/Tabs/index.js +9 -0
  64. package/dist/components/Tabs/index2.js +55 -0
  65. package/dist/components/Tabs/setEvent.js +29 -0
  66. package/dist/components/Tabs/style.css +1 -0
  67. package/dist/components/WithSide/getProps.js +14 -0
  68. package/dist/components/WithSide/index.js +9 -0
  69. package/dist/components/getFilterProps.js +23 -0
  70. package/dist/components/getInsetProps.js +8 -0
  71. package/dist/components/getMediaProps.js +14 -0
  72. package/dist/components/getTransformProps.js +8 -0
  73. package/dist/config/prop_list.js +395 -0
  74. package/dist/config/tokens.js +67 -0
  75. package/dist/config.js +9 -0
  76. package/dist/css/all.css +1 -0
  77. package/dist/css/all_no_layer.css +1 -0
  78. package/dist/css/base.css +1 -0
  79. package/dist/css/dynamic.css +1 -0
  80. package/dist/css/layout.css +1 -0
  81. package/dist/css/props.css +1 -0
  82. package/dist/css/reset.css +1 -0
  83. package/dist/css/state.css +1 -0
  84. package/dist/css/utility.css +1 -0
  85. package/dist/css/with_layer.css +1 -0
  86. package/dist/index.js +54 -0
  87. package/dist/lib/getBpData.js +13 -0
  88. package/dist/lib/getLismProps.js +239 -0
  89. package/dist/lib/getMaybeCssVar.js +61 -0
  90. package/dist/lib/getMaybeUtilValue.js +6 -0
  91. package/dist/lib/helper/atts.js +11 -0
  92. package/dist/lib/helper/filterEmptyObj.js +9 -0
  93. package/dist/lib/helper/hasKeys.js +6 -0
  94. package/dist/lib/helper/isEmptyObj.js +6 -0
  95. package/dist/lib/helper/isNumStr.js +6 -0
  96. package/dist/lib/helper/splitWithComma.js +6 -0
  97. package/dist/lib/isPresetValue.js +6 -0
  98. package/dist/lib/isTokenValue.js +9 -0
  99. package/dist/node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.development.js +604 -0
  100. package/dist/node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.production.min.js +28 -0
  101. package/dist/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js +10 -0
  102. package/dist/scripts/accordion.js +4 -0
  103. package/dist/scripts/modal.js +4 -0
  104. package/dist/scripts/tabs.js +6 -0
  105. package/package.json +22 -22
  106. package/packages/astro/Accordion/AccBody.astro +15 -0
  107. package/packages/astro/Accordion/AccHeader.astro +13 -0
  108. package/packages/astro/Accordion/AccIcon.astro +19 -0
  109. package/packages/astro/Accordion/AccLabel.astro +12 -0
  110. package/packages/astro/Accordion/Accordion.astro +21 -0
  111. package/packages/astro/Accordion/__setEvent.js +2 -0
  112. package/packages/astro/Accordion/index.js +7 -0
  113. package/packages/astro/Box/Box.astro +11 -0
  114. package/packages/astro/Box/index.js +1 -0
  115. package/packages/astro/Center/Center.astro +11 -0
  116. package/packages/astro/Center/index.js +1 -0
  117. package/packages/astro/Columns/Columns.astro +11 -0
  118. package/packages/astro/Columns/index.js +1 -0
  119. package/packages/astro/Container/Container.astro +11 -0
  120. package/packages/astro/Container/index.js +1 -0
  121. package/packages/astro/Decorator/Decorator.astro +13 -0
  122. package/packages/astro/Decorator/index.js +1 -0
  123. package/packages/astro/Divider/Divider.astro +12 -0
  124. package/packages/astro/Divider/index.js +1 -0
  125. package/packages/astro/Dummy/Dummy.astro +12 -0
  126. package/packages/astro/Dummy/index.js +1 -0
  127. package/packages/astro/Flex/Cluster.astro +11 -0
  128. package/packages/astro/Flex/Flex.astro +14 -0
  129. package/packages/astro/Flex/index.js +2 -0
  130. package/packages/astro/Frame/Frame.astro +12 -0
  131. package/packages/astro/Frame/index.js +1 -0
  132. package/packages/astro/Grid/Grid.astro +13 -0
  133. package/packages/astro/Grid/GridItem.astro +15 -0
  134. package/packages/astro/Grid/index.js +2 -0
  135. package/packages/astro/Icon/Icon.astro +25 -0
  136. package/packages/astro/Icon/SVG.astro +30 -0
  137. package/packages/astro/Icon/index.js +2 -0
  138. package/packages/astro/Layer/Layer.astro +15 -0
  139. package/packages/astro/Layer/index.js +1 -0
  140. package/packages/astro/LinkBox/LinkBox.astro +16 -0
  141. package/packages/astro/LinkBox/index.js +1 -0
  142. package/packages/astro/Lism/Link.astro +10 -0
  143. package/packages/astro/Lism/Lism.astro +14 -0
  144. package/packages/astro/Lism/Media.astro +24 -0
  145. package/packages/astro/Lism/Text.astro +10 -0
  146. package/packages/astro/Lism/index.js +4 -0
  147. package/packages/astro/Modal/Body.astro +14 -0
  148. package/packages/astro/Modal/CloseIconBtn.astro +24 -0
  149. package/packages/astro/Modal/Footer.astro +14 -0
  150. package/packages/astro/Modal/Header.astro +14 -0
  151. package/packages/astro/Modal/Inner.astro +13 -0
  152. package/packages/astro/Modal/Modal.astro +20 -0
  153. package/packages/astro/Modal/index.js +8 -0
  154. package/packages/astro/OverlayLink/OverlayLink.astro +10 -0
  155. package/packages/astro/OverlayLink/index.js +1 -0
  156. package/packages/astro/Spacer/Spacer.astro +11 -0
  157. package/packages/astro/Spacer/index.js +1 -0
  158. package/packages/astro/Stack/Stack.astro +7 -0
  159. package/packages/astro/Stack/index.js +1 -0
  160. package/packages/astro/Tabs/Tab.astro +26 -0
  161. package/packages/astro/Tabs/TabItem.astro +8 -0
  162. package/packages/astro/Tabs/TabList.astro +8 -0
  163. package/packages/astro/Tabs/TabPanel.astro +22 -0
  164. package/packages/astro/Tabs/Tabs.astro +60 -0
  165. package/packages/astro/Tabs/index.js +7 -0
  166. package/packages/astro/Tabs/transformTabitems.js +40 -0
  167. package/packages/astro/Test/Test.astro +14 -0
  168. package/packages/astro/Test/TestItem.astro +14 -0
  169. package/packages/astro/Test/index.js +4 -0
  170. package/packages/astro/WithSide/WithSide.astro +12 -0
  171. package/packages/astro/WithSide/index.js +1 -0
  172. package/packages/astro/helper/index.js +6 -0
  173. package/packages/astro/index.js +29 -0
  174. package/packages/astro/types.ts +28 -0
  175. package/packages/next-js/Accordion/Accordion.jsx +19 -0
  176. package/packages/next-js/Accordion/index.js +2 -0
  177. package/src/scss/__memo/_lh-auto-all.scss +46 -0
  178. package/src/scss/__memo/_lh-auto-h.scss +50 -0
  179. package/src/scss/__memo/_lh-manual.scss +58 -0
  180. package/src/scss/_auto_output.scss +194 -0
  181. package/src/scss/_mixin.scss +38 -0
  182. package/src/scss/_props.scss +771 -0
  183. package/src/scss/_query.scss +40 -0
  184. package/src/scss/_setting.scss +22 -0
  185. package/src/scss/all.scss +10 -0
  186. package/src/scss/all_no_layer.scss +26 -0
  187. package/src/scss/base/_dom.scss +140 -0
  188. package/src/scss/base/_tokens.scss +307 -0
  189. package/src/scss/base/index.scss +70 -0
  190. package/src/scss/dynamic/index.scss +4 -0
  191. package/src/scss/layout/__switcher.scss +11 -0
  192. package/src/scss/layout/_center.scss +5 -0
  193. package/src/scss/layout/_columns.scss +18 -0
  194. package/src/scss/layout/_divider.scss +6 -0
  195. package/src/scss/layout/_flex.scss +12 -0
  196. package/src/scss/layout/_frame.scss +13 -0
  197. package/src/scss/layout/_grid.scss +16 -0
  198. package/src/scss/layout/_icon.scss +19 -0
  199. package/src/scss/layout/_spacer.scss +3 -0
  200. package/src/scss/layout/_stack.scss +4 -0
  201. package/src/scss/layout/_withSide.scss +20 -0
  202. package/src/scss/layout/index.scss +12 -0
  203. package/src/scss/props/__/__aspect.bkup.scss +36 -0
  204. package/src/scss/props/__/__border.bkup.scss +197 -0
  205. package/src/scss/props/__/__color.bkup.scss +67 -0
  206. package/src/scss/props/__/__display.bukup.scss +11 -0
  207. package/src/scss/props/__/__flex-props.bkup.scss +66 -0
  208. package/src/scss/props/__/__gap.bkup.scss +18 -0
  209. package/src/scss/props/__/__grid-props.bkup.scss +158 -0
  210. package/src/scss/props/__/__margin.bkup.scss +92 -0
  211. package/src/scss/props/__/__padding.bkup.scss +93 -0
  212. package/src/scss/props/__/__place.bkup.scss +74 -0
  213. package/src/scss/props/__/__radius.bkup.scss +27 -0
  214. package/src/scss/props/__/__sizing.bkup.scss +45 -0
  215. package/src/scss/props/__/__typography.bkup.scss +146 -0
  216. package/src/scss/props/__memo.scss +15 -0
  217. package/src/scss/props/_border.scss +67 -0
  218. package/src/scss/props/_color.scss +16 -0
  219. package/src/scss/props/_hover.scss +73 -0
  220. package/src/scss/props/_transition.scss +20 -0
  221. package/src/scss/props/index.scss +12 -0
  222. package/src/scss/reset.scss +99 -0
  223. package/src/scss/state/__container.bkup.scss +145 -0
  224. package/src/scss/state/__flow.bkup.scss +52 -0
  225. package/src/scss/state/_container.scss +45 -0
  226. package/src/scss/state/_flow.scss +45 -0
  227. package/src/scss/state/_gutter.scss +3 -0
  228. package/src/scss/state/_has-divider.scss +30 -0
  229. package/src/scss/state/_layer.scss +7 -0
  230. package/src/scss/state/_linkbox.scss +18 -0
  231. package/src/scss/state/_size.scss +60 -0
  232. package/src/scss/state/index.scss +8 -0
  233. package/src/scss/utility/index.scss +76 -0
  234. 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.1",
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
- "front-end",
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
- "src/scss",
25
- "src/**/style.scss"
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
- "./css/*": "./dist/css/*",
33
- "./scss/*": "./src/scss/*",
33
+ "./react": "./dist/index.js",
34
34
  "./react/*": "./dist/components/*",
35
- "./svg/*": "./src/svg/*"
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/ddryo/lism-test.git",
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/ddryo/lism-test/issues"
48
+ "url": "https://github.com/lism-ui/lism-css/issues"
45
49
  },
46
50
  "devDependencies": {
47
- "@babel/cli": "^7.23.9",
48
- "@babel/core": "^7.23.9",
49
- "@babel/preset-env": "^7.23.2",
50
- "@babel/preset-react": "^7.22.15",
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
- "@svgr/rollup": "^8.0.1",
53
- "@vitejs/plugin-react": "^4.2.1",
54
- "@vitejs/plugin-react-refresh": "^1.3.6",
55
- "@vitejs/plugin-react-swc": "^3.6.0",
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,2 @@
1
+ import setEvent from '@lism-ui/core/components/Accordion/setEvent';
2
+ export default setEvent;
@@ -0,0 +1,7 @@
1
+ import Root from './Accordion.astro';
2
+ import Header from './AccHeader.astro';
3
+ import Label from './AccLabel.astro';
4
+ import Icon from './AccIcon.astro';
5
+ import Body from './AccBody.astro';
6
+
7
+ export default { Root, Header, Body, Icon, Label };
@@ -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,11 @@
1
+ ---
2
+ import type { LismProps } from '../types';
3
+ import Flex from './Flex.astro';
4
+
5
+ interface Props extends LismProps {}
6
+ const props = Astro.props || {};
7
+ ---
8
+
9
+ <Flex variant='cluster' {...props}>
10
+ <slot />
11
+ </Flex>
@@ -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,2 @@
1
+ export { default as Flex } from './Flex.astro';
2
+ export { default as Cluster } from './Cluster.astro';
@@ -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,2 @@
1
+ export { default as Grid } from './Grid.astro';
2
+ export { default as GridItem } from './GridItem.astro';
@@ -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,2 @@
1
+ export { default as Icon } from './Icon.astro';
2
+ // export { default as SVG } from './SVG.astro';
@@ -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,10 @@
1
+ ---
2
+ import type { LismProps } from '../types';
3
+ import Lism from './Lism.astro';
4
+
5
+ interface Props extends LismProps {}
6
+ ---
7
+
8
+ <Lism skipState tag='a' {...Astro.props || {}}>
9
+ <slot />
10
+ </Lism>
@@ -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,10 @@
1
+ ---
2
+ import type { LismProps } from '../types';
3
+ import Lism from './Lism.astro';
4
+
5
+ interface Props extends LismProps {}
6
+ ---
7
+
8
+ <Lism skipState tag='p' {...Astro.props || {}}>
9
+ <slot />
10
+ </Lism>
@@ -0,0 +1,4 @@
1
+ export { default as Lism } from './Lism.astro';
2
+ export { default as Text } from './Text.astro';
3
+ export { default as Media } from './Media.astro';
4
+ export { default as Link } from './Link.astro';
@@ -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>