lism-css 0.11.0 → 0.12.0

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 (175) hide show
  1. package/README.ja.md +5 -5
  2. package/README.md +7 -7
  3. package/config/defaults/props.ts +16 -26
  4. package/config/defaults/states.ts +0 -28
  5. package/dist/components/{atomic/Media → Media}/Media.d.ts +2 -2
  6. package/dist/components/{atomic/Media → Media}/index.js +1 -1
  7. package/dist/components/atomic/Icon/getProps.d.ts +1 -1
  8. package/dist/components/atomic/Icon/index.d.ts +1 -1
  9. package/dist/components/index.d.ts +18 -18
  10. package/dist/components/index.js +62 -62
  11. package/dist/components/{Box → layout/Box}/Box.d.ts +2 -2
  12. package/dist/components/{Box → layout/Box}/index.js +1 -1
  13. package/dist/components/{Center → layout/Center}/Center.d.ts +2 -2
  14. package/dist/components/{Center → layout/Center}/index.js +1 -1
  15. package/dist/components/{Cluster → layout/Cluster}/Cluster.d.ts +2 -2
  16. package/dist/components/{Cluster → layout/Cluster}/index.js +1 -1
  17. package/dist/components/{Columns → layout/Columns}/Columns.d.ts +2 -2
  18. package/dist/components/{Columns → layout/Columns}/index.js +1 -1
  19. package/dist/components/{Flex → layout/Flex}/Flex.d.ts +2 -2
  20. package/dist/components/{Flex → layout/Flex}/index.js +1 -1
  21. package/dist/components/{Flow → layout/Flow}/Flow.d.ts +2 -2
  22. package/dist/components/{Flow → layout/Flow}/index.js +1 -1
  23. package/dist/components/{FluidCols → layout/FluidCols}/FluidCols.d.ts +2 -2
  24. package/dist/components/{FluidCols → layout/FluidCols}/index.js +1 -1
  25. package/dist/components/{Frame → layout/Frame}/Frame.d.ts +2 -2
  26. package/dist/components/{Frame → layout/Frame}/index.js +1 -1
  27. package/dist/components/{Grid → layout/Grid}/Grid.d.ts +2 -2
  28. package/dist/components/{Grid → layout/Grid}/index.js +1 -1
  29. package/dist/components/{SideMain → layout/SideMain}/SideMain.d.ts +2 -2
  30. package/dist/components/{SideMain → layout/SideMain}/index.js +1 -1
  31. package/dist/components/{Stack → layout/Stack}/Stack.d.ts +2 -2
  32. package/dist/components/{Stack → layout/Stack}/index.js +1 -1
  33. package/dist/components/{SwitchCols → layout/SwitchCols}/SwitchCols.d.ts +2 -2
  34. package/dist/components/{SwitchCols → layout/SwitchCols}/index.js +1 -1
  35. package/dist/components/layout/TileGrid/TileGrid.d.ts +4 -0
  36. package/dist/components/layout/TileGrid/index.d.ts +1 -0
  37. package/dist/components/layout/TileGrid/index.js +8 -0
  38. package/dist/components/{Container → state/Container}/Container.d.ts +1 -1
  39. package/dist/components/{Container → state/Container}/index.js +1 -1
  40. package/dist/components/{Layer → state/Layer}/Layer.d.ts +1 -1
  41. package/dist/components/{Layer → state/Layer}/index.js +1 -1
  42. package/dist/components/{LinkBox → state/LinkBox}/LinkBox.d.ts +1 -1
  43. package/dist/components/{LinkBox → state/LinkBox}/index.js +1 -1
  44. package/dist/components/{Wrapper → state/Wrapper}/Wrapper.d.ts +1 -1
  45. package/dist/components/{Wrapper → state/Wrapper}/index.js +1 -1
  46. package/dist/config/default-config.d.ts +24 -71
  47. package/dist/config/defaults/props.d.ts +24 -58
  48. package/dist/config/defaults/props.js +16 -26
  49. package/dist/config/defaults/states.d.ts +0 -13
  50. package/dist/config/defaults/states.js +3 -23
  51. package/dist/config/index.d.ts +48 -142
  52. package/dist/css/base.css +1 -1
  53. package/dist/css/main.css +1 -1
  54. package/dist/css/main_no_layer.css +1 -1
  55. package/dist/css/modules/layout.css +1 -1
  56. package/dist/css/props.css +1 -1
  57. package/dist/lib/getLayoutProps.js +12 -15
  58. package/dist/lib/getLismProps.d.ts +3 -2
  59. package/dist/lib/getLismProps.js +91 -89
  60. package/dist/lib/helper/mergeSet.d.ts +5 -0
  61. package/dist/lib/helper/mergeSet.js +14 -0
  62. package/dist/lib/helper/mergeSet.test.d.ts +1 -0
  63. package/dist/lib/types/LayoutProps.d.ts +4 -1
  64. package/dist/lib/types/StateProps.d.ts +5 -3
  65. package/package.json +1 -1
  66. package/packages/astro/{Decorator → atomic/Decorator}/Decorator.astro +1 -1
  67. package/packages/astro/{Divider → atomic/Divider}/Divider.astro +2 -2
  68. package/packages/astro/{Icon → atomic/Icon}/Icon.astro +1 -1
  69. package/packages/astro/{Spacer → atomic/Spacer}/Spacer.astro +2 -2
  70. package/packages/astro/index.ts +26 -22
  71. package/packages/astro/{Box → layout/Box}/Box.astro +2 -2
  72. package/packages/astro/{Center → layout/Center}/Center.astro +2 -2
  73. package/packages/astro/{Cluster → layout/Cluster}/Cluster.astro +2 -2
  74. package/packages/astro/{Columns → layout/Columns}/Columns.astro +2 -2
  75. package/packages/astro/{Flex → layout/Flex}/Flex.astro +2 -2
  76. package/packages/astro/{Flow → layout/Flow}/Flow.astro +2 -2
  77. package/packages/astro/{FluidCols → layout/FluidCols}/FluidCols.astro +2 -2
  78. package/packages/astro/{Frame → layout/Frame}/Frame.astro +2 -2
  79. package/packages/astro/{Grid → layout/Grid}/Grid.astro +2 -2
  80. package/packages/astro/{SideMain → layout/SideMain}/SideMain.astro +2 -2
  81. package/packages/astro/{Stack → layout/Stack}/Stack.astro +2 -2
  82. package/packages/astro/{SwitchCols → layout/SwitchCols}/SwitchCols.astro +2 -2
  83. package/packages/astro/layout/TileGrid/TileGrid.astro +11 -0
  84. package/packages/astro/layout/TileGrid/index.ts +1 -0
  85. package/packages/astro/{Container → state/Container}/Container.astro +2 -2
  86. package/packages/astro/{Layer → state/Layer}/Layer.astro +2 -2
  87. package/packages/astro/{LinkBox → state/LinkBox}/LinkBox.astro +2 -2
  88. package/packages/astro/{Wrapper → state/Wrapper}/Wrapper.astro +2 -2
  89. package/src/scss/_auto_output.scss +1 -1
  90. package/src/scss/_prop-config.scss +24 -26
  91. package/src/scss/_with_layer.scss +4 -4
  92. package/src/scss/base/_html.scss +8 -8
  93. package/src/scss/base/tokens/_tokens.scss +0 -2
  94. package/src/scss/modules/layout/_grid.scss +0 -5
  95. package/src/scss/modules/layout/_tileGrid.scss +4 -0
  96. package/src/scss/modules/layout/index.scss +1 -0
  97. package/src/scss/props/index.scss +1 -1
  98. package/src/scss/utility/_cbox.scss +1 -1
  99. package/src/scss/utility/_clipText.scss +1 -1
  100. package/config/helper/getSvgUrl.ts +0 -26
  101. package/dist/components/HTML/HTML.d.ts +0 -26
  102. package/dist/components/HTML/index.d.ts +0 -14
  103. package/dist/components/HTML/index.js +0 -5
  104. package/dist/components/HTML/index2.js +0 -45
  105. package/dist/config/helper/getSvgUrl.d.ts +0 -5
  106. package/dist/config/helper/getSvgUrl.js +0 -4
  107. package/packages/astro/HTML/_index_memo.js +0 -29
  108. package/packages/astro/HTML/a.astro +0 -10
  109. package/packages/astro/HTML/button.astro +0 -10
  110. package/packages/astro/HTML/div.astro +0 -10
  111. package/packages/astro/HTML/h.astro +0 -13
  112. package/packages/astro/HTML/img.astro +0 -10
  113. package/packages/astro/HTML/index.ts +0 -12
  114. package/packages/astro/HTML/li.astro +0 -10
  115. package/packages/astro/HTML/ol.astro +0 -10
  116. package/packages/astro/HTML/p.astro +0 -10
  117. package/packages/astro/HTML/span.astro +0 -10
  118. package/packages/astro/HTML/ul.astro +0 -10
  119. /package/dist/components/{atomic/Media → Media}/Media.stories.d.ts +0 -0
  120. /package/dist/components/{atomic/Media → Media}/index.d.ts +0 -0
  121. /package/dist/components/{Box → layout/Box}/Box.stories.d.ts +0 -0
  122. /package/dist/components/{Box → layout/Box}/index.d.ts +0 -0
  123. /package/dist/components/{Center → layout/Center}/Center.stories.d.ts +0 -0
  124. /package/dist/components/{Center → layout/Center}/index.d.ts +0 -0
  125. /package/dist/components/{Cluster → layout/Cluster}/Cluster.stories.d.ts +0 -0
  126. /package/dist/components/{Cluster → layout/Cluster}/index.d.ts +0 -0
  127. /package/dist/components/{Columns → layout/Columns}/Columns.stories.d.ts +0 -0
  128. /package/dist/components/{Columns → layout/Columns}/index.d.ts +0 -0
  129. /package/dist/components/{Flex → layout/Flex}/Flex.stories.d.ts +0 -0
  130. /package/dist/components/{Flex → layout/Flex}/index.d.ts +0 -0
  131. /package/dist/components/{Flow → layout/Flow}/Flow.stories.d.ts +0 -0
  132. /package/dist/components/{Flow → layout/Flow}/index.d.ts +0 -0
  133. /package/dist/components/{FluidCols → layout/FluidCols}/FluidCols.stories.d.ts +0 -0
  134. /package/dist/components/{FluidCols → layout/FluidCols}/index.d.ts +0 -0
  135. /package/dist/components/{Frame → layout/Frame}/Frame.stories.d.ts +0 -0
  136. /package/dist/components/{Frame → layout/Frame}/index.d.ts +0 -0
  137. /package/dist/components/{Grid → layout/Grid}/Grid.stories.d.ts +0 -0
  138. /package/dist/components/{Grid → layout/Grid}/index.d.ts +0 -0
  139. /package/dist/components/{SideMain → layout/SideMain}/SideMain.stories.d.ts +0 -0
  140. /package/dist/components/{SideMain → layout/SideMain}/index.d.ts +0 -0
  141. /package/dist/components/{Stack → layout/Stack}/Stack.stories.d.ts +0 -0
  142. /package/dist/components/{Stack → layout/Stack}/index.d.ts +0 -0
  143. /package/dist/components/{SwitchCols → layout/SwitchCols}/SwitchCols.stories.d.ts +0 -0
  144. /package/dist/components/{SwitchCols → layout/SwitchCols}/index.d.ts +0 -0
  145. /package/dist/components/{Container → state/Container}/Container.stories.d.ts +0 -0
  146. /package/dist/components/{Container → state/Container}/index.d.ts +0 -0
  147. /package/dist/components/{Layer → state/Layer}/Layer.stories.d.ts +0 -0
  148. /package/dist/components/{Layer → state/Layer}/Layer.test.d.ts +0 -0
  149. /package/dist/components/{Layer → state/Layer}/index.d.ts +0 -0
  150. /package/dist/components/{LinkBox → state/LinkBox}/LinkBox.stories.d.ts +0 -0
  151. /package/dist/components/{LinkBox → state/LinkBox}/index.d.ts +0 -0
  152. /package/dist/components/{LinkBox → state/LinkBox}/script.d.ts +0 -0
  153. /package/dist/components/{Wrapper → state/Wrapper}/Wrapper.stories.d.ts +0 -0
  154. /package/dist/components/{Wrapper → state/Wrapper}/index.d.ts +0 -0
  155. /package/packages/astro/{Decorator → atomic/Decorator}/index.ts +0 -0
  156. /package/packages/astro/{Divider → atomic/Divider}/index.ts +0 -0
  157. /package/packages/astro/{Icon → atomic/Icon}/SVG.astro +0 -0
  158. /package/packages/astro/{Icon → atomic/Icon}/index.ts +0 -0
  159. /package/packages/astro/{Spacer → atomic/Spacer}/index.ts +0 -0
  160. /package/packages/astro/{Box → layout/Box}/index.ts +0 -0
  161. /package/packages/astro/{Center → layout/Center}/index.ts +0 -0
  162. /package/packages/astro/{Cluster → layout/Cluster}/index.ts +0 -0
  163. /package/packages/astro/{Columns → layout/Columns}/index.ts +0 -0
  164. /package/packages/astro/{Flex → layout/Flex}/index.ts +0 -0
  165. /package/packages/astro/{Flow → layout/Flow}/index.ts +0 -0
  166. /package/packages/astro/{FluidCols → layout/FluidCols}/index.ts +0 -0
  167. /package/packages/astro/{Frame → layout/Frame}/index.ts +0 -0
  168. /package/packages/astro/{Grid → layout/Grid}/index.ts +0 -0
  169. /package/packages/astro/{SideMain → layout/SideMain}/index.ts +0 -0
  170. /package/packages/astro/{Stack → layout/Stack}/index.ts +0 -0
  171. /package/packages/astro/{SwitchCols → layout/SwitchCols}/index.ts +0 -0
  172. /package/packages/astro/{Container → state/Container}/index.ts +0 -0
  173. /package/packages/astro/{Layer → state/Layer}/index.ts +0 -0
  174. /package/packages/astro/{LinkBox → state/LinkBox}/index.ts +0 -0
  175. /package/packages/astro/{Wrapper → state/Wrapper}/index.ts +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lism-css",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "description": "Lism CSS is a layout-first CSS framework for websites.",
