File tree Expand file tree Collapse file tree 3 files changed +19
-7
lines changed
packages/components/separator Expand file tree Collapse file tree 3 files changed +19
-7
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @oku-ui/separator" ,
3
3
"type" : " module" ,
4
- "version" : " 0.0 .0" ,
4
+ "version" : " 0.1 .0" ,
5
5
"license" : " MIT" ,
6
6
"source" : " src/index.ts" ,
7
7
"funding" : " https://github.com/sponsors/productdevbook" ,
Original file line number Diff line number Diff line change @@ -12,13 +12,13 @@ type SeparatorElement = ElementType<'div'>
12
12
13
13
interface SeparatorProps extends PrimitiveProps {
14
14
/**
15
- * Either `vertical` or `horizontal`. Defaults to `horizontal`.
15
+ * Whether or not the component is purely decorative. When true, accessibility-related attributes
16
+ * are updated so that that the rendered element is removed from the accessibility tree.
16
17
*/
17
18
decorative ?: boolean
18
19
/**
19
- * Whether or not the component is purely decorative. When true, accessibility-related attributes
20
- * are updated so that that the rendered element is removed from the accessibility tree.
21
- */
20
+ * Either `vertical` or `horizontal`. Defaults to `horizontal`.
21
+ */
22
22
orientation ?: Orientation
23
23
}
24
24
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
-
3
- # component name
4
2
componentName=$1
5
3
4
+ # no empty component name
5
+ if [ -z " $componentName " ]
6
+ then
7
+ echo " Component name is required"
8
+ exit 1
9
+ fi
10
+
11
+ # check if component exists
12
+ if [ ! -d " packages/components/$componentName " ]
13
+ then
14
+ echo " Component does not exist"
15
+ exit 1
16
+ fi
17
+
6
18
# cd to the component directory
7
19
cd packages/components/$componentName
8
20
pnpm build
You can’t perform that action at this time.
0 commit comments