@pathscale/ui 1.1.55 → 1.1.57

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.
@@ -19,6 +19,7 @@
19
19
  user-select: none;
20
20
  outline: none;
21
21
  cursor: pointer;
22
+ touch-action: manipulation;
22
23
  transition:
23
24
  transform 250ms ease,
24
25
  background-color 100ms ease,
@@ -5,7 +5,7 @@
5
5
  flex-direction: column;
6
6
  gap: 0.75rem;
7
7
  overflow: hidden;
8
- border-radius: var(--card-radius, calc(var(--radius-box, 0.75rem) * 2));
8
+ border-radius: var(--card-radius, calc(var(--radius-box, 0.75rem) + var(--card-padding, 1rem)));
9
9
  padding: var(--card-padding, 1rem);
10
10
  color: var(--card-fg, var(--color-base-content));
11
11
  background-color: var(--card-bg, var(--color-base-100));
@@ -2,8 +2,8 @@
2
2
  .immersive-landing {
3
3
  position: fixed;
4
4
  inset: 0;
5
- width: 100vw;
6
- height: 100vh;
5
+ width: 100%;
6
+ height: 100%;
7
7
  overflow: hidden;
8
8
  isolation: isolate;
9
9
  background: transparent;
@@ -84,6 +84,7 @@
84
84
  border: 0;
85
85
  background: color-mix(in oklab, var(--color-base-content) 10%, transparent);
86
86
  cursor: pointer;
87
+ touch-action: manipulation;
87
88
  transform: translateY(-50%);
88
89
  transition: background-color 160ms ease;
89
90
  }
@@ -142,6 +143,7 @@
142
143
  color: color-mix(in oklab, var(--color-base-content) 70%, transparent);
143
144
  background: transparent;
144
145
  cursor: pointer;
146
+ touch-action: manipulation;
145
147
  transition: background-color 150ms ease, color 150ms ease;
146
148
  }
147
149
 
@@ -182,6 +184,7 @@
182
184
  border: 0;
183
185
  background: color-mix(in oklab, var(--color-base-content) 30%, transparent);
184
186
  cursor: pointer;
187
+ touch-action: manipulation;
185
188
  transition: transform 150ms ease, background-color 150ms ease;
186
189
  }
187
190
 
@@ -140,4 +140,16 @@
140
140
  width: 1rem;
141
141
  height: 1rem;
142
142
  }
143
+
144
+ @media (max-width: 767px) {
145
+ .input-control--sm,
146
+ .input-control--md,
147
+ .input-control--lg {
148
+ font-size: 1rem;
149
+ }
150
+
151
+ .input-field {
152
+ font-size: 1rem;
153
+ }
154
+ }
143
155
  }
@@ -18,7 +18,7 @@
18
18
  background-color: var(--color-base-200);
19
19
  padding-inline: 0.25rem;
20
20
  padding-bottom: 0.25rem;
21
- border-radius: calc(var(--radius-box, 1rem) * 1.25);
21
+ border-radius: calc(var(--radius-box, 1rem) + 0.25rem);
22
22
  }
23
23
 
24
24
  /* --------------------------------------------------------------------------
@@ -102,13 +102,13 @@
102
102
  }
103
103
 
104
104
  .table-root--secondary .table__column:first-child {
105
- border-top-left-radius: 1rem;
106
- border-bottom-left-radius: 1rem;
105
+ border-top-left-radius: var(--radius-box, 1rem);
106
+ border-bottom-left-radius: var(--radius-box, 1rem);
107
107
  }
108
108
 
109
109
  .table-root--secondary .table__column:last-child {
110
- border-top-right-radius: 1rem;
111
- border-bottom-right-radius: 1rem;
110
+ border-top-right-radius: var(--radius-box, 1rem);
111
+ border-bottom-right-radius: var(--radius-box, 1rem);
112
112
  }
113
113
 
114
114
  .table-root--secondary .table__body tr:first-child td:first-child,
@@ -134,13 +134,13 @@
134
134
  }
135
135
 
136
136
  .table-root--secondary .table__row:hover .table__cell:first-child {
137
- border-top-left-radius: 1rem;
138
- border-bottom-left-radius: 1rem;
137
+ border-top-left-radius: var(--radius-box, 1rem);
138
+ border-bottom-left-radius: var(--radius-box, 1rem);
139
139
  }
140
140
 
141
141
  .table-root--secondary .table__row:hover .table__cell:last-child {
142
- border-top-right-radius: 1rem;
143
- border-bottom-right-radius: 1rem;
142
+ border-top-right-radius: var(--radius-box, 1rem);
143
+ border-bottom-right-radius: var(--radius-box, 1rem);
144
144
  }
145
145
  }
146
146
 
@@ -210,19 +210,19 @@
210
210
  Table Body (<tbody>)
211
211
  -------------------------------------------------------------------------- */