5
5
  "author": {
6
6
  "name": "ddryo",
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  import type { HTMLTag, Polymorphic } from 'astro/types';
3
3
  import type { DecoratorProps } from 'lism-css/react/atomic/Decorator/getProps';
4
- import { Lism } from '../Lism';
4
+ import { Lism } from '../../Lism';
5
5
  import getProps from 'lism-css/react/atomic/Decorator/getProps';
6
6
 
7
7
  type Props<Tag extends HTMLTag = 'div'> = Polymorphic<{ as: Tag }> &
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  import type { HTMLTag, Polymorphic } from 'astro/types';
3
- import type { AstroLismBaseProps } from '../types';
4
- import { Lism } from '../Lism';
3
+ import type { AstroLismBaseProps } from '../../types';
4
+ import { Lism } from '../../Lism';
5
5
  import { getDividerProps } from 'lism-css/react/atomic/Divider/getProps';
6
6
 
7
7
  type Props<Tag extends HTMLTag = 'div'> = Polymorphic<{ as: Tag }> & AstroLismBaseProps;
@@ -2,7 +2,7 @@
2
2
  import type { HTMLTag, Polymorphic } from 'astro/types';
3
3
  import type { ElementType } from 'react';
4
4
  import type { IconProps, IconOwnProps } from 'lism-css/react/atomic/Icon/getProps';
5
- import type { AstroLismBaseProps } from '../types';
5
+ import type { AstroLismBaseProps } from '../../types';
6
6
  import getLismProps from 'lism-css/lib/getLismProps';
7
7
  import getProps from 'lism-css/react/atomic/Icon/getProps';
8
8
  import SVG from './SVG.astro';
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  import type { HTMLTag, Polymorphic } from 'astro/types';
3
- import type { AstroLismBaseProps } from '../types';
4
- import { Lism } from '../Lism';
3
+ import type { AstroLismBaseProps } from '../../types';
4
+ import { Lism } from '../../Lism';
5
5
  import getProps from 'lism-css/react/atomic/Spacer/getProps';
6
6
 
7
7
  type Props<Tag extends HTMLTag = 'div'> = Polymorphic<{ as: Tag }> & AstroLismBaseProps;
@@ -3,7 +3,6 @@
3
3
  */
4
4
 
5
5
  export * from './Lism';
6
- export { default as HTML } from './HTML';
7
6
  /** @deprecated DummyText / DummyImage (@lism-css/ui) を使用してください */
8
7
  export * from './Dummy';
9
8
 
@@ -14,26 +13,31 @@ export * from './Group';
14
13
  export * from './Heading';
15
14
  export * from './Link';
16
15
  export * from './List';
17
- export * from './Box';
18
- export * from './Flow';
19
- export * from './Flex';
20
- export * from './Cluster';
21
- export * from './Stack';
22
- export * from './Grid';
23
- export * from './FluidCols';
24
- export * from './SwitchCols';
25
- export * from './Columns';
26
- export * from './Center';
27
- export * from './SideMain';
28
- export * from './Frame';
16
+ export * from './Media';
29
17
 
30
- export * from './Container';
31
- export * from './Wrapper';
32
- export * from './Layer';
33
- export * from './LinkBox';
18
+ // layout (l--)
19
+ export * from './layout/Box';
20
+ export * from './layout/Center';
21
+ export * from './layout/Cluster';
22
+ export * from './layout/Columns';
23
+ export * from './layout/Flex';
24
+ export * from './layout/Flow';
25
+ export * from './layout/FluidCols';
26
+ export * from './layout/Frame';
27
+ export * from './layout/Grid';
28
+ export * from './layout/SideMain';
29
+ export * from './layout/Stack';
30
+ export * from './layout/SwitchCols';
31
+ export * from './layout/TileGrid';
34
32
 
35
- export * from './Decorator';
36
- export * from './Divider';
37
- export * from './Icon';
38
- export * from './Media';
39
- export * from './Spacer';
33
+ // state (is--)
34
+ export * from './state/Container';
35
+ export * from './state/Layer';
36
+ export * from './state/LinkBox';
37
+ export * from './state/Wrapper';
38
+
39
+ // atomic (a--)
40
+ export * from './atomic/Decorator';
41
+ export * from './atomic/Divider';
42
+ export * from './atomic/Icon';
43
+ export * from './atomic/Spacer';
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  import type { HTMLTag, Polymorphic } from 'astro/types';
3
- import type { AstroLismFixedLayoutProps } from '../types';
4
- import { Lism } from '../Lism';
3
+ import type { AstroLismFixedLayoutProps } from '../../types';
4
+ import { Lism } from '../../Lism';
5
5
 
6
6
  type Props<Tag extends HTMLTag = 'div'> = Polymorphic<{ as: Tag }> & AstroLismFixedLayoutProps;
7
7
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  import type { HTMLTag, Polymorphic } from 'astro/types';
3
- import type { AstroLismFixedLayoutProps } from '../types';
4
- import { Lism } from '../Lism';
3
+ import type { AstroLismFixedLayoutProps } from '../../types';
4
+ import { Lism } from '../../Lism';
5
5
 
6
6
  type Props<Tag extends HTMLTag = 'div'> = Polymorphic<{ as: Tag }> & AstroLismFixedLayoutProps;
7
7
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  import type { HTMLTag, Polymorphic } from 'astro/types';
3
- import type { AstroLismFixedLayoutProps } from '../types';
4
- import { Lism } from '../Lism';
3
+ import type { AstroLismFixedLayoutProps } from '../../types';
4
+ import { Lism } from '../../Lism';
5
5
 
6
6
  type Props<Tag extends HTMLTag = 'div'> = Polymorphic<{ as: Tag }> & AstroLismFixedLayoutProps;
7
7
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  import type { HTMLTag, Polymorphic } from 'astro/types';
3
- import type { AstroLismFixedLayoutProps } from '../types';
4
- import { Lism } from '../Lism';
3
+ import type { AstroLismFixedLayoutProps } from '../../types';
4
+ import { Lism } from '../../Lism';
5
5
 
6
6
  type Props<Tag extends HTMLTag = 'div'> = Polymorphic<{ as: Tag }> & AstroLismFixedLayoutProps;
7
7
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  import type { HTMLTag, Polymorphic } from 'astro/types';
3
- import type { AstroLismFixedLayoutProps } from '../types';
4
- import { Lism } from '../Lism';
3
+ import type { AstroLismFixedLayoutProps } from '../../types';
4
+ import { Lism } from '../../Lism';
5
5
 
6
6
  type Props<Tag extends HTMLTag = 'div'> = Polymorphic<{ as: Tag }> & AstroLismFixedLayoutProps;
7
7
 
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  import type { HTMLTag, Polymorphic } from 'astro/types';
3
- import type { AstroLismFixedLayoutProps } from '../types';
3
+ import type { AstroLismFixedLayoutProps } from '../../types';
4
4
  import type { FlowLayoutProps } from 'lism-css/lib/types/LayoutProps';
5
- import { Lism } from '../Lism';
5
+ import { Lism } from '../../Lism';
6
6
 
7
7
  type Props<Tag extends HTMLTag = 'div'> = Polymorphic<{ as: Tag }> & AstroLismFixedLayoutProps & Omit<FlowLayoutProps, 'layout'>;
8
8
 
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  import type { HTMLTag, Polymorphic } from 'astro/types';
3
- import type { AstroLismFixedLayoutProps } from '../types';
3
+ import type { AstroLismFixedLayoutProps } from '../../types';
4
4
  import type { FluidColsProps } from 'lism-css/lib/types/LayoutProps';
5
- import { Lism } from '../Lism';
5
+ import { Lism } from '../../Lism';
6
6
 
7
7
  type Props<Tag extends HTMLTag = 'div'> = Polymorphic<{ as: Tag }> & AstroLismFixedLayoutProps & Omit<FluidColsProps, 'layout'>;
8
8
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  import type { HTMLTag, Polymorphic } from 'astro/types';
3
- import type { AstroLismFixedLayoutProps } from '../types';
4
- import { Lism } from '../Lism';
3
+ import type { AstroLismFixedLayoutProps } from '../../types';
4
+ import { Lism } from '../../Lism';
5
5
 
6
6
  type Props<Tag extends HTMLTag = 'div'> = Polymorphic<{ as: Tag }> & AstroLismFixedLayoutProps;
7
7
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  import type { HTMLTag, Polymorphic } from 'astro/types';
3
- import type { AstroLismFixedLayoutProps } from '../types';
4
- import { Lism } from '../Lism';
3
+ import type { AstroLismFixedLayoutProps } from '../../types';
4
+ import { Lism } from '../../Lism';
5
5
 
6
6
  type Props<Tag extends HTMLTag = 'div'> = Polymorphic<{ as: Tag }> & AstroLismFixedLayoutProps;
7
7
 
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  import type { HTMLTag, Polymorphic } from 'astro/types';
3
- import type { AstroLismFixedLayoutProps } from '../types';
3
+ import type { AstroLismFixedLayoutProps } from '../../types';
4
4
  import type { SideMainProps } from 'lism-css/lib/types/LayoutProps';
5
- import { Lism } from '../Lism';
5
+ import { Lism } from '../../Lism';
6
6
 
7
7
  type Props<Tag extends HTMLTag = 'div'> = Polymorphic<{ as: Tag }> & AstroLismFixedLayoutProps & Omit<SideMainProps, 'layout'>;
8
8
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  import type { HTMLTag, Polymorphic } from 'astro/types';
3
- import type { AstroLismFixedLayoutProps } from '../types';
4
- import { Lism } from '../Lism';
3
+ import type { AstroLismFixedLayoutProps } from '../../types';
4
+ import { Lism } from '../../Lism';
5
5
 
6
6
  type Props<Tag extends HTMLTag = 'div'> = Polymorphic<{ as: Tag }> & AstroLismFixedLayoutProps;
7
7
 
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  import type { HTMLTag, Polymorphic } from 'astro/types';
3
- import type { AstroLismFixedLayoutProps } from '../types';
3
+ import type { AstroLismFixedLayoutProps } from '../../types';
4
4
  import type { SwitchColsProps } from 'lism-css/lib/types/LayoutProps';
5
- import { Lism } from '../Lism';
5
+ import { Lism } from '../../Lism';
6
6
 
7
7
  type Props<Tag extends HTMLTag = 'div'> = Polymorphic<{ as: Tag }> & AstroLismFixedLayoutProps & Omit<SwitchColsProps, 'layout'>;
8
8
 
@@ -0,0 +1,11 @@
1
+ ---
2
+ import type { HTMLTag, Polymorphic } from 'astro/types';
3
+ import type { AstroLismFixedLayoutProps } from '../../types';
4
+ import { Lism } from '../../Lism';
5
+
6
+ type Props<Tag extends HTMLTag = 'div'> = Polymorphic<{ as: Tag }> & AstroLismFixedLayoutProps;
7
+
8
+ const props = Astro.props;
9
+ ---
10
+
11
+ <Lism layout="tileGrid" {...props}><slot /></Lism>
@@ -0,0 +1 @@
1
+ export { default as TileGrid } from './TileGrid.astro';
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  import type { HTMLTag, Polymorphic } from 'astro/types';
3
- import type { AstroLismBaseProps } from '../types';
4
- import { Lism } from '../Lism';
3
+ import type { AstroLismBaseProps } from '../../types';
4
+ import { Lism } from '../../Lism';
5
5
 
6
6
  type Props<Tag extends HTMLTag = 'div'> = Polymorphic<{ as: Tag }> &
7
7
  AstroLismBaseProps & {
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  import type { HTMLTag, Polymorphic } from 'astro/types';
3
- import type { AstroLismBaseProps } from '../types';
4
- import { Lism } from '../Lism';
3
+ import type { AstroLismBaseProps } from '../../types';
4
+ import { Lism } from '../../Lism';
5
5
 
6
6
  type Props<Tag extends HTMLTag = 'div'> = Polymorphic<{ as: Tag }> & AstroLismBaseProps;
7
7
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  import type { HTMLTag, Polymorphic } from 'astro/types';
3
- import type { AstroLismBaseProps } from '../types';
4
- import { Lism } from '../Lism';
3
+ import type { AstroLismBaseProps } from '../../types';
4
+ import { Lism } from '../../Lism';
5
5
 
6
6
  type Props<Tag extends HTMLTag = 'a'> = Polymorphic<{ as: Tag }> & AstroLismBaseProps;
7
7
 
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  import type { HTMLTag, Polymorphic } from 'astro/types';
3
- import type { AstroLismBaseProps } from '../types';
3
+ import type { AstroLismBaseProps } from '../../types';
4
4
  import type { LismProps } from 'lism-css/lib/getLismProps';
5
- import { Lism } from '../Lism';
5
+ import { Lism } from '../../Lism';
6
6
 
7
7
  type Props<Tag extends HTMLTag = 'div'> = Polymorphic<{ as: Tag }> &
8
8
  AstroLismBaseProps & {
@@ -14,7 +14,7 @@ base_type:
14
14
  常に変数で管理されるようになるので、他の処理と絡ませることがしやすい。
15
15
  デメリット: *= は処理負荷が高い。また、途中のBPから使えるようにするにはCSS記述増える)
16
16
 
17
- 3 → BPクラスには変数使わないが、文字数省略のため baseのProp classだけ変数化して *= セレクタ使う
17
+ 3 → BPクラスには変数使わないが、文字数省略のため baseのProperty Classだけ変数化して *= セレクタ使う
18
18
  */
19
19
 
20
20
  // マップから値を取得し、nullの場合はデフォルト値を返す
@@ -101,7 +101,12 @@ $props: (
101
101
  utilities: (
102
102
  'none': 'none',
103
103
  'block': 'block',
104
- 'in-flex': 'inline-flex',
104
+ 'flex': 'flex',
105
+ 'inline-flex': 'inline-flex',
106
+ 'grid': 'grid',
107
+ 'inline-grid': 'inline-grid',
108
+ 'inline': 'inline',
109
+ 'inline-block': 'inline-block',
105
110
  ),
106
111
  bp: 1,
107
112
  ),
@@ -290,7 +295,7 @@ $props: (
290
295
  'divider': 'var(--divider)',
291
296
  'inherit': 'inherit',
292
297
  'transparent': 'transparent',
293
- 'cc': 'currentColor',
298
+ 'current': 'currentColor',
294
299
  ),
295
300
  isVar: 1,
296
301
  ),
@@ -332,8 +337,8 @@ $props: (
332
337
  'static': 'static',
333
338
  'fixed': 'fixed',
334
339
  'sticky': 'sticky',
335
- 'rel': 'relative',
336
- 'abs': 'absolute',
340
+ 'relative': 'relative',
341
+ 'absolute': 'absolute',
337
342
  ),
338
343
  ),
