@dpa-id-components/dpa-shared-components 22.0.0-next.1 → 22.0.0-next.3

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 (107) hide show
  1. package/dist/assets/icons/lock-filled.vue.d.ts +3 -0
  2. package/dist/assets/icons/play-filled.vue.d.ts +3 -0
  3. package/dist/components/UiIcon/icons.d.ts +2 -0
  4. package/dist/components/UiToggleButton/UiToggleButton.vue.d.ts +1 -1
  5. package/dist/dpa-shared-components.js +104 -111
  6. package/dist/lock-filled-Bi_mH2A-.js +18 -0
  7. package/dist/play-X3Ob-qza.js +18 -0
  8. package/dist/play-filled-DYyCOR9Y.js +18 -0
  9. package/dist/src/assets/icons/lock-filled.vue +13 -0
  10. package/dist/src/assets/icons/play-filled.vue +13 -0
  11. package/dist/src/assets/icons/play.vue +1 -1
  12. package/dist/src/components/UiButtonGroup/UiButtonGroup.stories.ts +9 -8
  13. package/dist/src/components/UiCheckbox/UiCheckbox.stories.ts +14 -5
  14. package/dist/src/components/UiIcon/UiIcon.stories.ts +8 -4
  15. package/dist/src/components/UiIcon/icons.ts +2 -0
  16. package/dist/src/components/UiInput/UiInput.stories.ts +15 -6
  17. package/dist/src/components/UiMediaTypeIcon/UiMediaTypeIcon.stories.ts +8 -4
  18. package/dist/src/components/UiRadioButton/UiRadioButton.stories.ts +14 -5
  19. package/dist/src/components/UiRadioButton/UiRadioButton.vue +1 -1
  20. package/dist/src/components/UiSelect/UiSelect.stories.ts +12 -5
  21. package/dist/src/components/UiToggleButton/UiToggleButton.vue +19 -31
  22. package/dist/style.css +1 -1
  23. package/package.json +1 -1
  24. package/src/assets/icons/lock-filled.vue +13 -0
  25. package/src/assets/icons/play-filled.vue +13 -0
  26. package/src/assets/icons/play.vue +1 -1
  27. package/src/components/UiIcon/icons.ts +2 -0
  28. package/src/components/UiRadioButton/UiRadioButton.vue +1 -1
  29. package/src/components/UiToggleButton/UiToggleButton.vue +19 -31
  30. package/dist/play-CArB2O7k.js +0 -18
  31. /package/dist/{alert-CdAp0ksh.js → alert-CFNc2ENq.js} +0 -0
  32. /package/dist/{audio-Cgg6MUeM.js → audio-BHaZEzct.js} +0 -0
  33. /package/dist/{gallery-DPl8qZQu.js → gallery-DwPWc5L2.js} +0 -0
  34. /package/dist/{graphic-BbhCuiiE.js → graphic-DMZdoJT7.js} +0 -0
  35. /package/dist/{lock-C5vUwbkA.js → lock-Dv7XHTQp.js} +0 -0
  36. /package/dist/{mail-CtA-d2d0.js → mail-BBU73oBg.js} +0 -0
  37. /package/dist/{map-FF2zfEGP.js → map-ChyXZkb4.js} +0 -0
  38. /package/dist/{map-filled-Y8JaYK4Y.js → map-filled-DG4BwVQo.js} +0 -0
  39. /package/dist/{menu-DFzmvE6J.js → menu-Dx9cgqxe.js} +0 -0
  40. /package/dist/{minus-COmVHb9S.js → minus-DkCYxSkQ.js} +0 -0
  41. /package/dist/{more-horizontal-DzHbd3yn.js → more-horizontal-c6TlnC21.js} +0 -0
  42. /package/dist/{more-vertical-CiJm6ZaV.js → more-vertical-BUz_UWPT.js} +0 -0
  43. /package/dist/{move-CUyDTrlz.js → move-C3IOZIl7.js} +0 -0
  44. /package/dist/{move-up-down-3AiMDXGu.js → move-up-down-DMvukk4h.js} +0 -0
  45. /package/dist/{navigation-BryXzz7G.js → navigation-BiEFOSmS.js} +0 -0
  46. /package/dist/{note-CXIfkCb0.js → note-SrqI5m8n.js} +0 -0
  47. /package/dist/{offline-BlqqTvjx.js → offline-UyYgVOeH.js} +0 -0
  48. /package/dist/{package-pKbuF39E.js → package-CT6Qsufx.js} +0 -0
  49. /package/dist/{package-BEkSqrZt.js → package-DlxyzZ6H.js} +0 -0
  50. /package/dist/{paper-plane-CwVjTgAB.js → paper-plane-rpVAty7i.js} +0 -0
  51. /package/dist/{pause-D-nbILiS.js → pause-C6E6QfcV.js} +0 -0
  52. /package/dist/{pdf-C7o5LP5D.js → pdf-B4gHF03O.js} +0 -0
  53. /package/dist/{pen-check-GQoVyZ_V.js → pen-check-CNrvx2ns.js} +0 -0
  54. /package/dist/{pen-5O6IZM5k.js → pen-im8XsK0s.js} +0 -0
  55. /package/dist/{people-CFA1u84D.js → people-DzOP6pil.js} +0 -0
  56. /package/dist/{phone-BmL2p-7F.js → phone-B0pmRKLI.js} +0 -0
  57. /package/dist/{picture-jf1PkZfY.js → picture-1NpQXh5F.js} +0 -0
  58. /package/dist/{picture-BBiWVmta.js → picture-CKfJP6Jt.js} +0 -0
  59. /package/dist/{pin-CTaBntUQ.js → pin-BOW6sde5.js} +0 -0
  60. /package/dist/{planning-s3sRV6ix.js → planning-DdILTFP4.js} +0 -0
  61. /package/dist/{plus-Dm-ZxxHJ.js → plus-Bh6PRV0l.js} +0 -0
  62. /package/dist/{print-B5fjHJZL.js → print-BLPvvCA8.js} +0 -0
  63. /package/dist/{refresh-gU5ZZuG6.js → refresh-CU1dwwoY.js} +0 -0
  64. /package/dist/{reset-CwU1iGF5.js → reset-Dgbd_O_e.js} +0 -0
  65. /package/dist/{responsive-BHNmDmM6.js → responsive-BQ5xjhN4.js} +0 -0
  66. /package/dist/{rubix-thema-BZvVEFud.js → rubix-thema-OSZXu-Md.js} +0 -0
  67. /package/dist/{save-mTHDeUnL.js → save-CIg7q65b.js} +0 -0
  68. /package/dist/{saved-search-DJO4_yPH.js → saved-search-CeLi3iw6.js} +0 -0
  69. /package/dist/{saved-search-filled-CNz5iwu_.js → saved-search-filled-BTrN8F4r.js} +0 -0
  70. /package/dist/{search-B5yHBLf_.js → search-CQIKBYqi.js} +0 -0
  71. /package/dist/{settings-Hb_Y7Y53.js → settings-BMFNH3LB.js} +0 -0
  72. /package/dist/{share-OpdW8ZmZ.js → share-DMoEV0Gq.js} +0 -0
  73. /package/dist/{share-alternative-C3pSVTYb.js → share-alternative-P6c3Vi7L.js} +0 -0
  74. /package/dist/{sidebar-DtAUGBof.js → sidebar-D2uDpQM0.js} +0 -0
  75. /package/dist/{sidebar-filled-BnnqCUYl.js → sidebar-filled-LiiR992T.js} +0 -0
  76. /package/dist/{slack-mCoCq7b9.js → slack-CP6YIaQf.js} +0 -0
  77. /package/dist/{slider-config-yjKG-9r9.js → slider-config-B_eNooTe.js} +0 -0
  78. /package/dist/{spellcheck-bP4DPCKJ.js → spellcheck-B0Il_eZe.js} +0 -0
  79. /package/dist/{spinner-CrCQ6H6L.js → spinner-CRHdpyRR.js} +0 -0
  80. /package/dist/{standard-view-CN0ixRE4.js → standard-view-CmlAxXrM.js} +0 -0
  81. /package/dist/{star-filled-CdXMXBn7.js → star-filled-V0iRfD5M.js} +0 -0
  82. /package/dist/{star-BKWqck4u.js → star-x38wQI5a.js} +0 -0
  83. /package/dist/{stop-B8l9lmwT.js → stop-BKrExcb1.js} +0 -0
  84. /package/dist/{story-DOxZDwJp.js → story-6skLDsue.js} +0 -0
  85. /package/dist/{story-Cxy8EkgB.js → story-B2rvDIJr.js} +0 -0
  86. /package/dist/{sync-BW_fAqt6.js → sync-DXiTJomf.js} +0 -0
  87. /package/dist/{tasks-DLNuebMi.js → tasks-bFDeHCo2.js} +0 -0
  88. /package/dist/{text-Bsl2QZz3.js → text-ClHl0Uhs.js} +0 -0
  89. /package/dist/{text-CPSps-qh.js → text-bDVoEwpJ.js} +0 -0
  90. /package/dist/{thumbs-down-pSf_ND98.js → thumbs-down-BAjh-Ctz.js} +0 -0
  91. /package/dist/{thumbs-up-Braz70N6.js → thumbs-up-DCwzHniR.js} +0 -0
  92. /package/dist/{thumbs-up-double-C6foUkOq.js → thumbs-up-double-CIPSNbd7.js} +0 -0
  93. /package/dist/{topic-BamlhBNV.js → topic-Cv-whi27.js} +0 -0
  94. /package/dist/{union-CYw04THu.js → union-BYS3V2vp.js} +0 -0
  95. /package/dist/{upload-BL_iLqTa.js → upload-Dvuj2qmk.js} +0 -0
  96. /package/dist/{user-need-divert-me-2RaqdMMH.js → user-need-divert-me-D33Y5bma.js} +0 -0
  97. /package/dist/{user-need-educate-me-CRi42bIc.js → user-need-educate-me-BC53AIXw.js} +0 -0
  98. /package/dist/{user-need-give-me-perspective-BIF7v9vF.js → user-need-give-me-perspective-D17ApF3n.js} +0 -0
  99. /package/dist/{user-need-help-me-O0XSLzP-.js → user-need-help-me-BWdR9Tv7.js} +0 -0
  100. /package/dist/{user-need-touch-me-BueJ3SSh.js → user-need-touch-me-q1HCbpQ7.js} +0 -0
  101. /package/dist/{user-need-update-me-DP574fsn.js → user-need-update-me-BItjScS5.js} +0 -0
  102. /package/dist/{video-CWHoNlON.js → video-BFPO-328.js} +0 -0
  103. /package/dist/{video-DhS7zpNF.js → video-BRSUY0SQ.js} +0 -0
  104. /package/dist/{video-overlay-D6e61Eo7.js → video-overlay-DnN10S5T.js} +0 -0
  105. /package/dist/{view-Bc5W8beK.js → view-C4Sx7i27.js} +0 -0
  106. /package/dist/{view-off-DquC2i3E.js → view-off-BtkqBEfJ.js} +0 -0
  107. /package/dist/{volume-up-DEzoW7Bq.js → volume-up-_3rO2YWj.js} +0 -0