212
212
  .table__body tr:first-child td:first-child {
213
- border-top-left-radius: 1rem;
213
+ border-top-left-radius: var(--radius-box, 1rem);
214
214
  }
215
215
 
216
216
  .table__body tr:first-child td:last-child {
217
- border-top-right-radius: 1rem;
217
+ border-top-right-radius: var(--radius-box, 1rem);
218
218
  }
219
219
 
220
220
  .table__body tr:last-child td:first-child {
221
- border-bottom-left-radius: 1rem;
221
+ border-bottom-left-radius: var(--radius-box, 1rem);
222
222
  }
223
223
 
224
224
  .table__body tr:last-child td:last-child {
225
- border-bottom-right-radius: 1rem;
225
+ border-bottom-right-radius: var(--radius-box, 1rem);
226
226
  }
227
227
 
228
228
  /* --------------------------------------------------------------------------
@@ -48,7 +48,7 @@
48
48
  width: 100%;
49
49
  align-items: center;
50
50
  justify-content: center;
51
- border-radius: 1.5rem;
51
+ border-radius: var(--radius-box, 1rem);
52
52
  padding-inline: 1rem;
53
53
  text-align: center;
54
54
  white-space: nowrap;
@@ -1,7 +1,9 @@
1
1
  export declare const CLASSES: {
2
2
  readonly base: "relative";
3
3
  readonly iconActive: "text-primary";
4
- readonly popover: "absolute right-0 z-50 mt-2 rounded-lg bg-base-200/80 p-4 shadow-xl backdrop-blur-sm";
4
+ readonly popover: "absolute z-50 mt-2 rounded-lg bg-base-200/80 p-4 shadow-xl backdrop-blur-sm";
5
+ readonly popoverAlignStart: "left-0";
6
+ readonly popoverAlignEnd: "right-0";
5
7
  readonly row: "flex items-center gap-3";
6
8
  readonly wheelWrap: "flex justify-center";
7
9
  readonly wheelCustom: "color-wheel-custom";
@@ -1,7 +1,9 @@
1
1
  const CLASSES = {
2
2
  base: "relative",
3
3
  iconActive: "text-primary",
4
- popover: "absolute right-0 z-50 mt-2 rounded-lg bg-base-200/80 p-4 shadow-xl backdrop-blur-sm",
4
+ popover: "absolute z-50 mt-2 rounded-lg bg-base-200/80 p-4 shadow-xl backdrop-blur-sm",
5
+ popoverAlignStart: "left-0",
6
+ popoverAlignEnd: "right-0",
5
7
  row: "flex items-center gap-3",
6
8
  wheelWrap: "flex justify-center",
7
9
  wheelCustom: "color-wheel-custom",
@@ -1,5 +1,6 @@
1
1
  import { type Component, type JSX } from "solid-js";
2
2
  import type { IComponentBaseProps } from "../types";
3
+ export type ThemeColorPickerAlign = "start" | "end";
3
4
  export interface ThemeColorPickerProps extends IComponentBaseProps {
4
5
  /**
5
6
  * Prefix for localStorage keys (e.g., "myapp" becomes "myapp_theme_color")
@@ -8,7 +9,7 @@ export interface ThemeColorPickerProps extends IComponentBaseProps {
8
9
  storagePrefix?: string;
9
10
  /**
10
11
  * Callback when color changes. Passes the hex string (or null on reset).
11
- * Kept with legacy `(hue, saturation)` signature for backward compatibility
12
+ * Kept with legacy `(hue, saturation)` signature for backward compatibility -
12
13
  * hue is derived from the picked hex, saturation is forwarded as-is.
13
14
  */
