Skip to content

Commit ba9ee84

Browse files
version(separator): @oku-ui/[email protected]
1 parent 5a976f1 commit ba9ee84

File tree

3 files changed

+19
-7
lines changed

3 files changed

+19
-7
lines changed

packages/components/separator/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@oku-ui/separator",
33
"type": "module",
4-
"version": "0.0.0",
4+
"version": "0.1.0",
55
"license": "MIT",
66
"source": "src/index.ts",
77
"funding": "https://github.com/sponsors/productdevbook",

packages/components/separator/src/separator.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ type SeparatorElement = ElementType<'div'>
1212

1313
interface SeparatorProps extends PrimitiveProps {
1414
/**
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.
1617
*/
1718
decorative?: boolean
1819
/**
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+
*/
2222
orientation?: Orientation
2323
}
2424

scripts/publish.sh

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
11
#!/bin/bash
2-
3-
# component name
42
componentName=$1
53

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+
618
# cd to the component directory
719
cd packages/components/$componentName
820
pnpm build

0 commit comments

Comments
 (0)