@@ -6,7 +6,7 @@
6
6
  xmlns="http://www.w3.org/2000/svg"
7
7
  >
8
8
  <path
9
- d="M10.3846 18.0028C10.0776 18.0028 9.76759 17.9368 9.47859 17.8008C8.83059 17.4948 8.42859 16.8878 8.42859 16.2148V7.78878C8.42859 7.11578 8.83059 6.50878 9.47859 6.20278C10.2106 5.85778 11.0786 5.95878 11.6876 6.46178L16.7866 10.6758C17.1956 11.0118 17.4286 11.4958 17.4286 12.0018C17.4286 12.5078 17.1956 12.9918 16.7866 13.3278L11.6876 17.5408C11.3196 17.8458 10.8556 18.0028 10.3846 18.0028Z"
9
+ d="M8 5.83723V18.1L17.197 11.7828L8 5.83723ZM6 4.91861C6 3.73014 7.31627 3.0137 8.31435 3.65892L18.9129 10.5105C19.8119 11.0917 19.8302 12.4005 18.9478 13.0066L8.34926 20.2864C7.35396 20.9701 6 20.2575 6 19.05V4.91861Z"
10
10
  fill="currentColor"
11
11
  />
12
12
  </svg>
@@ -100,6 +100,7 @@ export const icons = {
100
100
  "list": () => import("../../assets/icons/list.vue"),
101
101
  "list-search": () => import("../../assets/icons/list-search.vue"),
102
102
  "lock": () => import("../../assets/icons/lock.vue"),
103
+ "lock-filled": () => import("../../assets/icons/lock-filled.vue"),
103
104
  "mail": () => import("../../assets/icons/mail.vue"),
104
105
  "map": () => import("../../assets/icons/map.vue"),
105
106
  "map-filled": () => import("../../assets/icons/map-filled.vue"),
@@ -124,6 +125,7 @@ export const icons = {
124
125
  "pin": () => import("../../assets/icons/pin.vue"),
125
126
  "planning": () => import("../../assets/icons/planning.vue"),
126
127
  "play": () => import("../../assets/icons/play.vue"),
128
+ "play-filled": () => import("../../assets/icons/play-filled.vue"),
127
129
  "plus": () => import("../../assets/icons/plus.vue"),
128
130
  "print": () => import("../../assets/icons/print.vue"),
129
131
  "refresh": () => import("../../assets/icons/refresh.vue"),
@@ -13,7 +13,7 @@
13
13
  <input
14
14
  :id="uniqueId"
15
15
  v-model="model"
16
- class="inline-flex aspect-square appearance-none items-center justify-center rounded-full border-2 bg-neutral align-middle transition-colors after:size-2 after:rounded-full checked:after:content-[''] not-read-only:enabled:cursor-pointer disabled:border-neutral-muted disabled:text-neutral-soft disabled:checked:after:bg-neutral-muted"
16
+ class="inline-flex aspect-square appearance-none items-center justify-center rounded-full border-2 bg-neutral align-middle transition-colors after:size-2 after:rounded-full checked:after:content-[''] enabled:cursor-pointer disabled:border-neutral-muted disabled:text-neutral-soft disabled:checked:after:bg-neutral-muted"
17
17
  :class="{
18
18
  'size-4': size === 'sm',
19
19
  'size-5': size === 'md',
@@ -9,35 +9,23 @@
9
9
  "
10
10
  >
11
11
  <slot v-if="labelPosition === 'left'" />
12
- <div class="relative">
13
- <input
14
- :id="toggleId"
15
- v-model="modelValue"
16
- type="checkbox"
17
- data-testid="toggleButton"
18
- role="switch"
19
- class="sr-only"
20
- v-bind="{ ...$attrs, class: null }"
21
- />
22
- <div
23
- class="line rounded-full shadow-inner transition-opacity duration-200 ease-in-out"
24
- :class="{
25
- 'bg-secondary opacity-50': modelValue,
26
- 'bg-neutral-faint': !modelValue,
27
- 'h-3 w-6': size === 'sm',
28
- 'h-4 w-10': size === 'lg',
29
- }"
30
- />
31
- <div
32
- :class="{
33
- 'translate-x-full bg-secondary': modelValue,
34
- 'bg-neutral-muted': !modelValue,
35
- '-top-0.5 size-4': size === 'sm',
36
- '-top-1 size-6': size === 'lg',
37
- }"
38
- class="dot absolute -left-1 rounded-full shadow-sm transition-transform duration-200 ease-in-out"
39
- />
40
- </div>
12
+
13
+ <input
14
+ :id="toggleId"
15
+ v-model="model"
16
+ class="relative appearance-none rounded-full shadow-inner transition-opacity duration-200 ease-in-out after:absolute after:-left-1 after:block after:rounded-full after:shadow-sm after:transition-transform after:duration-200 after:ease-in-out after:content-[''] enabled:cursor-pointer"
17
+ :class="{
18
+ 'bg-secondary-emphasis after:translate-x-full after:bg-secondary':
19
+ model,
20
+ 'bg-neutral-faint after:bg-neutral-muted': !model,
21
+ 'h-3 w-6 after:-top-0.5 after:size-4': size === 'sm',
22
+ 'h-4 w-10 after:-top-1 after:size-6': size === 'lg',
23
+ }"
24
+ type="checkbox"
25
+ role="switch"
26
+ data-testid="toggleButton"
27
+ v-bind="{ ...$attrs, class: null }"
28
+ />
41
29
 
