@momentum-design/components 0.25.1 → 0.25.2
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/dist/custom-elements.json +230 -230
- package/dist/react/index.d.ts +1 -1
- package/dist/react/index.js +1 -1
- package/package.json +1 -1
@@ -2000,6 +2000,236 @@
|
|
2000
2000
|
}
|
2001
2001
|
]
|
2002
2002
|
},
|
2003
|
+
{
|
2004
|
+
"kind": "javascript-module",
|
2005
|
+
"path": "components/divider/divider.component.js",
|
2006
|
+
"declarations": [
|
2007
|
+
{
|
2008
|
+
"kind": "class",
|
2009
|
+
"description": "`mdc-divider` is a component that provides a line to separate and organize content.\nIt can also include a button or text positioned centrally, allowing users to interact with the layout.\n\n**Divider Orientation:**\n- **Horizontal**: A thin, horizontal line.\n- **Vertical**: A thin, vertical line.\n\n**Divider Variants:**\n- **solid**: Solid line.\n- **gradient**: Gradient Line.\n\n**Divider Types:**\n- The type of divider is inferred based on the kind of slot present.\n - **Primary**: A simple horizontal or vertical divider.\n - **Text**: A horizontal divider with a text label in the center.\n - **Grabber Button**: A horizontal or vertical divider with a styled button in the center.\n\n**Accessibility:**\n- When the slot is replaced by an `mdc-button`:\n - `aria-label` should be passed to the `mdc-button`.\n - `aria-expanded` should be passed to the `mdc-button`.\n\n**Notes:**\n- If the slot is replaced by an invalid tag name or contains multiple elements,\n the divider defaults to the **Primary** type.\n- To override the styles of the divider, use the provided CSS custom properties.",
|
2010
|
+
"name": "Divider",
|
2011
|
+
"cssProperties": [
|
2012
|
+
{
|
2013
|
+
"description": "background color of the divider",
|
2014
|
+
"name": "--mdc-divider-background-color"
|
2015
|
+
},
|
2016
|
+
{
|
2017
|
+
"description": "width of the divider",
|
2018
|
+
"name": "--mdc-divider-width"
|
2019
|
+
},
|
2020
|
+
{
|
2021
|
+
"description": "gradient of the horizontal divider",
|
2022
|
+
"name": "--mdc-divider-horizontal-gradient"
|
2023
|
+
},
|
2024
|
+
{
|
2025
|
+
"description": "gradient of the vertical divider",
|
2026
|
+
"name": "--mdc-divider-vertical-gradient"
|
2027
|
+
},
|
2028
|
+
{
|
2029
|
+
"description": "font size of label in the text divider",
|
2030
|
+
"name": "--mdc-divider-text-size"
|
2031
|
+
},
|
2032
|
+
{
|
2033
|
+
"description": "font color of label in the text divider",
|
2034
|
+
"name": "--mdc-divider-text-color"
|
2035
|
+
},
|
2036
|
+
{
|
2037
|
+
"description": "left and right margin of label in the text divider",
|
2038
|
+
"name": "--mdc-divider-text-margin"
|
2039
|
+
},
|
2040
|
+
{
|
2041
|
+
"description": "line height of label in the text divider",
|
2042
|
+
"name": "--mdc-divider-text-line-height"
|
2043
|
+
},
|
2044
|
+
{
|
2045
|
+
"description": "border radius of the grabber button",
|
2046
|
+
"name": "--mdc-divider-grabber-button-border-radius"
|
2047
|
+
}
|
2048
|
+
],
|
2049
|
+
"members": [
|
2050
|
+
{
|
2051
|
+
"kind": "field",
|
2052
|
+
"name": "orientation",
|
2053
|
+
"type": {
|
2054
|
+
"text": "DividerOrientation"
|
2055
|
+
},
|
2056
|
+
"description": "Two orientations of divider\n- **horizontal**: A thin, horizontal line with 0.0625rem width.\n- **vertical**: A thin, vertical line with 0.0625rem width.\n\nNote: We do not support \"Vertical Text Divider\" as of now.",
|
2057
|
+
"default": "horizontal",
|
2058
|
+
"attribute": "orientation",
|
2059
|
+
"reflects": true
|
2060
|
+
},
|
2061
|
+
{
|
2062
|
+
"kind": "field",
|
2063
|
+
"name": "variant",
|
2064
|
+
"type": {
|
2065
|
+
"text": "DividerVariant"
|
2066
|
+
},
|
2067
|
+
"description": "Two variants of divider\n- **solid**: Solid line.\n- **gradient**: Gradient Line that fades on either sides of the divider.",
|
2068
|
+
"default": "solid",
|
2069
|
+
"attribute": "variant",
|
2070
|
+
"reflects": true
|
2071
|
+
},
|
2072
|
+
{
|
2073
|
+
"kind": "field",
|
2074
|
+
"name": "arrowDirection",
|
2075
|
+
"type": {
|
2076
|
+
"text": "Directions"
|
2077
|
+
},
|
2078
|
+
"description": "Direction of the arrow icon, if applicable.\n- **positive**\n- **negative**\n\nNote: Positive and Negative directions are defined based on Cartesian plane.",
|
2079
|
+
"default": "'negative'",
|
2080
|
+
"attribute": "arrow-direction",
|
2081
|
+
"reflects": true
|
2082
|
+
},
|
2083
|
+
{
|
2084
|
+
"kind": "field",
|
2085
|
+
"name": "buttonPosition",
|
2086
|
+
"type": {
|
2087
|
+
"text": "Directions"
|
2088
|
+
},
|
2089
|
+
"description": "Position of the button, if applicable.\n- **positive**\n- **negative**\n\nNote: Positive and Negative directions are defined based on Cartesian plane.",
|
2090
|
+
"default": "'negative'",
|
2091
|
+
"attribute": "button-position",
|
2092
|
+
"reflects": true
|
2093
|
+
},
|
2094
|
+
{
|
2095
|
+
"kind": "method",
|
2096
|
+
"name": "setVariant",
|
2097
|
+
"privacy": "private",
|
2098
|
+
"parameters": [
|
2099
|
+
{
|
2100
|
+
"name": "variant",
|
2101
|
+
"type": {
|
2102
|
+
"text": "DividerVariant"
|
2103
|
+
},
|
2104
|
+
"description": "The variant to set."
|
2105
|
+
}
|
2106
|
+
],
|
2107
|
+
"description": "Sets the variant attribute for the divider component.\nIf the provided variant is not included in the DIVIDER_VARIANT,\nit defaults to the value specified in DEFAULTS.VARIANT."
|
2108
|
+
},
|
2109
|
+
{
|
2110
|
+
"kind": "method",
|
2111
|
+
"name": "setOrientation",
|
2112
|
+
"privacy": "private",
|
2113
|
+
"parameters": [
|
2114
|
+
{
|
2115
|
+
"name": "orientation",
|
2116
|
+
"type": {
|
2117
|
+
"text": "DividerOrientation"
|
2118
|
+
},
|
2119
|
+
"description": "The orientation to set."
|
2120
|
+
}
|
2121
|
+
],
|
2122
|
+
"description": "Sets the orientation attribute for the divider component.\nIf the provided orientation is not included in the DIVIDER_ORIENTATION,\nit defaults to the value specified in DEFAULTS.ORIENTATION."
|
2123
|
+
},
|
2124
|
+
{
|
2125
|
+
"kind": "method",
|
2126
|
+
"name": "ensureValidDirections",
|
2127
|
+
"privacy": "private",
|
2128
|
+
"description": "Sets the buttonPosition and arrowDirection attribute for the divider component.\nIf the provided buttonPosition and arrowDirection are not included in the DIRECTIONS,\nit defaults to the value specified in DIRECTIONS based on the ORIENTATION.",
|
2129
|
+
"parameters": [
|
2130
|
+
{
|
2131
|
+
"description": "The buttonPosition to set.",
|
2132
|
+
"name": "buttonPosition"
|
2133
|
+
},
|
2134
|
+
{
|
2135
|
+
"description": "The arrowDirection to set.",
|
2136
|
+
"name": "arrowDirection"
|
2137
|
+
}
|
2138
|
+
]
|
2139
|
+
},
|
2140
|
+
{
|
2141
|
+
"kind": "method",
|
2142
|
+
"name": "setGrabberButton",
|
2143
|
+
"privacy": "private",
|
2144
|
+
"return": {
|
2145
|
+
"type": {
|
2146
|
+
"text": "void"
|
2147
|
+
}
|
2148
|
+
},
|
2149
|
+
"description": "Configures the grabber button within the divider.\n\n- Sets the `prefix-icon` attribute for the grabber button based\non the `arrow-direction` and `orientation` properties.\n\nThis method updates the DOM element dynamically if a grabber button is present."
|
2150
|
+
},
|
2151
|
+
{
|
2152
|
+
"kind": "method",
|
2153
|
+
"name": "getArrowIcon",
|
2154
|
+
"privacy": "private",
|
2155
|
+
"return": {
|
2156
|
+
"type": {
|
2157
|
+
"text": ""
|
2158
|
+
}
|
2159
|
+
},
|
2160
|
+
"description": "Determines the arrow icon based on the consumer-defined `arrowDirection`."
|
2161
|
+
},
|
2162
|
+
{
|
2163
|
+
"kind": "method",
|
2164
|
+
"name": "inferDividerType",
|
2165
|
+
"privacy": "private",
|
2166
|
+
"description": "Infers the type of divider based on the kind of slot present.",
|
2167
|
+
"parameters": [
|
2168
|
+
{
|
2169
|
+
"description": "default slot of divider",
|
2170
|
+
"name": "slot"
|
2171
|
+
}
|
2172
|
+
]
|
2173
|
+
}
|
2174
|
+
],
|
2175
|
+
"attributes": [
|
2176
|
+
{
|
2177
|
+
"name": "orientation",
|
2178
|
+
"type": {
|
2179
|
+
"text": "DividerOrientation"
|
2180
|
+
},
|
2181
|
+
"description": "Two orientations of divider\n- **horizontal**: A thin, horizontal line with 0.0625rem width.\n- **vertical**: A thin, vertical line with 0.0625rem width.\n\nNote: We do not support \"Vertical Text Divider\" as of now.",
|
2182
|
+
"default": "horizontal",
|
2183
|
+
"fieldName": "orientation"
|
2184
|
+
},
|
2185
|
+
{
|
2186
|
+
"name": "variant",
|
2187
|
+
"type": {
|
2188
|
+
"text": "DividerVariant"
|
2189
|
+
},
|
2190
|
+
"description": "Two variants of divider\n- **solid**: Solid line.\n- **gradient**: Gradient Line that fades on either sides of the divider.",
|
2191
|
+
"default": "solid",
|
2192
|
+
"fieldName": "variant"
|
2193
|
+
},
|
2194
|
+
{
|
2195
|
+
"name": "arrow-direction",
|
2196
|
+
"type": {
|
2197
|
+
"text": "Directions"
|
2198
|
+
},
|
2199
|
+
"description": "Direction of the arrow icon, if applicable.\n- **positive**\n- **negative**\n\nNote: Positive and Negative directions are defined based on Cartesian plane.",
|
2200
|
+
"default": "'negative'",
|
2201
|
+
"fieldName": "arrowDirection"
|
2202
|
+
},
|
2203
|
+
{
|
2204
|
+
"name": "button-position",
|
2205
|
+
"type": {
|
2206
|
+
"text": "Directions"
|
2207
|
+
},
|
2208
|
+
"description": "Position of the button, if applicable.\n- **positive**\n- **negative**\n\nNote: Positive and Negative directions are defined based on Cartesian plane.",
|
2209
|
+
"default": "'negative'",
|
2210
|
+
"fieldName": "buttonPosition"
|
2211
|
+
}
|
2212
|
+
],
|
2213
|
+
"superclass": {
|
2214
|
+
"name": "Component",
|
2215
|
+
"module": "/src/models"
|
2216
|
+
},
|
2217
|
+
"tagName": "mdc-divider",
|
2218
|
+
"jsDoc": "/**\n * `mdc-divider` is a component that provides a line to separate and organize content.\n * It can also include a button or text positioned centrally, allowing users to interact with the layout.\n *\n * **Divider Orientation:**\n * - **Horizontal**: A thin, horizontal line.\n * - **Vertical**: A thin, vertical line.\n *\n * **Divider Variants:**\n * - **solid**: Solid line.\n * - **gradient**: Gradient Line.\n *\n * **Divider Types:**\n * - The type of divider is inferred based on the kind of slot present.\n * - **Primary**: A simple horizontal or vertical divider.\n * - **Text**: A horizontal divider with a text label in the center.\n * - **Grabber Button**: A horizontal or vertical divider with a styled button in the center.\n *\n * **Accessibility:**\n * - When the slot is replaced by an `mdc-button`:\n * - `aria-label` should be passed to the `mdc-button`.\n * - `aria-expanded` should be passed to the `mdc-button`.\n *\n * **Notes:**\n * - If the slot is replaced by an invalid tag name or contains multiple elements,\n * the divider defaults to the **Primary** type.\n * - To override the styles of the divider, use the provided CSS custom properties.\n *\n * @tagname mdc-divider\n *\n * @cssproperty --mdc-divider-background-color - background color of the divider\n * @cssproperty --mdc-divider-width - width of the divider\n * @cssproperty --mdc-divider-horizontal-gradient - gradient of the horizontal divider\n * @cssproperty --mdc-divider-vertical-gradient - gradient of the vertical divider\n * @cssproperty --mdc-divider-text-size - font size of label in the text divider\n * @cssproperty --mdc-divider-text-color - font color of label in the text divider\n * @cssproperty --mdc-divider-text-margin - left and right margin of label in the text divider\n * @cssproperty --mdc-divider-text-line-height - line height of label in the text divider\n * @cssproperty --mdc-divider-grabber-button-border-radius - border radius of the grabber button\n */",
|
2219
|
+
"customElement": true
|
2220
|
+
}
|
2221
|
+
],
|
2222
|
+
"exports": [
|
2223
|
+
{
|
2224
|
+
"kind": "js",
|
2225
|
+
"name": "default",
|
2226
|
+
"declaration": {
|
2227
|
+
"name": "Divider",
|
2228
|
+
"module": "components/divider/divider.component.js"
|
2229
|
+
}
|
2230
|
+
}
|
2231
|
+
]
|
2232
|
+
},
|
2003
2233
|
{
|
2004
2234
|
"kind": "javascript-module",
|
2005
2235
|
"path": "components/checkbox/checkbox.component.js",
|
@@ -2539,236 +2769,6 @@
|
|
2539
2769
|
}
|
2540
2770
|
]
|
2541
2771
|
},
|
2542
|
-
{
|
2543
|
-
"kind": "javascript-module",
|
2544
|
-
"path": "components/divider/divider.component.js",
|
2545
|
-
"declarations": [
|
2546
|
-
{
|
2547
|
-
"kind": "class",
|
2548
|
-
"description": "`mdc-divider` is a component that provides a line to separate and organize content.\nIt can also include a button or text positioned centrally, allowing users to interact with the layout.\n\n**Divider Orientation:**\n- **Horizontal**: A thin, horizontal line.\n- **Vertical**: A thin, vertical line.\n\n**Divider Variants:**\n- **solid**: Solid line.\n- **gradient**: Gradient Line.\n\n**Divider Types:**\n- The type of divider is inferred based on the kind of slot present.\n - **Primary**: A simple horizontal or vertical divider.\n - **Text**: A horizontal divider with a text label in the center.\n - **Grabber Button**: A horizontal or vertical divider with a styled button in the center.\n\n**Accessibility:**\n- When the slot is replaced by an `mdc-button`:\n - `aria-label` should be passed to the `mdc-button`.\n - `aria-expanded` should be passed to the `mdc-button`.\n\n**Notes:**\n- If the slot is replaced by an invalid tag name or contains multiple elements,\n the divider defaults to the **Primary** type.\n- To override the styles of the divider, use the provided CSS custom properties.",
|
2549
|
-
"name": "Divider",
|
2550
|
-
"cssProperties": [
|
2551
|
-
{
|
2552
|
-
"description": "background color of the divider",
|
2553
|
-
"name": "--mdc-divider-background-color"
|
2554
|
-
},
|
2555
|
-
{
|
2556
|
-
"description": "width of the divider",
|
2557
|
-
"name": "--mdc-divider-width"
|
2558
|
-
},
|
2559
|
-
{
|
2560
|
-
"description": "gradient of the horizontal divider",
|
2561
|
-
"name": "--mdc-divider-horizontal-gradient"
|
2562
|
-
},
|
2563
|
-
{
|
2564
|
-
"description": "gradient of the vertical divider",
|
2565
|
-
"name": "--mdc-divider-vertical-gradient"
|
2566
|
-
},
|
2567
|
-
{
|
2568
|
-
"description": "font size of label in the text divider",
|
2569
|
-
"name": "--mdc-divider-text-size"
|
2570
|
-
},
|
2571
|
-
{
|
2572
|
-
"description": "font color of label in the text divider",
|
2573
|
-
"name": "--mdc-divider-text-color"
|
2574
|
-
},
|
2575
|
-
{
|
2576
|
-
"description": "left and right margin of label in the text divider",
|
2577
|
-
"name": "--mdc-divider-text-margin"
|
2578
|
-
},
|
2579
|
-
{
|
2580
|
-
"description": "line height of label in the text divider",
|
2581
|
-
"name": "--mdc-divider-text-line-height"
|
2582
|
-
},
|
2583
|
-
{
|
2584
|
-
"description": "border radius of the grabber button",
|
2585
|
-
"name": "--mdc-divider-grabber-button-border-radius"
|
2586
|
-
}
|
2587
|
-
],
|
2588
|
-
"members": [
|
2589
|
-
{
|
2590
|
-
"kind": "field",
|
2591
|
-
"name": "orientation",
|
2592
|
-
"type": {
|
2593
|
-
"text": "DividerOrientation"
|
2594
|
-
},
|
2595
|
-
"description": "Two orientations of divider\n- **horizontal**: A thin, horizontal line with 0.0625rem width.\n- **vertical**: A thin, vertical line with 0.0625rem width.\n\nNote: We do not support \"Vertical Text Divider\" as of now.",
|
2596
|
-
"default": "horizontal",
|
2597
|
-
"attribute": "orientation",
|
2598
|
-
"reflects": true
|
2599
|
-
},
|
2600
|
-
{
|
2601
|
-
"kind": "field",
|
2602
|
-
"name": "variant",
|
2603
|
-
"type": {
|
2604
|
-
"text": "DividerVariant"
|
2605
|
-
},
|
2606
|
-
"description": "Two variants of divider\n- **solid**: Solid line.\n- **gradient**: Gradient Line that fades on either sides of the divider.",
|
2607
|
-
"default": "solid",
|
2608
|
-
"attribute": "variant",
|
2609
|
-
"reflects": true
|
2610
|
-
},
|
2611
|
-
{
|
2612
|
-
"kind": "field",
|
2613
|
-
"name": "arrowDirection",
|
2614
|
-
"type": {
|
2615
|
-
"text": "Directions"
|
2616
|
-
},
|
2617
|
-
"description": "Direction of the arrow icon, if applicable.\n- **positive**\n- **negative**\n\nNote: Positive and Negative directions are defined based on Cartesian plane.",
|
2618
|
-
"default": "'negative'",
|
2619
|
-
"attribute": "arrow-direction",
|
2620
|
-
"reflects": true
|
2621
|
-
},
|
2622
|
-
{
|
2623
|
-
"kind": "field",
|
2624
|
-
"name": "buttonPosition",
|
2625
|
-
"type": {
|
2626
|
-
"text": "Directions"
|
2627
|
-
},
|
2628
|
-
"description": "Position of the button, if applicable.\n- **positive**\n- **negative**\n\nNote: Positive and Negative directions are defined based on Cartesian plane.",
|
2629
|
-
"default": "'negative'",
|
2630
|
-
"attribute": "button-position",
|
2631
|
-
"reflects": true
|
2632
|
-
},
|
2633
|
-
{
|
2634
|
-
"kind": "method",
|
2635
|
-
"name": "setVariant",
|
2636
|
-
"privacy": "private",
|
2637
|
-
"parameters": [
|
2638
|
-
{
|
2639
|
-
"name": "variant",
|
2640
|
-
"type": {
|
2641
|
-
"text": "DividerVariant"
|
2642
|
-
},
|
2643
|
-
"description": "The variant to set."
|
2644
|
-
}
|
2645
|
-
],
|
2646
|
-
"description": "Sets the variant attribute for the divider component.\nIf the provided variant is not included in the DIVIDER_VARIANT,\nit defaults to the value specified in DEFAULTS.VARIANT."
|
2647
|
-
},
|
2648
|
-
{
|
2649
|
-
"kind": "method",
|
2650
|
-
"name": "setOrientation",
|
2651
|
-
"privacy": "private",
|
2652
|
-
"parameters": [
|
2653
|
-
{
|
2654
|
-
"name": "orientation",
|
2655
|
-
"type": {
|
2656
|
-
"text": "DividerOrientation"
|
2657
|
-
},
|
2658
|
-
"description": "The orientation to set."
|
2659
|
-
}
|
2660
|
-
],
|
2661
|
-
"description": "Sets the orientation attribute for the divider component.\nIf the provided orientation is not included in the DIVIDER_ORIENTATION,\nit defaults to the value specified in DEFAULTS.ORIENTATION."
|
2662
|
-
},
|
2663
|
-
{
|
2664
|
-
"kind": "method",
|
2665
|
-
"name": "ensureValidDirections",
|
2666
|
-
"privacy": "private",
|
2667
|
-
"description": "Sets the buttonPosition and arrowDirection attribute for the divider component.\nIf the provided buttonPosition and arrowDirection are not included in the DIRECTIONS,\nit defaults to the value specified in DIRECTIONS based on the ORIENTATION.",
|
2668
|
-
"parameters": [
|
2669
|
-
{
|
2670
|
-
"description": "The buttonPosition to set.",
|
2671
|
-
"name": "buttonPosition"
|
2672
|
-
},
|
2673
|
-
{
|
2674
|
-
"description": "The arrowDirection to set.",
|
2675
|
-
"name": "arrowDirection"
|
2676
|
-
}
|
2677
|
-
]
|
2678
|
-
},
|
2679
|
-
{
|
2680
|
-
"kind": "method",
|
2681
|
-
"name": "setGrabberButton",
|
2682
|
-
"privacy": "private",
|
2683
|
-
"return": {
|
2684
|
-
"type": {
|
2685
|
-
"text": "void"
|
2686
|
-
}
|
2687
|
-
},
|
2688
|
-
"description": "Configures the grabber button within the divider.\n\n- Sets the `prefix-icon` attribute for the grabber button based\non the `arrow-direction` and `orientation` properties.\n\nThis method updates the DOM element dynamically if a grabber button is present."
|
2689
|
-
},
|
2690
|
-
{
|
2691
|
-
"kind": "method",
|
2692
|
-
"name": "getArrowIcon",
|
2693
|
-
"privacy": "private",
|
2694
|
-
"return": {
|
2695
|
-
"type": {
|
2696
|
-
"text": ""
|
2697
|
-
}
|
2698
|
-
},
|
2699
|
-
"description": "Determines the arrow icon based on the consumer-defined `arrowDirection`."
|
2700
|
-
},
|
2701
|
-
{
|
2702
|
-
"kind": "method",
|
2703
|
-
"name": "inferDividerType",
|
2704
|
-
"privacy": "private",
|
2705
|
-
"description": "Infers the type of divider based on the kind of slot present.",
|
2706
|
-
"parameters": [
|
2707
|
-
{
|
2708
|
-
"description": "default slot of divider",
|
2709
|
-
"name": "slot"
|
2710
|
-
}
|
2711
|
-
]
|
2712
|
-
}
|
2713
|
-
],
|
2714
|
-
"attributes": [
|
2715
|
-
{
|
2716
|
-
"name": "orientation",
|
2717
|
-
"type": {
|
2718
|
-
"text": "DividerOrientation"
|
2719
|
-
},
|
2720
|
-
"description": "Two orientations of divider\n- **horizontal**: A thin, horizontal line with 0.0625rem width.\n- **vertical**: A thin, vertical line with 0.0625rem width.\n\nNote: We do not support \"Vertical Text Divider\" as of now.",
|
2721
|
-
"default": "horizontal",
|
2722
|
-
"fieldName": "orientation"
|
2723
|
-
},
|
2724
|
-
{
|
2725
|
-
"name": "variant",
|
2726
|
-
"type": {
|
2727
|
-
"text": "DividerVariant"
|
2728
|
-
},
|
2729
|
-
"description": "Two variants of divider\n- **solid**: Solid line.\n- **gradient**: Gradient Line that fades on either sides of the divider.",
|
2730
|
-
"default": "solid",
|
2731
|
-
"fieldName": "variant"
|
2732
|
-
},
|
2733
|
-
{
|
2734
|
-
"name": "arrow-direction",
|
2735
|
-
"type": {
|
2736
|
-
"text": "Directions"
|
2737
|
-
},
|
2738
|
-
"description": "Direction of the arrow icon, if applicable.\n- **positive**\n- **negative**\n\nNote: Positive and Negative directions are defined based on Cartesian plane.",
|
2739
|
-
"default": "'negative'",
|
2740
|
-
"fieldName": "arrowDirection"
|
2741
|
-
},
|
2742
|
-
{
|
2743
|
-
"name": "button-position",
|
2744
|
-
"type": {
|
2745
|
-
"text": "Directions"
|
2746
|
-
},
|
2747
|
-
"description": "Position of the button, if applicable.\n- **positive**\n- **negative**\n\nNote: Positive and Negative directions are defined based on Cartesian plane.",
|
2748
|
-
"default": "'negative'",
|
2749
|
-
"fieldName": "buttonPosition"
|
2750
|
-
}
|
2751
|
-
],
|
2752
|
-
"superclass": {
|
2753
|
-
"name": "Component",
|
2754
|
-
"module": "/src/models"
|
2755
|
-
},
|
2756
|
-
"tagName": "mdc-divider",
|
2757
|
-
"jsDoc": "/**\n * `mdc-divider` is a component that provides a line to separate and organize content.\n * It can also include a button or text positioned centrally, allowing users to interact with the layout.\n *\n * **Divider Orientation:**\n * - **Horizontal**: A thin, horizontal line.\n * - **Vertical**: A thin, vertical line.\n *\n * **Divider Variants:**\n * - **solid**: Solid line.\n * - **gradient**: Gradient Line.\n *\n * **Divider Types:**\n * - The type of divider is inferred based on the kind of slot present.\n * - **Primary**: A simple horizontal or vertical divider.\n * - **Text**: A horizontal divider with a text label in the center.\n * - **Grabber Button**: A horizontal or vertical divider with a styled button in the center.\n *\n * **Accessibility:**\n * - When the slot is replaced by an `mdc-button`:\n * - `aria-label` should be passed to the `mdc-button`.\n * - `aria-expanded` should be passed to the `mdc-button`.\n *\n * **Notes:**\n * - If the slot is replaced by an invalid tag name or contains multiple elements,\n * the divider defaults to the **Primary** type.\n * - To override the styles of the divider, use the provided CSS custom properties.\n *\n * @tagname mdc-divider\n *\n * @cssproperty --mdc-divider-background-color - background color of the divider\n * @cssproperty --mdc-divider-width - width of the divider\n * @cssproperty --mdc-divider-horizontal-gradient - gradient of the horizontal divider\n * @cssproperty --mdc-divider-vertical-gradient - gradient of the vertical divider\n * @cssproperty --mdc-divider-text-size - font size of label in the text divider\n * @cssproperty --mdc-divider-text-color - font color of label in the text divider\n * @cssproperty --mdc-divider-text-margin - left and right margin of label in the text divider\n * @cssproperty --mdc-divider-text-line-height - line height of label in the text divider\n * @cssproperty --mdc-divider-grabber-button-border-radius - border radius of the grabber button\n */",
|
2758
|
-
"customElement": true
|
2759
|
-
}
|
2760
|
-
],
|
2761
|
-
"exports": [
|
2762
|
-
{
|
2763
|
-
"kind": "js",
|
2764
|
-
"name": "default",
|
2765
|
-
"declaration": {
|
2766
|
-
"name": "Divider",
|
2767
|
-
"module": "components/divider/divider.component.js"
|
2768
|
-
}
|
2769
|
-
}
|
2770
|
-
]
|
2771
|
-
},
|
2772
2772
|
{
|
2773
2773
|
"kind": "javascript-module",
|
2774
2774
|
"path": "components/formfieldgroup/formfieldgroup.component.js",
|
package/dist/react/index.d.ts
CHANGED
@@ -4,8 +4,8 @@ export { default as Badge } from './badge';
|
|
4
4
|
export { default as Bullet } from './bullet';
|
5
5
|
export { default as Button } from './button';
|
6
6
|
export { default as Buttonsimple } from './buttonsimple';
|
7
|
-
export { default as Checkbox } from './checkbox';
|
8
7
|
export { default as Divider } from './divider';
|
8
|
+
export { default as Checkbox } from './checkbox';
|
9
9
|
export { default as FormfieldGroup } from './formfieldgroup';
|
10
10
|
export { default as FormfieldWrapper } from './formfieldwrapper';
|
11
11
|
export { default as Icon } from './icon';
|
package/dist/react/index.js
CHANGED
@@ -4,8 +4,8 @@ export { default as Badge } from './badge';
|
|
4
4
|
export { default as Bullet } from './bullet';
|
5
5
|
export { default as Button } from './button';
|
6
6
|
export { default as Buttonsimple } from './buttonsimple';
|
7
|
-
export { default as Checkbox } from './checkbox';
|
8
7
|
export { default as Divider } from './divider';
|
8
|
+
export { default as Checkbox } from './checkbox';
|
9
9
|
export { default as FormfieldGroup } from './formfieldgroup';
|
10
10
|
export { default as FormfieldWrapper } from './formfieldwrapper';
|
11
11
|
export { default as Icon } from './icon';
|
package/package.json
CHANGED