@turquoisehealth/pit-viper 2.268.0 → 2.268.1

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.
@@ -1,3 +1,4 @@
1
+ import { PvButtonSize } from '../PvButton/types';
1
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
3
  /**
3
4
  * Value of a date selection. A single `Date` in `single` selection mode, an array in
@@ -7,6 +8,11 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOp
7
8
  * `pv-date-picker`. The unions here are written out rather than aliased because Vue's
8
9
  * macro type resolution has to see `Date` to emit it as a runtime prop type.
9
10
  */
11
+ /**
12
+ * Uses the button's size scale so a date picker can sit next to a button of the same size:
13
+ * `md` matches `pv-button-small` (20px), `lg` the default button (24px), `xl` `pv-button-large` (32px).
14
+ */
15
+ export type PvDatePickerSize = PvButtonSize;
10
16
  export type PvDatePickerModelValue = Date | string | (Date | string | null)[] | null | undefined;
11
17
  export interface PvDatePickerProps {
12
18
  /**
@@ -98,6 +104,11 @@ export interface PvDatePickerProps {
98
104
  * Style class of the datepicker panel.
99
105
  */
100
106
  panelClass?: string | undefined;
107
+ /**
108
+ * Height of the input, on the same scale as `PvButton`'s `size`. Defaults to `xl`, the
109
+ * height the date picker has always had.
110
+ */
111
+ size?: PvDatePickerSize;
101
112
  }
102
113
  type __VLS_Props = PvDatePickerProps;
103
114
  type __VLS_PublicProps = {
@@ -108,6 +119,7 @@ declare const _default: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, Compo
108
119
  }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
109
120
  "onUpdate:modelValue"?: ((value: PvDatePickerModelValue) => any) | undefined;
110
121
  }>, {
122
+ size: PvDatePickerSize;
111
123
  appendTo: "body" | "self";
112
124
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
113
125
  export default _default;
@@ -6039,7 +6039,11 @@ var Aa = /* @__PURE__ */ u({
6039
6039
  default: "body",
6040
6040
  type: null
6041
6041
  },
6042
- panelClass: { type: null }
6042
+ panelClass: { type: null },
6043
+ size: {
6044
+ default: "xl",
6045
+ type: String
6046
+ }
6043
6047
  }, {
6044
6048
  modelValue: {},
6045
6049
  modelModifiers: {}
@@ -6060,7 +6064,9 @@ var Aa = /* @__PURE__ */ u({
6060
6064
  fluid: t.fullWidth,
6061
6065
  minDate: c.value,
6062
6066
  maxDate: u.value,
6063
- disabledDates: d.value
6067
+ disabledDates: d.value,
6068
+ size: void 0,
6069
+ class: `pv-date-picker-${t.size}`
6064
6070
  }), {
6065
6071
  inputicon: O((e) => [l(Ca, {
6066
6072
  name: "calendar",
@@ -6074,7 +6080,8 @@ var Aa = /* @__PURE__ */ u({
6074
6080
  "fluid",
6075
6081
  "minDate",
6076
6082
  "maxDate",
6077
- "disabledDates"
6083
+ "disabledDates",
6084
+ "class"
6078
6085
  ])], 2112));
6079
6086
  }
6080
6087
  }), $ = {