@pathscale/ui 2.12.0 → 3.1.0
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.
- package/dist/components/auth-field-group/AuthFieldGroup.css +11 -3
- package/dist/components/button/Button.css +4 -4
- package/dist/components/card/Card.generated.d.ts +21 -2
- package/dist/components/card/index.d.ts +1 -1
- package/dist/components/checkbox/Checkbox.generated.d.ts +23 -2
- package/dist/components/checkbox/Checkbox.generated.js +14 -6
- package/dist/components/connection-settings/ConnectionSettings.css +76 -0
- package/dist/components/connection-settings/ConnectionSettings.generated.d.ts +45 -0
- package/dist/components/connection-settings/ConnectionSettings.generated.js +300 -0
- package/dist/components/connection-settings/ConnectionSettings.recipe.d.ts +54 -0
- package/dist/components/connection-settings/ConnectionSettings.recipe.js +111 -0
- package/dist/components/connection-settings/index.d.ts +2 -0
- package/dist/components/connection-settings/index.js +1 -0
- package/dist/components/dialog/Dialog.generated.js +17 -79
- package/dist/components/drawer/Drawer.a11y.d.ts +1 -3
- package/dist/components/drawer/Drawer.a11y.js +2 -30
- package/dist/components/drawer/Drawer.generated.js +17 -40
- package/dist/components/grid/Grid.generated.js +3 -3
- package/dist/components/input/Input.css +5 -3
- package/dist/components/input/Input.generated.js +6 -3
- package/dist/components/password-field/PasswordField.generated.d.ts +9 -1
- package/dist/components/password-field/PasswordField.generated.js +2 -2
- package/dist/components/password-field/PasswordField.interactions.d.ts +2 -2
- package/dist/components/password-field/PasswordField.interactions.js +2 -2
- package/dist/components/popover/Popover.generated.js +14 -11
- package/dist/components/radio/Radio.generated.d.ts +26 -2
- package/dist/components/radio/Radio.generated.js +9 -5
- package/dist/components/select/Select.generated.js +5 -0
- package/dist/components/slider/Slider.generated.d.ts +14 -1
- package/dist/components/slider/Slider.generated.js +3 -2
- package/dist/components/switch/Switch.css +0 -3
- package/dist/components/switch/Switch.generated.d.ts +23 -2
- package/dist/components/switch/Switch.generated.js +21 -44
- package/dist/components/switch/Switch.recipe.d.ts +61 -38
- package/dist/components/switch/Switch.recipe.js +88 -68
- package/dist/components/text/Text.generated.js +2 -6
- package/dist/components/text/Text.recipe.d.ts +17 -5
- package/dist/components/text/Text.recipe.js +7 -13
- package/dist/hooks/connection/createConnectionSettings.d.ts +128 -0
- package/dist/hooks/connection/createConnectionSettings.js +211 -0
- package/dist/hooks/connection/index.d.ts +2 -0
- package/dist/hooks/connection/index.js +1 -0
- package/dist/hooks/data/createMutation.d.ts +7 -6
- package/dist/hooks/data/createMutation.js +12 -3
- package/dist/hooks/data/createQuery.d.ts +31 -6
- package/dist/hooks/data/createQuery.js +21 -4
- package/dist/hooks/data/createQuery.test.js +41 -14
- package/dist/index.d.ts +5 -1
- package/dist/index.js +2 -0
- package/dist/layouts.manifest.json +1 -1
- package/dist/lib/focus.d.ts +31 -0
- package/dist/lib/focus.js +39 -0
- package/dist/lib/overlay.d.ts +94 -0
- package/dist/lib/overlay.js +72 -0
- package/dist/purge-manifest.json +14427 -15269
- package/dist/styles/base/index.css +42 -0
- package/package.json +3 -3
|
@@ -1,4 +1,46 @@
|
|
|
1
1
|
@layer base {
|
|
2
|
+
/*
|
|
3
|
+
* One height scale for controls that sit next to each other.
|
|
4
|
+
*
|
|
5
|
+
* `Button` and `Input` both took `size="sm"` and disagreed about what that
|
|
6
|
+
* measured: 2.25rem against 2rem. `md` and `lg` already matched, so a
|
|
7
|
+
* button-and-input row was aligned at two sizes out of three and off by 4px
|
|
8
|
+
* at the third -- the kind of thing an application fixes with a corrective
|
|
9
|
+
* class, once per row, forever.
|
|
10
|
+
*
|
|
11
|
+
* In the base layer rather than a theme, because a control's height is not a
|
|
12
|
+
* theme decision: `light.css` and `dark.css` carry colour, radius and depth,
|
|
13
|
+
* and nothing here changes between them.
|
|
14
|
+
*
|
|
15
|
+
* Not every control has to be the same height. Two controls a person reads as
|
|
16
|
+
* one row do.
|
|
17
|
+
*/
|
|
18
|
+
/*
|
|
19
|
+
* One spacing scale for the components that name their gap.
|
|
20
|
+
*
|
|
21
|
+
* `Flex` spells these as Tailwind utilities -- `gap-2`, `gap-4`, `gap-6` --
|
|
22
|
+
* and `AuthFieldGroup` wrote its own rem values, which agreed at `md` and
|
|
23
|
+
* `lg` and disagreed at `sm`: 0.75rem against 0.5rem. Two components naming
|
|
24
|
+
* the same size and meaning two spacings is the same defect the control
|
|
25
|
+
* heights below were added for.
|
|
26
|
+
*
|
|
27
|
+
* The values are Tailwind's, because Flex's utilities are not going to stop
|
|
28
|
+
* being Tailwind's. Anything that cannot use a utility reads these instead of
|
|
29
|
+
* guessing.
|
|
30
|
+
*/
|
|
31
|
+
:root {
|
|
32
|
+
--gap-sm: 0.5rem;
|
|
33
|
+
--gap-md: 1rem;
|
|
34
|
+
--gap-lg: 1.5rem;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
:root {
|
|
38
|
+
--control-h-xs: 1.75rem;
|
|
39
|
+
--control-h-sm: 2.25rem;
|
|
40
|
+
--control-h-md: 2.5rem;
|
|
41
|
+
--control-h-lg: 2.75rem;
|
|
42
|
+
}
|
|
43
|
+
|
|
2
44
|
html {
|
|
3
45
|
scrollbar-color: var(--color-base-300) transparent;
|
|
4
46
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pathscale/ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"author": "pathscale",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -88,8 +88,8 @@
|
|
|
88
88
|
"postcss-selector-parser": "^7.1.1",
|
|
89
89
|
"rsbuild-plugin-solid-layouts": "^0.2.1",
|
|
90
90
|
"solid-js": "next",
|
|
91
|
-
"solid-layouts": "^0.2.
|
|
92
|
-
"solid-layouts-oxc": "^0.2.
|
|
91
|
+
"solid-layouts": "^0.2.3",
|
|
92
|
+
"solid-layouts-oxc": "^0.2.3",
|
|
93
93
|
"svgo": "^3.3.3",
|
|
94
94
|
"tailwindcss": "^4.3.3",
|
|
95
95
|
"typescript": "^6.0.3"
|