@master/css 1.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (219) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +35 -0
  3. package/breakpoints.d.ts +12 -0
  4. package/breakpoints.js +1 -0
  5. package/colors.d.ts +224 -0
  6. package/colors.js +1 -0
  7. package/constants/css-browser-prefix.d.ts +3 -0
  8. package/constants/css-property-keyword.d.ts +214 -0
  9. package/constants/direction.d.ts +10 -0
  10. package/constants/priority-selectors.d.ts +1 -0
  11. package/index.d.ts +5 -0
  12. package/index.js +1 -0
  13. package/interfaces/style-media-feature.d.ts +7 -0
  14. package/interfaces/style-media.d.ts +8 -0
  15. package/package.json +29 -0
  16. package/render.d.ts +7 -0
  17. package/render.js +1 -0
  18. package/sheet.d.ts +55 -0
  19. package/style.d.ts +68 -0
  20. package/styles/accent-color.d.ts +6 -0
  21. package/styles/align-content.d.ts +5 -0
  22. package/styles/align-items.d.ts +5 -0
  23. package/styles/align-self.d.ts +5 -0
  24. package/styles/animation-delay.d.ts +6 -0
  25. package/styles/animation-direction.d.ts +5 -0
  26. package/styles/animation-duration.d.ts +6 -0
  27. package/styles/animation-fill-mode.d.ts +5 -0
  28. package/styles/animation-iteration-count.d.ts +6 -0
  29. package/styles/animation-name.d.ts +5 -0
  30. package/styles/animation-play-state.d.ts +5 -0
  31. package/styles/animation-timing-function.d.ts +5 -0
  32. package/styles/animation.d.ts +7 -0
  33. package/styles/appearance.d.ts +4 -0
  34. package/styles/aspect-radio.d.ts +10 -0
  35. package/styles/backdrop-filter.d.ts +9 -0
  36. package/styles/background-attachment.d.ts +5 -0
  37. package/styles/background-blend-mode.d.ts +4 -0
  38. package/styles/background-clip.d.ts +8 -0
  39. package/styles/background-color.d.ts +8 -0
  40. package/styles/background-image.d.ts +5 -0
  41. package/styles/background-origin.d.ts +10 -0
  42. package/styles/background-position.d.ts +6 -0
  43. package/styles/background-repeat.d.ts +5 -0
  44. package/styles/background-size.d.ts +5 -0
  45. package/styles/background.d.ts +7 -0
  46. package/styles/border-collapse.d.ts +5 -0
  47. package/styles/border-color.d.ts +11 -0
  48. package/styles/border-image-outset.d.ts +4 -0
  49. package/styles/border-image-repeat.d.ts +5 -0
  50. package/styles/border-image-slice.d.ts +5 -0
  51. package/styles/border-image-source.d.ts +5 -0
  52. package/styles/border-image-width.d.ts +5 -0
  53. package/styles/border-image.d.ts +5 -0
  54. package/styles/border-radius.d.ts +13 -0
  55. package/styles/border-spacing.d.ts +4 -0
  56. package/styles/border-style.d.ts +9 -0
  57. package/styles/border-width.d.ts +9 -0
  58. package/styles/border.d.ts +10 -0
  59. package/styles/box-decoration-break.d.ts +8 -0
  60. package/styles/box-shadow.d.ts +6 -0
  61. package/styles/box-sizing.d.ts +9 -0
  62. package/styles/break-after.d.ts +4 -0
  63. package/styles/break-before.d.ts +4 -0
  64. package/styles/break-inside.d.ts +4 -0
  65. package/styles/caret-color.d.ts +7 -0
  66. package/styles/clear.d.ts +4 -0
  67. package/styles/clip-path.d.ts +14 -0
  68. package/styles/column-span.d.ts +5 -0
  69. package/styles/columns.d.ts +7 -0
  70. package/styles/contain.d.ts +4 -0
  71. package/styles/content.d.ts +4 -0
  72. package/styles/cursor.d.ts +4 -0
  73. package/styles/cx.d.ts +5 -0
  74. package/styles/cy.d.ts +5 -0
  75. package/styles/direction.d.ts +4 -0
  76. package/styles/display.d.ts +18 -0
  77. package/styles/fill.d.ts +6 -0
  78. package/styles/filter.d.ts +6 -0
  79. package/styles/flex-basis.d.ts +10 -0
  80. package/styles/flex-direction.d.ts +9 -0
  81. package/styles/flex-grow.d.ts +5 -0
  82. package/styles/flex-shrink.d.ts +5 -0
  83. package/styles/flex-wrap.d.ts +5 -0
  84. package/styles/flex.d.ts +6 -0
  85. package/styles/float.d.ts +4 -0
  86. package/styles/font-color.d.ts +8 -0
  87. package/styles/font-family.d.ts +10 -0
  88. package/styles/font-size.d.ts +5 -0
  89. package/styles/font-smoothing.d.ts +9 -0
  90. package/styles/font-style.d.ts +6 -0
  91. package/styles/font-variant-numeric.d.ts +5 -0
  92. package/styles/font-weight.d.ts +17 -0
  93. package/styles/font.d.ts +8 -0
  94. package/styles/gap.d.ts +9 -0
  95. package/styles/grid-area.d.ts +6 -0
  96. package/styles/grid-auto-columns.d.ts +9 -0
  97. package/styles/grid-auto-flow.d.ts +5 -0
  98. package/styles/grid-auto-rows.d.ts +8 -0
  99. package/styles/grid-column-end.d.ts +6 -0
  100. package/styles/grid-column-start.d.ts +6 -0
  101. package/styles/grid-column.d.ts +8 -0
  102. package/styles/grid-columns.d.ts +9 -0
  103. package/styles/grid-row-end.d.ts +5 -0
  104. package/styles/grid-row-start.d.ts +5 -0
  105. package/styles/grid-row.d.ts +8 -0
  106. package/styles/grid-rows.d.ts +8 -0
  107. package/styles/grid-template-areas.d.ts +4 -0
  108. package/styles/grid-template-columns.d.ts +9 -0
  109. package/styles/grid-template-rows.d.ts +8 -0
  110. package/styles/grid-template.d.ts +5 -0
  111. package/styles/grid.d.ts +5 -0
  112. package/styles/height.d.ts +11 -0
  113. package/styles/index.d.ts +17 -0
  114. package/styles/inset.d.ts +22 -0
  115. package/styles/isolation.d.ts +7 -0
  116. package/styles/justify-content.d.ts +5 -0
  117. package/styles/justify-items.d.ts +5 -0
  118. package/styles/justify-self.d.ts +5 -0
  119. package/styles/letter-spacing.d.ts +6 -0
  120. package/styles/line-height.d.ts +6 -0
  121. package/styles/lines.d.ts +9 -0
  122. package/styles/list-style-image.d.ts +5 -0
  123. package/styles/list-style-position.d.ts +5 -0
  124. package/styles/list-style-type.d.ts +5 -0
  125. package/styles/list-style.d.ts +5 -0
  126. package/styles/margin.d.ts +9 -0
  127. package/styles/mask-image.d.ts +7 -0
  128. package/styles/max-height.d.ts +11 -0
  129. package/styles/max-width.d.ts +11 -0
  130. package/styles/min-height.d.ts +11 -0
  131. package/styles/min-width.d.ts +11 -0
  132. package/styles/mix-blend-mode.d.ts +5 -0
  133. package/styles/object-fit.d.ts +5 -0
  134. package/styles/object-position.d.ts +5 -0
  135. package/styles/opacity.d.ts +5 -0
  136. package/styles/order.d.ts +10 -0
  137. package/styles/outline-color.d.ts +6 -0
  138. package/styles/outline-offset.d.ts +4 -0
  139. package/styles/outline-style.d.ts +5 -0
  140. package/styles/outline-width.d.ts +5 -0
  141. package/styles/outline.d.ts +5 -0
  142. package/styles/overflow.d.ts +9 -0
  143. package/styles/overscroll-behavior.d.ts +8 -0
  144. package/styles/padding.d.ts +9 -0
  145. package/styles/place-content.d.ts +5 -0
  146. package/styles/place-items.d.ts +5 -0
  147. package/styles/place-self.d.ts +5 -0
  148. package/styles/placement.d.ts +7 -0
  149. package/styles/pointer-events.d.ts +4 -0
  150. package/styles/position.d.ts +15 -0
  151. package/styles/quotes.d.ts +4 -0
  152. package/styles/resize.d.ts +4 -0
  153. package/styles/rx.d.ts +5 -0
  154. package/styles/ry.d.ts +5 -0
  155. package/styles/scroll-behavior.d.ts +4 -0
  156. package/styles/scroll-margin.d.ts +9 -0
  157. package/styles/scroll-padding.d.ts +9 -0
  158. package/styles/scroll-snap-align.d.ts +5 -0
  159. package/styles/scroll-snap-stop.d.ts +5 -0
  160. package/styles/scroll-snap-type.d.ts +5 -0
  161. package/styles/shape-image-threshold.d.ts +5 -0
  162. package/styles/shape-margin.d.ts +5 -0
  163. package/styles/shape-outside.d.ts +11 -0
  164. package/styles/spacing.d.ts +9 -0
  165. package/styles/stroke-dasharray.d.ts +4 -0
  166. package/styles/stroke-dashoffset.d.ts +4 -0
  167. package/styles/stroke-width.d.ts +5 -0
  168. package/styles/stroke.d.ts +5 -0
  169. package/styles/table-layout.d.ts +4 -0
  170. package/styles/text-align.d.ts +5 -0
  171. package/styles/text-decoration-color.d.ts +6 -0
  172. package/styles/text-decoration-line.d.ts +5 -0
  173. package/styles/text-decoration-style.d.ts +5 -0
  174. package/styles/text-decoration-thickness.d.ts +6 -0
  175. package/styles/text-decoration.d.ts +7 -0
  176. package/styles/text-fill-color.d.ts +10 -0
  177. package/styles/text-indent.d.ts +4 -0
  178. package/styles/text-orientation.d.ts +5 -0
  179. package/styles/text-overflow.d.ts +5 -0
  180. package/styles/text-rendering.d.ts +5 -0
  181. package/styles/text-shadow.d.ts +4 -0
  182. package/styles/text-size.d.ts +8 -0
  183. package/styles/text-stroke-color.d.ts +10 -0
  184. package/styles/text-stroke-width.d.ts +8 -0
  185. package/styles/text-stroke.d.ts +8 -0
  186. package/styles/text-transform.d.ts +5 -0
  187. package/styles/text-underline-offset.d.ts +4 -0
  188. package/styles/touch-action.d.ts +4 -0
  189. package/styles/transform-box.d.ts +12 -0
  190. package/styles/transform-origin.d.ts +6 -0
  191. package/styles/transform-style.d.ts +5 -0
  192. package/styles/transform.d.ts +7 -0
  193. package/styles/transition-delay.d.ts +6 -0
  194. package/styles/transition-duration.d.ts +6 -0
  195. package/styles/transition-property.d.ts +5 -0
  196. package/styles/transition-timing-function.d.ts +5 -0
  197. package/styles/transition.d.ts +6 -0
  198. package/styles/user-drag.d.ts +7 -0
  199. package/styles/user-select.d.ts +7 -0
  200. package/styles/variable.d.ts +9 -0
  201. package/styles/vertical-align.d.ts +5 -0
  202. package/styles/visibility.d.ts +8 -0
  203. package/styles/white-space.d.ts +10 -0
  204. package/styles/width.d.ts +11 -0
  205. package/styles/will-change.d.ts +4 -0
  206. package/styles/word-break.d.ts +11 -0
  207. package/styles/word-spacing.d.ts +4 -0
  208. package/styles/writing-mode.d.ts +4 -0
  209. package/styles/x.d.ts +5 -0
  210. package/styles/y.d.ts +5 -0
  211. package/styles/z-index.d.ts +6 -0
  212. package/utils/generate-color-variables-text.d.ts +1 -0
  213. package/utils/get-border-props.d.ts +3 -0
  214. package/utils/get-css-property-text.d.ts +5 -0
  215. package/utils/hex-to-rgb.d.ts +1 -0
  216. package/utils/normalize-css-calc-text.d.ts +5 -0
  217. package/utils/parse-value-unit.d.ts +1 -0
  218. package/utils/parse-value.d.ts +5 -0
  219. package/utils/rgb-to-hex.d.ts +1 -0
