@moneyforward/mfui-components 3.5.0 → 3.7.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.
@@ -22,140 +22,9 @@ export type Assign<T, U> = {
22
22
  * Native css properties
23
23
  * -----------------------------------------------------------------------------*/
24
24
 
25
- type DashedIdent = `--${string}`
26
-
27
- type StringToMultiple<T extends string> = T | `${T}, ${T}`
28
-
29
- export type PositionAreaAxis =
30
- | 'left'
31
- | 'center'
32
- | 'right'
33
- | 'x-start'
34
- | 'x-end'
35
- | 'span-x-start'
36
- | 'span-x-end'
37
- | 'x-self-start'
38
- | 'x-self-end'
39
- | 'span-x-self-start'
40
- | 'span-x-self-end'
41
- | 'span-all'
42
- | 'top'
43
- | 'bottom'
44
- | 'span-top'
45
- | 'span-bottom'
46
- | 'y-start'
47
- | 'y-end'
48
- | 'span-y-start'
49
- | 'span-y-end'
50
- | 'y-self-start'
51
- | 'y-self-end'
52
- | 'span-y-self-start'
53
- | 'span-y-self-end'
54
- | 'block-start'
55
- | 'block-end'
56
- | 'span-block-start'
57
- | 'span-block-end'
58
- | 'inline-start'
59
- | 'inline-end'
60
- | 'span-inline-start'
61
- | 'span-inline-end'
62
- | 'self-block-start'
63
- | 'self-block-end'
64
- | 'span-self-block-start'
65
- | 'span-self-block-end'
66
- | 'self-inline-start'
67
- | 'self-inline-end'
68
- | 'span-self-inline-start'
69
- | 'span-self-inline-end'
70
- | 'start'
71
- | 'end'
72
- | 'span-start'
73
- | 'span-end'
74
- | 'self-start'
75
- | 'self-end'
76
- | 'span-self-start'
77
- | 'span-self-end'
78
-
79
- type PositionTry =
80
- | 'normal'
81
- | 'flip-block'
82
- | 'flip-inline'
83
- | 'top'
84
- | 'bottom'
85
- | 'left'
86
- | 'right'
87
- | 'block-start'
88
- | 'block-end'
89
- | 'inline-start'
90
- | 'inline-end'
91
- | DashedIdent
25
+ type CornerShapeValue = 'round' | 'square' | 'bevel' | 'scoop' | 'notch' | 'squircle' | `superellipse(${number})`
92
26
 
93
27
  export interface ModernCssProperties {
94
- /**
95
- * Defines a name for the anchor element that can be referenced by positioned elements.
96
- */
97
- anchorName?: Globals | 'none' | DashedIdent | StringToMultiple<DashedIdent>
98
-
99
- /**
100
- * Defines the scope of anchor names within the element.
101
- */
102
- anchorScope?: Globals | 'none' | 'all' | DashedIdent | StringToMultiple<DashedIdent>
103
-
104
- /**
105
- * Controls how form elements size themselves.
106
- */
107
- fieldSizing?: Globals | 'fixed' | 'content'
108
-
109
- /**
110
- * Controls whether interpolation of size values should allow keywords.
111
- */
112
- interpolateSize?: Globals | 'allow-keywords' | 'numeric-only'
113
-
114
- /**
115
- * Specifies the anchor element that this positioned element should be positioned relative to.
116
- */
117
- positionAnchor?: Globals | 'auto' | DashedIdent
118
-
119
- /**
120
- * Specifies the area within the anchor element where this positioned element should be placed.
121
- */
122
- positionArea?: Globals | 'auto' | PositionAreaAxis | `${PositionAreaAxis} ${PositionAreaAxis}` | String
123
-
124
- /**
125
- * Specifies the position try options for the element.
126
- */
127
- positionTry?: Globals | StringToMultiple<PositionTry> | String
128
-
129
- /**
130
- * Specifies fallback position try options when the primary position fails.
131
- */
132
- positionTryFallback?: Globals | 'none' | StringToMultiple<PositionTry> | String
133
-
134
- /**
135
- * Specifies the order in which position try options should be attempted.
136
- */
137
- positionTryOrder?: Globals | 'normal' | 'most-width' | 'most-height' | 'most-block-size' | 'most-inline-size'
138
-
139
- /**
140
- * Controls when the positioned element should be visible.
141
- */
142
- positionVisibility?: Globals | 'always' | 'anchors-visible' | 'no-overflow'
143
-
144
- /**
145
- * Controls whether text should wrap or not.
146
- */
147
- textWrapMode?: Globals | 'wrap' | 'nowrap'
148
-
149
- /**
150
- * Controls trimming of spacing in text.
151
- */
152
- textSpacingTrim?: Globals | 'normal' | 'space-all' | 'space-first' | 'trim-start'
153
-
154
- /**
155
- * Controls the style of text wrapping.
156
- */
157
- textWrapStyle?: Globals | 'auto' | 'balance' | 'pretty' | 'stable'
158
-
159
28
  /**
160
29
  * Controls whether the entire element should be draggable instead of its contents.
161
30
  */
@@ -180,6 +49,19 @@ export interface ModernCssProperties {
180
49
  * Controls the display of text content for security purposes (e.g., password fields).
181
50
  */
182
51
  WebkitTextSecurity?: Globals | 'none' | 'circle' | 'disc' | 'square'
52
+
53
+ /**
54
+ * Specifies the shape of a box's corners within the area defined by the border-radius property.
55
+ * @experimental
56
+ * @see https://developer.mozilla.org/en-US/docs/Web/CSS/corner-shape
57
+ */
58
+ cornerShape?:
59
+ | Globals
60
+ | CornerShapeValue
61
+ | `${CornerShapeValue} ${CornerShapeValue}`
62
+ | `${CornerShapeValue} ${CornerShapeValue} ${CornerShapeValue}`
63
+ | `${CornerShapeValue} ${CornerShapeValue} ${CornerShapeValue} ${CornerShapeValue}`
64
+ | String
183
65
  }
184
66
 
185
67
  export type CssProperty = keyof PropertiesFallback