sit-onyx 1.0.0-beta.72 → 1.0.0-beta.74

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 (34) hide show
  1. package/dist/components/OnyxDatePicker/OnyxDatePicker.vue.d.ts +17 -0
  2. package/dist/components/OnyxDatePicker/types.d.ts +13 -0
  3. package/dist/composables/useCustomValidity.d.ts +2 -1
  4. package/dist/index.cjs +54 -54
  5. package/dist/index.d.ts +2 -0
  6. package/dist/index.js +1070 -992
  7. package/dist/style.css +1 -1
  8. package/dist/types/colors.d.ts +1 -1
  9. package/dist/types/themes.d.ts +1 -1
  10. package/dist/utils/date.d.ts +7 -0
  11. package/dist/utils/validity.d.ts +1 -1
  12. package/package.json +1 -1
  13. package/src/styles/index.scss +5 -3
  14. package/src/styles/mixins/checkbox.scss +6 -6
  15. package/src/styles/mixins/input.scss +4 -4
  16. package/src/styles/variables/density-compact.css +1 -1
  17. package/src/styles/variables/density-cozy.css +1 -1
  18. package/src/styles/variables/density-default.css +1 -1
  19. package/src/styles/variables/spacing.css +1 -1
  20. package/src/styles/variables/themes/digits-dark.css +125 -0
  21. package/src/styles/variables/themes/digits-light.css +125 -0
  22. package/src/styles/variables/themes/kaufland-dark.css +125 -0
  23. package/src/styles/variables/themes/kaufland-light.css +125 -0
  24. package/src/styles/variables/themes/lidl-dark.css +125 -0
  25. package/src/styles/variables/themes/lidl-light.css +125 -0
  26. package/src/styles/variables/themes/onyx-dark.css +125 -0
  27. package/src/styles/variables/themes/onyx-light.css +125 -0
  28. package/src/styles/variables/themes/value.css +222 -0
  29. package/src/styles/variables/dark.css +0 -120
  30. package/src/styles/variables/light.css +0 -120
  31. package/src/styles/variables/themes/kaufland.css +0 -126
  32. package/src/styles/variables/themes/lidl.css +0 -126
  33. package/src/styles/variables/themes/onyx.css +0 -126
  34. package/src/styles/variables/themes/twogo.css +0 -126
@@ -0,0 +1,17 @@
1
+ import type { OnyxDatePickerProps } from "./types";
2
+ declare const _default: import("vue").DefineComponent<OnyxDatePickerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
+ validityChange: (validity: ValidityState) => any;
4
+ "update:modelValue": (value?: string | undefined) => any;
5
+ }, string, import("vue").PublicProps, Readonly<OnyxDatePickerProps> & Readonly<{
6
+ onValidityChange?: ((validity: ValidityState) => any) | undefined;
7
+ "onUpdate:modelValue"?: ((value?: string | undefined) => any) | undefined;
8
+ }>, {
9
+ type: "date" | "datetime-local";
10
+ required: boolean;
11
+ skeleton: import("../../composables/useSkeletonState").SkeletonInjected;
12
+ disabled: boolean | symbol;
13
+ showError: boolean | symbol | "touched";
14
+ loading: boolean;
15
+ readonly: boolean;
16
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
+ export default _default;
@@ -0,0 +1,13 @@
1
+ import type { OnyxInputProps } from "../OnyxInput/types";
2
+ export type OnyxDatePickerProps = Omit<OnyxInputProps, "type" | "modelValue" | "autocapitalize" | "maxlength" | "minlength" | "pattern" | "withCounter" | "placeholder" | "autocomplete"> & {
3
+ /**
4
+ * Current date value. Supports all data types that are parsable by `new Date()`.
5
+ */
6
+ modelValue?: DateValue;
7
+ /**
8
+ * Whether the user should be able to select only date or date + time.
9
+ */
10
+ type?: "date" | "datetime-local";
11
+ };
12
+ /** Data types that are parsable as date via `new Date()`. */
13
+ export type DateValue = ConstructorParameters<typeof Date>[0];
@@ -1,3 +1,4 @@
1
+ import type { OnyxDatePickerProps } from "../components/OnyxDatePicker/types";
1
2
  import type { InputType } from "../components/OnyxInput/types";
2
3
  import enUS from "../i18n/locales/en-US.json";
3
4
  import type { BaseSelectOption } from "../types";
@@ -14,7 +15,7 @@ export type UseCustomValidityOptions = {
14
15
  */
15
16
  props: CustomValidityProp & {
16
17
  modelValue?: unknown;
17
- type?: InputType;
18
+ type?: InputType | OnyxDatePickerProps["type"];
18
19
  maxlength?: number;
19
20
  minlength?: number;
20
21
  min?: number;