Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
294 changed files
with
30,701 additions
and
81,488 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,5 @@ node_modules* | |
pubsub-debug.log | ||
storybook-build/ | ||
coverage/ | ||
*.tsbuildinfo | ||
*.tsbuildinfo | ||
gen-docs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v16.16.0 | ||
v20.10.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
import { addParameters } from "@storybook/react"; | ||
|
||
addParameters({ | ||
options: { | ||
showRoots: true, | ||
storySort: (a, b) => { | ||
return a[1].name.localeCompare(b[1].name, undefined, { numeric: true }); | ||
const preview = { | ||
parameters: { | ||
layout: "fullscreen", | ||
options: { | ||
storySort: { | ||
method: "alphabetical", | ||
order: ["Glide-Data-Grid", "Extra Packages", "Subcomponents"], | ||
locales: "en-US", | ||
}, | ||
}, | ||
}, | ||
}); | ||
|
||
export const parameters = { | ||
layout: "fullscreen", | ||
}; | ||
|
||
export default preview; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
run_in_parallel() { | ||
local funcs=("$@") | ||
local pids=() | ||
|
||
# Start the functions in the background and store their PIDs | ||
for func in "${funcs[@]}"; do | ||
($func) & | ||
pids+=($!) | ||
done | ||
|
||
# Wait for all functions and exit if any of them fail | ||
for pid in "${pids[@]}"; do | ||
wait $pid || exit $? | ||
done | ||
} | ||
|
||
generate_index_css() { | ||
echo "/* Auto-generated file */" > dist/index.css | ||
find dist/esm -name '*.css' -print | sed 's/^dist\/esm\//\@import ".\/esm\//' | sed 's/$/";/' >> dist/index.css | ||
} | ||
|
||
ensure_bash_4() { | ||
if [ "${BASH_VERSINFO[0]}" -lt 4 ]; then | ||
if [ -x "/opt/homebrew/bin/bash" ]; then | ||
exec /opt/homebrew/bin/bash "$0" "$@" | ||
elif [ -x "/usr/local/bin/bash" ]; then | ||
exec /usr/local/bin/bash "$0" "$@" | ||
else | ||
echo "Bash 4 or higher is required." | ||
exit 1 | ||
fi | ||
fi | ||
} | ||
|
||
remove_all_css_imports() { | ||
local directory=$1 | ||
local sed_cmd="sed -i" | ||
|
||
# Check if sed is GNU sed or BSD sed | ||
if sed --version 2>/dev/null | grep -q GNU; then | ||
sed_cmd="sed -i" # GNU sed | ||
else | ||
sed_cmd="sed -i ''" # BSD sed | ||
fi | ||
|
||
find "$directory" -type f -name "*.js" -exec bash -c "$sed_cmd \"/require('.\/.*\.css');/d\" {}" \; | ||
find "$directory" -type f -name "*.js" -exec bash -c "$sed_cmd \"/import \\\".*\.css\\\";/d\" {}" \; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"classNameSlug": "gdg-[hash]" | ||
} |
Oops, something went wrong.