@@ -0,0 +1,9 @@
1
+ import { Style } from '../style';
2
+ export declare class Variable extends Style {
3
+ static id: string;
4
+ static matches: RegExp;
5
+ static unit: string;
6
+ get props(): {
7
+ [key: string]: any;
8
+ };
9
+ }
@@ -0,0 +1,5 @@
1
+ import { Style } from '../style';
2
+ export declare class VerticalAlign extends Style {
3
+ static matches: RegExp;
4
+ static key: string;
5
+ }
@@ -0,0 +1,8 @@
1
+ import { Style } from '../style';
2
+ export declare class Visibility extends Style {
3
+ static key: string;
4
+ static semantics: {
5
+ visible: string;
6
+ invisible: string;
7
+ };
8
+ }
@@ -0,0 +1,10 @@
1
+ import { Style } from '../style';
2
+ export declare class WhiteSpace extends Style {
3
+ static key: string;
4
+ static unit: string;
5
+ static semantics: {
6
+ 'break-spaces': {
7
+ 'white-space': string;
8
+ };
9
+ };
10
+ }
@@ -0,0 +1,11 @@
1
+ import { Style } from '../style';
2
+ export declare class Width extends Style {
3
+ static matches: RegExp;
4
+ static key: string;
5
+ static values: {
6
+ full: string;
7
+ fit: string;
8
+ max: string;
9
+ min: string;
10
+ };
11
+ }
@@ -0,0 +1,4 @@
1
+ import { Style } from '../style';
2
+ export declare class WillChange extends Style {
3
+ static key: string;
4
+ }
@@ -0,0 +1,11 @@
1
+ import { Style } from '../style';
2
+ export declare class WordBreak extends Style {
3
+ static key: string;
4
+ static unit: string;
5
+ static semantics: {
6
+ 'break-word': {
7
+ 'overflow-wrap': string;
8
+ overflow: string;
9
+ };
10
+ };
11
+ }
@@ -0,0 +1,4 @@
1
+ import { Style } from '../style';
2
+ export declare class WordSpacing extends Style {
3
+ static key: string;
4
+ }
@@ -0,0 +1,4 @@
1
+ import { Style } from '../style';
2
+ export declare class WritingMode extends Style {
3
+ static key: string;
4
+ }
package/styles/x.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ import { Style } from '../style';
2
+ export declare class X extends Style {
3
+ static key: string;
4
+ static unit: string;
5
+ }
package/styles/y.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ import { Style } from '../style';
2
+ export declare class Y extends Style {
3
+ static key: string;
4
+ static unit: string;
5
+ }
@@ -0,0 +1,6 @@
1
+ import { Style } from '../style';
2
+ export declare class ZIndex extends Style {
3
+ static matches: RegExp;
4
+ static key: string;
5
+ static unit: string;
6
+ }
@@ -0,0 +1 @@
1
+ export declare function generateColorVariablesText(colorName: string, rgbColors: Record<string, string>): string;
@@ -0,0 +1,3 @@
1
+ export declare function getBorderProps(name: string, instance: object, suffix?: string): {
2
+ [x: string]: object;
3
+ };
@@ -0,0 +1,5 @@
1
+ export declare function getCssPropertyText(name: string, property: {
2
+ unit?: string;
3
+ value: any;
4
+ important?: boolean;
5
+ }): string;
@@ -0,0 +1 @@
1
+ export declare function hexToRgb(hex: string): number[];
@@ -0,0 +1,5 @@
1
+ /**
2
+ * 將 calc( 正規化
3
+ * https://aoyue.notion.site/css-calc-2f37632c5cf749949cc060f0f2111443
4
+ */
5
+ export declare function normalizeCssCalcText(value: string): string;
@@ -0,0 +1 @@
1
+ export declare function parseValueUnit(value: string, getUnit: (method: string) => string): string;
@@ -0,0 +1,5 @@
1
+ export declare function parseValue(token: string | number, defaultUnit?: string, colors?: Record<string, Record<string, string>>): {
2
+ value: any;
3
+ unit: string;
4
+ unitToken: string;
5
+ };
@@ -0,0 +1 @@
1
+ export declare function rgbToHex(r: number, g: number, b: number): string;