@pathscale/ui 0.0.62 → 0.0.64

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.
Files changed (3) hide show
  1. package/LICENSE +1 -0
  2. package/dist/index.js +16 -10
  3. package/package.json +1 -1
package/LICENSE CHANGED
@@ -1,6 +1,7 @@
1
1
  MIT License
2
2
 
3
3
  Copyright (c) 2025 pathscale
4
+ Copyright (c) 2020 Pouya Saadeghi
4
5
 
5
6
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
7
  of this software and associated documentation files (the "Software"), to deal
package/dist/index.js CHANGED
@@ -4223,7 +4223,7 @@ const Button = (props)=>{
4223
4223
  "aria-haspopup",
4224
4224
  "aria-role"
4225
4225
  ]);
4226
- const classes = ()=>twMerge("btn", local.class, local.className, clsx((local.startIcon && !local.loading || local.endIcon) && "gap-2", {
4226
+ const classes = ()=>twMerge("btn", clsx((local.startIcon && !local.loading || local.endIcon) && "gap-2", {
4227
4227
  "btn-xl": "xl" === local.size,
4228
4228
  "btn-lg": "lg" === local.size,
4229
4229
  "btn-md": "md" === local.size,
@@ -4251,7 +4251,7 @@ const Button = (props)=>{
4251
4251
  "no-animation": !local.animation,
4252
4252
  "btn-active": local.active,
4253
4253
  "btn-disabled": local.disabled
4254
- }));
4254
+ }), local.class, local.className);
4255
4255
  const Tag = local.as || "button";
4256
4256
  if (Button_VoidElementList.includes(Tag)) return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.Dynamic, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)({
4257
4257
  component: Tag
@@ -6868,6 +6868,7 @@ const Dropdown_classesFn = ({ className, horizontal, vertical, end, hover, open
6868
6868
  const Dropdown = (props)=>{
6869
6869
  const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
6870
6870
  "children",
6871
+ "class",
6871
6872
  "className",
6872
6873
  "item",
6873
6874
  "horizontal",
@@ -6876,20 +6877,22 @@ const Dropdown = (props)=>{
6876
6877
  "hover",
6877
6878
  "open",
6878
6879
  "dataTheme",
6880
+ "style",
6879
6881
  "aria-label",
6880
6882
  "aria-describedby",
6881
6883
  "aria-expanded",
6882
6884
  "aria-haspopup",
6883
6885
  "aria-labelledby"
6884
6886
  ]);
6885
- const classes = ()=>Dropdown_classesFn({
6886
- className: local.className,
6887
- horizontal: local.horizontal,
6888
- vertical: local.vertical,
6889
- end: local.end,
6890
- hover: local.hover,
6891
- open: local.open
6892
- });
6887
+ const classes = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>twMerge("dropdown", local.class, local.className, clsx({
6888
+ "dropdown-left": "left" === local.horizontal,
6889
+ "dropdown-right": "right" === local.horizontal,
6890
+ "dropdown-top": "top" === local.vertical,
6891
+ "dropdown-bottom": "bottom" === local.vertical,
6892
+ "dropdown-end": local.end,
6893
+ "dropdown-hover": local.hover,
6894
+ "dropdown-open": local.open
6895
+ })));
6893
6896
  return (()=>{
6894
6897
  var _el$ = Dropdown_tmpl$3();
6895
6898
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)({
@@ -6903,6 +6906,9 @@ const Dropdown = (props)=>{
6903
6906
  get ["class"] () {
6904
6907
  return classes();
6905
6908
  },
6909
+ get style () {
6910
+ return local.style;
6911
+ },
6906
6912
  get ["aria-label"] () {
6907
6913
  return local["aria-label"];
6908
6914
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pathscale/ui",
3
- "version": "0.0.62",
3
+ "version": "0.0.64",
4
4
  "author": "pathscale",
5
5
  "repository": {
6
6
  "type": "git",