@spear-ai/spectral 1.21.0 → 1.21.2
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/ButtonGroup/ButtonGroupButton.d.ts.map +1 -1
- package/dist/ButtonGroup/ButtonGroupButton.js +6 -5
- package/dist/ButtonGroup/ButtonGroupButton.js.map +1 -1
- package/dist/ButtonGroup.js +1 -1
- package/dist/ButtonGroup.js.map +1 -1
- package/dist/ButtonIcon.js +2 -2
- package/dist/ButtonIcon.js.map +1 -1
- package/dist/Checkbox.d.ts +1 -0
- package/dist/Checkbox.d.ts.map +1 -1
- package/dist/Checkbox.js +3 -3
- package/dist/Checkbox.js.map +1 -1
- package/dist/Combobox.d.ts.map +1 -1
- package/dist/Combobox.js +2 -2
- package/dist/Combobox.js.map +1 -1
- package/dist/DateTimePicker/Calendar.d.ts +13 -1
- package/dist/DateTimePicker/Calendar.d.ts.map +1 -1
- package/dist/DateTimePicker/Calendar.js +11 -4
- package/dist/DateTimePicker/Calendar.js.map +1 -1
- package/dist/DateTimePicker/DateTimeDisplayInput.d.ts +2 -2
- package/dist/DateTimePicker/DateTimeDisplayInput.d.ts.map +1 -1
- package/dist/DateTimePicker/DateTimeDisplayInput.js +3 -3
- package/dist/DateTimePicker/DateTimeDisplayInput.js.map +1 -1
- package/dist/DateTimePicker.d.ts +17 -4
- package/dist/DateTimePicker.d.ts.map +1 -1
- package/dist/DateTimePicker.js +48 -33
- package/dist/DateTimePicker.js.map +1 -1
- package/dist/Input.d.ts +1 -1
- package/dist/Input.d.ts.map +1 -1
- package/dist/Input.js +24 -17
- package/dist/Input.js.map +1 -1
- package/dist/InputOTP.d.ts +2 -0
- package/dist/InputOTP.d.ts.map +1 -1
- package/dist/InputOTP.js +52 -40
- package/dist/InputOTP.js.map +1 -1
- package/dist/InputSearch.d.ts +2 -2
- package/dist/InputSearch.d.ts.map +1 -1
- package/dist/InputSearch.js +6 -5
- package/dist/InputSearch.js.map +1 -1
- package/dist/Kbd.d.ts.map +1 -1
- package/dist/Kbd.js.map +1 -1
- package/dist/MultiSelect/MultiSelectBase.d.ts.map +1 -1
- package/dist/MultiSelect/MultiSelectBase.js +6 -5
- package/dist/MultiSelect/MultiSelectBase.js.map +1 -1
- package/dist/RadialMenu.d.ts.map +1 -1
- package/dist/RadialMenu.js +3 -4
- package/dist/RadialMenu.js.map +1 -1
- package/dist/RadioButton.js +1 -1
- package/dist/RadioButton.js.map +1 -1
- package/dist/RadioButtonGroup/RadioButtonGroupBase.d.ts +1 -1
- package/dist/RadioButtonGroup/RadioButtonGroupBase.d.ts.map +1 -1
- package/dist/RadioButtonGroup/RadioButtonGroupBase.js +3 -3
- package/dist/RadioButtonGroup/RadioButtonGroupBase.js.map +1 -1
- package/dist/RadioButtonGroup.d.ts +1 -1
- package/dist/RadioGroup.d.ts +6 -5
- package/dist/RadioGroup.d.ts.map +1 -1
- package/dist/RadioGroup.js +18 -14
- package/dist/RadioGroup.js.map +1 -1
- package/dist/Select.d.ts +1 -0
- package/dist/Select.d.ts.map +1 -1
- package/dist/Select.js +3 -3
- package/dist/Select.js.map +1 -1
- package/dist/Slider.js +1 -1
- package/dist/Slider.js.map +1 -1
- package/dist/Switch.d.ts +3 -3
- package/dist/Switch.d.ts.map +1 -1
- package/dist/Switch.js +5 -5
- package/dist/Switch.js.map +1 -1
- package/dist/Textarea.d.ts +3 -3
- package/dist/Textarea.d.ts.map +1 -1
- package/dist/Textarea.js +4 -3
- package/dist/Textarea.js.map +1 -1
- package/dist/primitives/input.d.ts.map +1 -1
- package/dist/primitives/input.js +2 -0
- package/dist/primitives/input.js.map +1 -1
- package/dist/primitives/textarea.d.ts.map +1 -1
- package/dist/primitives/textarea.js +2 -0
- package/dist/primitives/textarea.js.map +1 -1
- package/dist/styles/horizon/colors.css +5 -3
- package/dist/styles/spectral.css +1 -1
- package/dist/utils/formFieldUtils.d.ts +9 -1
- package/dist/utils/formFieldUtils.d.ts.map +1 -1
- package/dist/utils/formFieldUtils.js +19 -2
- package/dist/utils/formFieldUtils.js.map +1 -1
- package/package.json +1 -1
package/dist/primitives/input.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { cn } from "../utils/twUtils.js";
|
|
3
|
+
import { getPasswordManagerIgnoreProps } from "../utils/formFieldUtils.js";
|
|
3
4
|
import "react";
|
|
4
5
|
import { jsx } from "react/jsx-runtime";
|
|
5
6
|
|
|
@@ -9,6 +10,7 @@ const Input = ({ className, type, ...props }) => {
|
|
|
9
10
|
className: cn("h-9 min-w-0 rounded-md w-full border border-input-border selection:bg-input-bg--selected selection:text-input-text file:text-input-text placeholder:text-input-text-placeholder", "px-3 py-1 text-base shadow-xs file:h-7 transition-[color,box-shadow] file:inline-flex file:border-0 hover:border-input-border--hover focus:border-input-border--focus focus:outline-none", "file:text-sm file:font-medium file:bg-transparent focus-visible:outline focus-visible:outline-accent disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50", "focus-visible:outline-offset-2 aria-invalid:border-danger-400 aria-invalid:ring-danger-400", className),
|
|
10
11
|
"data-slot": "input-primitive",
|
|
11
12
|
type,
|
|
13
|
+
...getPasswordManagerIgnoreProps(type),
|
|
12
14
|
...props
|
|
13
15
|
});
|
|
14
16
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.js","names":[],"sources":["../../src/primitives/input.tsx"],"sourcesContent":["import { cn } from '@utils/twUtils'\nimport { type ComponentProps } from 'react'\n\nexport type InputType = 'text' | 'email' | 'url' | 'tel' | 'password' | 'number' | 'date' | 'datetime-local'\n\nexport interface InputProps extends ComponentProps<'input'> {\n className?: string\n type?: InputType\n}\n\nexport const Input = ({ className, type, ...props }: InputProps) => {\n return (\n <input\n className={cn(\n 'h-9 min-w-0 rounded-md w-full border border-input-border selection:bg-input-bg--selected selection:text-input-text file:text-input-text placeholder:text-input-text-placeholder',\n 'px-3 py-1 text-base shadow-xs file:h-7 transition-[color,box-shadow] file:inline-flex file:border-0 hover:border-input-border--hover focus:border-input-border--focus focus:outline-none',\n 'file:text-sm file:font-medium file:bg-transparent focus-visible:outline focus-visible:outline-accent disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50',\n 'focus-visible:outline-offset-2 aria-invalid:border-danger-400 aria-invalid:ring-danger-400',\n className,\n )}\n data-slot='input-primitive'\n type={type}\n {...props}\n />\n )\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"input.js","names":[],"sources":["../../src/primitives/input.tsx"],"sourcesContent":["import { getPasswordManagerIgnoreProps } from '@utils/formFieldUtils'\nimport { cn } from '@utils/twUtils'\nimport { type ComponentProps } from 'react'\n\nexport type InputType = 'text' | 'email' | 'url' | 'tel' | 'password' | 'number' | 'date' | 'datetime-local'\n\nexport interface InputProps extends ComponentProps<'input'> {\n className?: string\n type?: InputType\n}\n\nexport const Input = ({ className, type, ...props }: InputProps) => {\n return (\n <input\n className={cn(\n 'h-9 min-w-0 rounded-md w-full border border-input-border selection:bg-input-bg--selected selection:text-input-text file:text-input-text placeholder:text-input-text-placeholder',\n 'px-3 py-1 text-base shadow-xs file:h-7 transition-[color,box-shadow] file:inline-flex file:border-0 hover:border-input-border--hover focus:border-input-border--focus focus:outline-none',\n 'file:text-sm file:font-medium file:bg-transparent focus-visible:outline focus-visible:outline-accent disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50',\n 'focus-visible:outline-offset-2 aria-invalid:border-danger-400 aria-invalid:ring-danger-400',\n className,\n )}\n data-slot='input-primitive'\n type={type}\n {...getPasswordManagerIgnoreProps(type)}\n {...props}\n />\n )\n}\n"],"mappings":";;;;;;;AAWA,MAAa,SAAS,EAAE,WAAW,MAAM,GAAG,YAAwB;AAClE,QACE,oBAAC,SAAD;EACE,WAAW,GACT,mLACA,4LACA,qLACA,8FACA,UACD;EACD,aAAU;EACJ;EACN,GAAI,8BAA8B,KAAK;EACvC,GAAI;EACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textarea.d.ts","names":[],"sources":["../../src/primitives/textarea.tsx"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"textarea.d.ts","names":[],"sources":["../../src/primitives/textarea.tsx"],"mappings":";;;;;cAIa,QAAA;EAAQ,SAAA;EAAA,GAAA;AAAA,GAA6B,cAAA,iBAA0B,oBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { cn } from "../utils/twUtils.js";
|
|
3
|
+
import { getPasswordManagerIgnoreProps } from "../utils/formFieldUtils.js";
|
|
3
4
|
import "react";
|
|
4
5
|
import { jsx } from "react/jsx-runtime";
|
|
5
6
|
|
|
@@ -8,6 +9,7 @@ const Textarea = ({ className, ...props }) => {
|
|
|
8
9
|
return /* @__PURE__ */ jsx("textarea", {
|
|
9
10
|
className: cn("min-h-16 rounded-md px-3 py-2 text-base shadow-xs md:text-sm flex field-sizing-content w-full border border-input-border bg-transparent outline-transparent transition-[color,box-shadow] placeholder:text-input-text-placeholder focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:outline-offset-2 aria-invalid:outline-danger-400", className),
|
|
10
11
|
"data-slot": "textarea",
|
|
12
|
+
...getPasswordManagerIgnoreProps(),
|
|
11
13
|
...props
|
|
12
14
|
});
|
|
13
15
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textarea.js","names":[],"sources":["../../src/primitives/textarea.tsx"],"sourcesContent":["import { cn } from '@utils/twUtils'\nimport { type ComponentProps } from 'react'\n\nexport const Textarea = ({ className, ...props }: ComponentProps<'textarea'>) => {\n return (\n <textarea\n className={cn(\n 'min-h-16 rounded-md px-3 py-2 text-base shadow-xs md:text-sm flex field-sizing-content w-full border border-input-border bg-transparent outline-transparent transition-[color,box-shadow] placeholder:text-input-text-placeholder focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:outline-offset-2 aria-invalid:outline-danger-400',\n className,\n )}\n data-slot='textarea'\n {...props}\n />\n )\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"textarea.js","names":[],"sources":["../../src/primitives/textarea.tsx"],"sourcesContent":["import { getPasswordManagerIgnoreProps } from '@utils/formFieldUtils'\nimport { cn } from '@utils/twUtils'\nimport { type ComponentProps } from 'react'\n\nexport const Textarea = ({ className, ...props }: ComponentProps<'textarea'>) => {\n return (\n <textarea\n className={cn(\n 'min-h-16 rounded-md px-3 py-2 text-base shadow-xs md:text-sm flex field-sizing-content w-full border border-input-border bg-transparent outline-transparent transition-[color,box-shadow] placeholder:text-input-text-placeholder focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:outline-offset-2 aria-invalid:outline-danger-400',\n className,\n )}\n data-slot='textarea'\n {...getPasswordManagerIgnoreProps()}\n {...props}\n />\n )\n}\n"],"mappings":";;;;;;;AAIA,MAAa,YAAY,EAAE,WAAW,GAAG,YAAwC;AAC/E,QACE,oBAAC,YAAD;EACE,WAAW,GACT,uaACA,UACD;EACD,aAAU;EACV,GAAI,+BAA+B;EACnC,GAAI;EACJ"}
|
|
@@ -171,6 +171,8 @@
|
|
|
171
171
|
--color-radio-border--hover: var(--horizon-color-accent);
|
|
172
172
|
--color-radio-border--selected: var(--horizon-color-accent);
|
|
173
173
|
|
|
174
|
+
--color-radio-button-outline-border: var(--horizon-color-level-four);
|
|
175
|
+
|
|
174
176
|
--color-radio-tile-border: oklch(from var(--horizon-color-white) l c h / 0.1);
|
|
175
177
|
--color-radio-tile-border--hover: var(--horizon-color-neutral-300);
|
|
176
178
|
--color-radio-tile-border--selected: var(--horizon-color-accent);
|
|
@@ -234,9 +236,9 @@
|
|
|
234
236
|
--color-toggle-text--active-default: var(--color-text-primary);
|
|
235
237
|
--color-toggle-text--active-accent: var(--color-text-inverted);
|
|
236
238
|
--color-toggle-text--active: var(--color-toggle-text--active-default);
|
|
237
|
-
--color-toggle-outline-border: var(--horizon-color-
|
|
238
|
-
--color-toggle-outline-divider: var(--horizon-color-
|
|
239
|
-
--color-toggle-outline-border--hover: var(--horizon-color-
|
|
239
|
+
--color-toggle-outline-border: var(--horizon-color-level-four);
|
|
240
|
+
--color-toggle-outline-divider: var(--horizon-color-level-four);
|
|
241
|
+
--color-toggle-outline-border--hover: var(--horizon-color-level-five);
|
|
240
242
|
--color-toggle-group-bg: var(--horizon-color-level-five);
|
|
241
243
|
|
|
242
244
|
--color-tooltip-bg: var(--horizon-color-level-one);
|