14
15
  onColorChange?: (hue: number | null, saturation: number) => void;
@@ -20,6 +21,13 @@ export interface ThemeColorPickerProps extends IComponentBaseProps {
20
21
  * ARIA label for the button
21
22
  */
22
23
  "aria-label"?: string;
24
+ /**
25
+ * Popover alignment relative to the trigger.
26
+ * "end" aligns the popover to the trigger's right edge (opens leftward).
27
+ * "start" aligns it to the trigger's left edge (opens rightward).
28
+ * @default "end"
29
+ */
30
+ align?: ThemeColorPickerAlign;
23
31
  /**
24
32
  * Custom button content (defaults to palette icon)
25
33
  */
@@ -1,5 +1,6 @@
1
1
  import * as __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__ from "solid-js/web";
2
2
  import * as __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__ from "solid-js";
3
+ import * as __WEBPACK_EXTERNAL_MODULE_clsx__ from "clsx";
3
4
  import * as __WEBPACK_EXTERNAL_MODULE_tailwind_merge_e05e3e95__ from "tailwind-merge";
4
5
  import * as __WEBPACK_EXTERNAL_MODULE__color_wheel_flower_index_js_cbe90990__ from "../color-wheel-flower/index.js";
5
6
  import * as __WEBPACK_EXTERNAL_MODULE__color_wheel_flower_ColorUtils_js_abf9b965__ from "../color-wheel-flower/ColorUtils.js";
@@ -18,6 +19,7 @@ const ThemeColorPicker_ThemeColorPicker = (props)=>{
18
19
  "onColorChange",
19
20
  "onThemeSwitch",
20
21
  "aria-label",
22
+ "align",
21
23
  "children",
22
24
  "class",
23
25
  "className",
@@ -106,6 +108,7 @@ const ThemeColorPicker_ThemeColorPicker = (props)=>{
106
108
  onFormatChange: ()=>{}
107
109
  });
108
110
  const classes = ()=>(0, __WEBPACK_EXTERNAL_MODULE_tailwind_merge_e05e3e95__.twMerge)(__WEBPACK_EXTERNAL_MODULE__ThemeColorPicker_classes_js_79a82485__.CLASSES.base, local.class, local.className);
111
+ const popoverClasses = ()=>(0, __WEBPACK_EXTERNAL_MODULE_clsx__["default"])(__WEBPACK_EXTERNAL_MODULE__ThemeColorPicker_classes_js_79a82485__.CLASSES.popover, "start" === local.align ? __WEBPACK_EXTERNAL_MODULE__ThemeColorPicker_classes_js_79a82485__.CLASSES.popoverAlignStart : __WEBPACK_EXTERNAL_MODULE__ThemeColorPicker_classes_js_79a82485__.CLASSES.popoverAlignEnd);
109
112
  return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
110
113
  get when () {
111
114
  return featureAvailable();
@@ -150,7 +153,7 @@ const ThemeColorPicker_ThemeColorPicker = (props)=>{
150
153
  get children () {
151
154
  var _el$2 = _tmpl$2();
152
155
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$2, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(()=>({
153
- class: __WEBPACK_EXTERNAL_MODULE__ThemeColorPicker_classes_js_79a82485__.CLASSES.popover
156
+ class: popoverClasses()
154
157
  })), false, true);
155
158
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$2, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE__color_wheel_flower_index_js_cbe90990__.ColorPickerContext.Provider, {
156
159
  get value () {
@@ -1,3 +1,3 @@
1
1
  export { default as ThemeColorPicker } from "./ThemeColorPicker";
2
- export type { ThemeColorPickerProps } from "./ThemeColorPicker";
2
+ export type { ThemeColorPickerProps, ThemeColorPickerAlign } from "./ThemeColorPicker";
3
3
  export { createHueShiftStore, getDefaultHueShiftStore, resetHueShift, type HueShiftStore, } from "./hueShift";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pathscale/ui",
3
- "version": "1.1.55",
3
+ "version": "1.1.57",
4
4
  "author": "pathscale",
5
5
  "repository": {
6
6
  "type": "git",