42
30
  <slot v-if="labelPosition === 'right'" />
43
31
  </UiLabel>
@@ -51,13 +39,13 @@ import UiLabel from "../UiLabel/UiLabel.vue";
51
39
 
52
40
  defineOptions({ inheritAttrs: false });
53
41
 
54
- const modelValue = defineModel<boolean>({ default: false });
42
+ const model = defineModel<boolean>({ default: false });
55
43
 
56
44
  defineSlots<{
57
45
  /**
58
46
  * Label content.
59
47
  */
60
- default?: () => any;
48
+ default: () => any;
61
49
  }>();
62
50
 
63
51
  const {
@@ -1,18 +0,0 @@
1
- import { t as e } from "./_plugin-vue_export-helper-BTgDAbhb.js";
2
- import { createElementBlock as t, createElementVNode as n, openBlock as r } from "vue";
3
- //#region src/assets/icons/play.vue
4
- var i = {}, a = {
5
- width: "24",
6
- height: "24",
7
- viewBox: "0 0 24 24",
8
- xmlns: "http://www.w3.org/2000/svg"
9
- };
10
- function o(e, i) {
11
- return r(), t("svg", a, [...i[0] ||= [n("path", {
12
- d: "M10.3846 18.0028C10.0776 18.0028 9.76759 17.9368 9.47859 17.8008C8.83059 17.4948 8.42859 16.8878 8.42859 16.2148V7.78878C8.42859 7.11578 8.83059 6.50878 9.47859 6.20278C10.2106 5.85778 11.0786 5.95878 11.6876 6.46178L16.7866 10.6758C17.1956 11.0118 17.4286 11.4958 17.4286 12.0018C17.4286 12.5078 17.1956 12.9918 16.7866 13.3278L11.6876 17.5408C11.3196 17.8458 10.8556 18.0028 10.3846 18.0028Z",
13
- fill: "currentColor"
14
- }, null, -1)]]);
15
- }
16
- var s = /* @__PURE__ */ e(i, [["render", o]]);
17
- //#endregion
18
- export { s as default };
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes