design-system-next 2.7.11 → 2.7.12

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.
@@ -5332,7 +5332,8 @@ const ze = sl, P2 = al, ol = ["su", "mo", "tu", "we", "th", "fr", "sa"], il = ["
5332
5332
  ], dl = {
5333
5333
  id: {
5334
5334
  type: String,
5335
- required: !0
5335
+ required: !0,
5336
+ default: "date-picker"
5336
5337
  },
5337
5338
  modelValue: {
5338
5339
  type: String,
@@ -6116,7 +6117,7 @@ const $l = (e, t) => {
6116
6117
  handleTabClick: sa,
6117
6118
  handleBackspace: aa
6118
6119
  };
6119
- }, bl = ["id"], Dl = ["for"], Il = { class: "spr-flex spr-h-full spr-items-center spr-gap-1.5" }, Al = ["disabled", "readonly"], xl = ["disabled", "readonly"], wl = ["disabled", "readonly"], jl = { class: "spr-flex spr-items-center spr-justify-center" }, Tl = {
6120
+ }, bl = ["id"], Dl = ["for"], Il = { class: "spr-flex spr-h-full spr-items-center spr-gap-1.5" }, Al = ["id", "disabled", "readonly"], xl = ["id", "disabled", "readonly"], wl = ["id", "disabled", "readonly"], jl = { class: "spr-flex spr-items-center spr-justify-center" }, Tl = {
6120
6121
  class: /* @__PURE__ */ b([
6121
6122
  "spr-flex spr-justify-between spr-gap-2 spr-px-4 spr-py-3",
6122
6123
  "spr-border spr-border-x-0 spr-border-b spr-border-t-0 spr-border-solid spr-border-mushroom-200"
@@ -6389,6 +6390,7 @@ const $l = (e, t) => {
6389
6390
  }, [
6390
6391
  I("div", Il, [
6391
6392
  i2(I("input", {
6393
+ id: `${r.id}-month`,
6392
6394
  ref_key: "monthInputRef",
6393
6395
  ref: o,
6394
6396
  "onUpdate:modelValue": se[0] || (se[0] = (F) => Ce(N) ? N.value = F : null),
@@ -6408,6 +6410,7 @@ const $l = (e, t) => {
6408
6410
  ]),
6409
6411
  se[16] || (se[16] = I("span", { class: "spr-text-color-strong spr-font-size-200 spr-text-color-weak" }, "/", -1)),
6410
6412
  i2(I("input", {
6413
+ id: `${r.id}-date`,
6411
6414
  ref_key: "dateInputRef",
6412
6415
  ref: l,
6413
6416
  "onUpdate:modelValue": se[4] || (se[4] = (F) => Ce(y) ? y.value = F : null),
@@ -6427,6 +6430,7 @@ const $l = (e, t) => {
6427
6430
  ]),
6428
6431
  se[17] || (se[17] = I("span", { class: "spr-text-color-strong spr-font-size-200 spr-text-color-weak" }, "/", -1)),
6429
6432
  i2(I("input", {
6433
+ id: `${r.id}-year`,
6430
6434
  ref_key: "yearInputRef",
6431
6435
  ref: u,
6432
6436
  "onUpdate:modelValue": se[8] || (se[8] = (F) => Ce(M) ? M.value = F : null),
@@ -7910,6 +7914,7 @@ const $l = (e, t) => {
7910
7914
  "popper-hide-triggers": [],
7911
7915
  container: `#${i(y)}`,
7912
7916
  "auto-hide": !1,
7917
+ delay: 0,
7913
7918
  style: _e({
7914
7919
  width: r.width,
7915
7920
  position: "relative"
@@ -15632,7 +15637,7 @@ const t8 = (e) => ({
15632
15637
  a.value = u.target.value;
15633
15638
  }
15634
15639
  };
15635
- }, j7 = ["for"], T7 = ["rows", "placeholder", "value", "minlength", "maxlength", "readonly", "disabled"], S7 = /* @__PURE__ */ ae({
15640
+ }, j7 = ["for"], T7 = ["id", "rows", "placeholder", "value", "minlength", "maxlength", "readonly", "disabled"], S7 = /* @__PURE__ */ ae({
15636
15641
  __name: "textarea",
15637
15642
  props: A7,
15638
15643
  emits: x7,
@@ -15646,9 +15651,9 @@ const t8 = (e) => ({
15646
15651
  for: o.id,
15647
15652
  class: b(i(a).labelClasses)
15648
15653
  }, V(o.label), 11, j7)) : w("", !0),
15649
- I("textarea", He({
15650
- class: i(a).textAreaClasses
15651
- }, o.$attrs, {
15654
+ I("textarea", He(o.$attrs, {
15655
+ id: r.id,
15656
+ class: i(a).textAreaClasses,
15652
15657
  rows: o.rows,
15653
15658
  placeholder: o.placeholder,
15654
15659
  value: o.modelValue,
@@ -15730,6 +15735,10 @@ const t8 = (e) => ({
15730
15735
  placeholder: {
15731
15736
  type: String,
15732
15737
  default: ""
15738
+ },
15739
+ id: {
15740
+ type: String,
15741
+ default: "time-picker"
15733
15742
  }
15734
15743
  }, L7 = {
15735
15744
  "update:modelValue": (e) => e instanceof MouseEvent
@@ -15830,6 +15839,7 @@ const t8 = (e) => ({
15830
15839
  }
15831
15840
  }, [
15832
15841
  Y(Ye, {
15842
+ id: r.id,
15833
15843
  modelValue: i(l),
15834
15844
  "onUpdate:modelValue": y[0] || (y[0] = (f) => Ce(l) ? l.value = f : null),
15835
15845
  type: "text",
@@ -15846,7 +15856,7 @@ const t8 = (e) => ({
15846
15856
  Y(i(K), { icon: "ph:clock" })
15847
15857
  ]),
15848
15858
  _: 1
15849
- }, 8, ["modelValue", "placeholder", "readonly", "disabled", "label", "error", "display-helper", "helper-text", "onInput"])
15859
+ }, 8, ["id", "modelValue", "placeholder", "readonly", "disabled", "label", "error", "display-helper", "helper-text", "onInput"])
15850
15860
  ], 8, E7)
15851
15861
  ]),
15852
15862
  _: 1
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "design-system-next",
3
3
  "private": false,
4
- "version": "2.7.11",
4
+ "version": "2.7.12",
5
5
  "main": "./dist/design-system-next.js",
6
6
  "module": "./dist/design-system-next.js",
7
7
  "repository": {
@@ -27,6 +27,7 @@ export const datePickerPropTypes = {
27
27
  id: {
28
28
  type: String,
29
29
  required: true,
30
+ default: 'date-picker',
30
31
  },
31
32
  modelValue: {
32
33
  type: String,
@@ -25,6 +25,7 @@
25
25
  <div ref="datePickerRef" :class="datePickerClasses.datePickerBaseInputClasses" @click="datePopperState = true">
26
26
  <div class="spr-flex spr-h-full spr-items-center spr-gap-1.5">
27
27
  <input
28
+ :id="`${props.id}-month`"
28
29
  ref="monthInputRef"
29
30
  v-model="monthInput"
30
31
  :class="['spr-w-[38px] spr-min-w-[38px]', datePickerClasses.datePickerInputClasses]"
@@ -39,6 +40,7 @@
39
40
  />
40
41
  <span class="spr-text-color-strong spr-font-size-200 spr-text-color-weak">/</span>
41
42
  <input
43
+ :id="`${props.id}-date`"
42
44
  ref="dateInputRef"
43
45
  v-model="dateInput"
44
46
  :class="['spr-w-[24px] spr-min-w-[24px] spr-text-center', datePickerClasses.datePickerInputClasses]"
@@ -53,6 +55,7 @@
53
55
  />
54
56
  <span class="spr-text-color-strong spr-font-size-200 spr-text-color-weak">/</span>
55
57
  <input
58
+ :id="`${props.id}-year`"
56
59
  ref="yearInputRef"
57
60
  v-model="yearInput"
58
61
  :class="['spr-w-[42px] spr-min-w-[42px]', datePickerClasses.datePickerInputClasses]"
@@ -8,6 +8,7 @@
8
8
  :popper-hide-triggers="[]"
9
9
  :container="`#${uniqueId}`"
10
10
  :auto-hide="false"
11
+ :delay="0"
11
12
  :style="{
12
13
  width: props.width,
13
14
  position: 'relative',
@@ -2,8 +2,9 @@
2
2
  <div :class="textareaClasses.wrapperClasses">
3
3
  <label v-if="label" :for="id" :class="textareaClasses.labelClasses">{{ label }}</label>
4
4
  <textarea
5
- :class="textareaClasses.textAreaClasses"
6
5
  v-bind="$attrs"
6
+ :id="props.id"
7
+ :class="textareaClasses.textAreaClasses"
7
8
  :rows="rows"
8
9
  :placeholder="placeholder"
9
10
  :value="modelValue"
@@ -55,6 +55,10 @@ export const timePickerPropTypes = {
55
55
  type: String,
56
56
  default: '',
57
57
  },
58
+ id: {
59
+ type: String,
60
+ default: 'time-picker',
61
+ },
58
62
  };
59
63
  export const timePickerEmitTypes = {
60
64
  'update:modelValue': (evt: MouseEvent): evt is MouseEvent => evt instanceof MouseEvent,
@@ -19,6 +19,7 @@
19
19
  }"
20
20
  >
21
21
  <spr-input
22
+ :id="props.id"
22
23
  v-model="selectedValue"
23
24
  type="text"
24
25
  :placeholder="getPlaceHolder"