339
344
  'z': (
@@ -607,11 +612,11 @@ $props: (
607
612
  alwaysVar: 1,
608
613
  overwriteBaseVar: 1,
609
614
  ),
610
- 'g-x': (
615
+ 'cg': (
611
616
  prop: 'column-gap',
612
617
  bp: 1,
613
618
  ),
614
- 'g-y': (
619
+ 'rg': (
615
620
  prop: 'row-gap',
616
621
  bp: 1,
617
622
  ),
@@ -635,9 +640,9 @@ $props: (
635
640
  'fxd': (
636
641
  prop: 'flex-direction',
637
642
  utilities: (
638
- 'col': 'column',
639
- 'col-r': 'column-reverse',
640
- 'row-r': 'row-reverse',
643
+ 'column': 'column',
644
+ 'column-reverse': 'column-reverse',
645
+ 'row-reverse': 'row-reverse',
641
646
  ),
642
647
  bp: 1,
643
648
  ),
@@ -666,13 +671,6 @@ $props: (
666
671
  ),
667
672
  'gt': (
668
673
  prop: 'grid-template',
669
- utilities: (
670
- ),
671
- exUtility: (
672
- 'repeat': (
673
- 'grid-template': 'repeat(var(--rows,1), 1fr) / repeat(var(--cols,1), 1fr)',
674
- ),
675
- ),
676
674
  bp: 1,
677
675
  ),
678
676
  'gta': (
@@ -697,7 +695,7 @@ $props: (
697
695
  prop: 'grid-auto-flow',
698
696
  utilities: (
699
697
  'row': 'row',
700
- 'col': 'column',
698
+ 'column': 'column',
701
699
  ),
702
700
  bp: 1,
703
701
  ),
@@ -729,8 +727,8 @@ $props: (
729
727
  'center': 'center',
730
728
  'end': 'end',
731
729
  'stretch': 'stretch',
732
- 'flex-s': 'flex-start',
733
- 'flex-e': 'flex-end',
730
+ 'flex-start': 'flex-start',
731
+ 'flex-end': 'flex-end',
734
732
  ),
735
733
  bp: 1,
736
734
  ),
@@ -740,8 +738,8 @@ $props: (
740
738
  'start': 'start',
741
739
  'center': 'center',
742
740
  'end': 'end',
743
- 'flex-s': 'flex-start',
744
- 'flex-e': 'flex-end',
741
+ 'flex-start': 'flex-start',
742
+ 'flex-end': 'flex-end',
745
743
  'between': 'space-between',
746
744
  ),
747
745
  bp: 1,
@@ -753,8 +751,8 @@ $props: (
753
751
  'center': 'center',
754
752
  'end': 'end',
755
753
  'stretch': 'stretch',
756
- 'flex-s': 'flex-start',
757
- 'flex-e': 'flex-end',
754
+ 'flex-start': 'flex-start',
755
+ 'flex-end': 'flex-end',
758
756
  ),
759
757
  bp: 1,
760
758
  ),
@@ -764,8 +762,8 @@ $props: (
764
762
  'start': 'start',
765
763
  'center': 'center',
766
764
  'end': 'end',
767
- 'flex-s': 'flex-start',
768
- 'flex-e': 'flex-end',
765
+ 'flex-start': 'flex-start',
766
+ 'flex-end': 'flex-end',
769
767
  'between': 'space-between',
770
768
  ),
771
769
  bp: 1,
@@ -823,7 +821,7 @@ $props: (
823
821
  'ovwrap': (
824
822
  prop: 'overflow-wrap',
825
823
  utilities: (
826
- 'any': 'anywhere',
824
+ 'anywhere': 'anywhere',
827
825
  ),
828
826
  ),
829
827
  'whspace': (
@@ -22,10 +22,10 @@
22
22
  }
23
23
  }
24
24
 
25
- @layer lism-utility {
26
- @include meta.load-css('utility');
25
+ /* stylelint-disable-next-line block-no-empty -- ユーザーの独自分類クラス用レイヤー */
26
+ @layer lism-custom {
27
27
  }
28
28
 
29
- /* stylelint-disable-next-line block-no-empty -- ユーザーカスタム用レイヤー */
30
- @layer lism-custom {
29
+ @layer lism-utility {
30
+ @include meta.load-css('utility');
31
31
  }
@@ -68,12 +68,6 @@ sub {
68
68
  font-size: 80%;
69
69
  }
70
70
 
71
- legend,
72
- caption,
73
- figcaption {
74
- font-size: var(--fz--s);
75
- }
76
-
77
71
  code,
78
72
  kbd,
79
73
  var,
@@ -86,6 +80,12 @@ blockquote {
86
80
  padding: var(--s30);
87
81
  }
88
82
 
83
+ legend,
84
+ caption,
85
+ figcaption {
86
+ font-size: var(--fz--s);
87
+ }
88
+
89
89
  hr {
90
90
  border: none;
91
91
  block-size: 0;
@@ -95,11 +95,11 @@ hr {
95
95
  /* --------------------------------------------------
96
96
  list
97
97
  -------------------------------------------------- */
98
- // classを持たない、もしくは Prop Classしかない(≒ Prop Class で始まる) リスト要素はブラウザ標準のスタイルを復活させる。
98
+ // classを持たない、もしくは Property Classしかない(≒ Property Class で始まる) リスト要素はブラウザ標準のスタイルを復活させる。
99
99
  :is(ul, ol):where(:not([class])),
100
100
  :is(ul, ol):where([class^='-']) {
101
101
  list-style: revert;
102
- padding-inline-start: var(--s30);
102
+ padding-inline-start: var(--list-px-s, var(--s30));
103
103
  }
104
104
 
105
105
  dt {
@@ -72,12 +72,10 @@
72
72
  /**
73
73
  * border-radius
74
74
  */
75
- --bdrs--5: 2px;
76
75
  --bdrs--10: 0.25rem; // ≒ 4px
77
76
  --bdrs--20: 0.5rem; // ≒ 8px
78
77
  --bdrs--30: 1rem; // ≒ 16px
79
78
  --bdrs--40: 1.5rem; // ≒ 24px
80
- // --bdrs--50: 2rem; // ≒ 32px
81
79
  --bdrs--99: 99rem;
82
80
 
83
81
  /**
@@ -1,10 +1,5 @@
1
1
  .l--grid {
2
- --gtr: none;
3
- --gtc: none;
4
- --gta: none;
5
2
  display: grid;
6
- grid-template: var(--gtr) / var(--gtc);
7
- grid-template-areas: var(--gta);
8
3
 
9
4
  > * {
10
5
  min-width: 0;
@@ -0,0 +1,4 @@
1
+ .l--tileGrid {
2
+ display: grid;
3
+ grid-template: repeat(var(--rows, 1), minmax(0, 1fr)) / repeat(var(--cols, 1), minmax(0, 1fr));
4
+ }
@@ -9,4 +9,5 @@
9
9
  @forward './columns';
10
10
  @forward './sideMain';
11
11
  @forward './switchCols';
12
+ @forward './tileGrid';
12
13
  @forward './frame';
@@ -9,5 +9,5 @@
9
9
  // 自動生成
10
10
  @forward '../auto_output';
11
11
 
12
- // Prop Classの最後で読み込む
12
+ // Property Classの最後で読み込む
13
13
  @forward './hover';
@@ -1,5 +1,5 @@
1
1
  /*
2
- Note: Prop Class より優先度が下で定義すること
2
+ Note: Property Class より優先度が下で定義すること
3
3
  Memo: bgcの mix は transparent ではなく --base と混ぜている → 背景メディアがあるときも可読性が落ちないように + chat のように同じ背景色の装飾が一部重なっていても大丈夫なように。
4
4
  */
5
5
  .u--cbox {
@@ -1,5 +1,5 @@
1
1
  .u--clipText {
2
- // Memo: Prop Class(s.-bg:`, `.-c:`) に負けないように important つけている
2
+ // Memo: Property Class(s.-bg:`, `.-c:`) に負けないように important つけている
3
3
  background-clip: text !important;
4
4
  color: transparent !important;
5
5
  }
@@ -1,26 +0,0 @@
1
- /**
2
- * svgをcssの image url に変換
3
- */
4
- const getSvgUrl = (svg: string, encode = '') => {
5
- if (!svg) return '';
6
-
7
- // minify化
8
- // svg = minifyHtml(svg);
9
-
10
- if ('base64' === encode) {
11
- // memo: btoa() だけだとマルチバイト文字が入った時にエラーになる。
12
- // encodeURIComponent() でそれを回避できるがそれだとSVGとして描画できず、 unescape() と組み合わせることで期待する動作になった。 see: https://www.softel.co.jp/blogs/tech/archives/4133
13
- // svg = window.btoa(unescape(encodeURIComponent(svg)));
14
-
15
- // memo: Buffer 使えば非推奨な関数を使わなくてもいい see: https://hackersheet.com/naopoyo/sheets/bvtrkwt
16
- svg = Buffer.from(svg).toString('base64');
17
- return `url(data:image/svg+xml;base64,${svg})`;
18
- }
19
-
20
- // シングルクォートをダブルクォートに変換
21
- svg = svg.replace(/'/g, '"');
22
- // カラーコードの先頭の # → %23 に置換
23
- svg = svg.replace(/="#/g, '="%23');
24
- return `url('data:image/svg+xml,${svg}')`;
25
- };
26
- export default getSvgUrl;
@@ -1,26 +0,0 @@
1
- import { LismComponentProps } from '../Lism';
2
- /** @deprecated Group を使用してください */
3
- export declare function div(props: LismComponentProps<'div'>): import("react").JSX.Element;
4
- /** @deprecated Text を使用してください */
5
- export declare function p(props: LismComponentProps<'p'>): import("react").JSX.Element;
6
- /** @deprecated Inline を使用してください */
7
- export declare function span(props: LismComponentProps<'span'>): import("react").JSX.Element;
8
- /** @deprecated Link を使用してください */
9
- export declare function a(props: LismComponentProps<'a'>): import("react").JSX.Element;
10
- type HeadingLevel = '1' | '2' | '3' | '4' | '5' | '6';
11
- type HeadingProps = LismComponentProps<'h1'> & {
12
- lv?: HeadingLevel;
13
- };
14
- /** @deprecated Heading を使用してください */
15
- export declare function h({ lv, ...props }: HeadingProps): import("react").JSX.Element;
16
- /** @deprecated Media を使用してください */
17
- export declare function img(props: LismComponentProps<'img'>): import("react").JSX.Element;
18
- /** @deprecated List を使用してください */
19
- export declare function ul(props: LismComponentProps<'ul'>): import("react").JSX.Element;
20
- /** @deprecated List as="ol" を使用してください */
21
- export declare function ol(props: LismComponentProps<'ol'>): import("react").JSX.Element;
22
- /** @deprecated ListItem を使用してください */
23
- export declare function li(props: LismComponentProps<'li'>): import("react").JSX.Element;
24
- /** @deprecated Lism as="button" を使用してください */
25
- export declare function button(props: LismComponentProps<'button'>): import("react").JSX.Element;
26
- export {};