@digitalwalletcorp/vue-core 1.1.0 → 1.2.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.
Files changed (67) hide show
  1. package/README.md +20 -9
  2. package/lib/accordion-fieldset.cjs +1 -1
  3. package/lib/accordion-fieldset.d.cts +25 -0
  4. package/lib/accordion-fieldset.js +1 -1
  5. package/lib/{accordion-fieldset.vue_vue_type_style_index_0_lang-tzJhLHyT.js → accordion-fieldset.vue_vue_type_style_index_0_lang-Cf4czDXz.js} +11 -11
  6. package/lib/accordion-fieldset.vue_vue_type_style_index_0_lang-DoM5QjpJ.cjs +1 -0
  7. package/lib/accordion-section.cjs +1 -1
  8. package/lib/accordion-section.d.cts +34 -0
  9. package/lib/accordion-section.js +1 -1
  10. package/lib/{accordion-section.vue_vue_type_style_index_0_lang-BBEywIH3.cjs → accordion-section.vue_vue_type_style_index_0_lang-CFDdUEnn.cjs} +1 -1
  11. package/lib/{accordion-section.vue_vue_type_style_index_0_lang-DAlUN0wH.js → accordion-section.vue_vue_type_style_index_0_lang-Gvjjx02P.js} +1 -1
  12. package/lib/components-C63HJoCn.cjs +1 -0
  13. package/lib/{components-xNQBXMzx.js → components-q4Cf97bO.js} +7 -7
  14. package/lib/components.d.cts +9 -0
  15. package/lib/global.d.cts +7 -0
  16. package/lib/hourglass-loading.d.cts +23 -0
  17. package/lib/index.cjs +1 -1
  18. package/lib/index.d.cts +3 -0
  19. package/lib/index.js +7 -7
  20. package/lib/internal/tab-group-context.d.cts +16 -0
  21. package/lib/internal/use-shrinkable.d.cts +12 -0
  22. package/lib/label-button.cjs +1 -1
  23. package/lib/label-button.d.cts +30 -0
  24. package/lib/label-button.js +1 -1
  25. package/lib/label-button.vue_vue_type_style_index_0_lang-D7ZgfZOL.cjs +1 -0
  26. package/lib/{label-button.vue_vue_type_script_setup_true_lang-CoHrTUSs.js → label-button.vue_vue_type_style_index_0_lang-DqRYddVt.js} +12 -12
  27. package/lib/label-icon.cjs +1 -1
  28. package/lib/label-icon.d.cts +30 -0
  29. package/lib/label-icon.js +1 -1
  30. package/lib/{label-icon.vue_vue_type_style_index_0_lang-C2URq6GP.cjs → label-icon.vue_vue_type_style_index_0_lang-D9Cimu20.cjs} +1 -1
  31. package/lib/{label-icon.vue_vue_type_style_index_0_lang-bQFkQ_gC.js → label-icon.vue_vue_type_style_index_0_lang-me52HE2V.js} +1 -1
  32. package/lib/nuxt.cjs +1 -1
  33. package/lib/nuxt.d.cts +10 -0
  34. package/lib/nuxt.js +1 -1
  35. package/lib/page-section.cjs +1 -1
  36. package/lib/page-section.d.cts +34 -0
  37. package/lib/page-section.js +1 -1
  38. package/lib/{page-section.vue_vue_type_style_index_0_lang-bvQeBjUP.cjs → page-section.vue_vue_type_style_index_0_lang-DEAkTLxd.cjs} +1 -1
  39. package/lib/{page-section.vue_vue_type_style_index_0_lang-4MLb_sDZ.js → page-section.vue_vue_type_style_index_0_lang-DpVQe_rV.js} +1 -1
  40. package/lib/page-title.cjs +1 -1
  41. package/lib/page-title.d.cts +20 -0
  42. package/lib/page-title.js +1 -1
  43. package/lib/{page-title.vue_vue_type_style_index_0_lang-DcmGICoo.cjs → page-title.vue_vue_type_style_index_0_lang-BqIsIks5.cjs} +1 -1
  44. package/lib/{page-title.vue_vue_type_style_index_0_lang-CzfdMzXf.js → page-title.vue_vue_type_style_index_0_lang-ChZot85K.js} +1 -1
  45. package/lib/register.cjs +1 -1
  46. package/lib/register.d.cts +9 -0
  47. package/lib/register.js +1 -1
  48. package/lib/style.css +1 -1
  49. package/lib/tab-content.d.cts +39 -0
  50. package/lib/tab-group.cjs +1 -1
  51. package/lib/tab-group.d.cts +44 -0
  52. package/lib/tab-group.js +1 -1
  53. package/lib/{tab-group.vue_vue_type_style_index_0_lang-CjnBkvvZ.js → tab-group.vue_vue_type_style_index_0_lang-C84mDEOC.js} +1 -1
  54. package/lib/{tab-group.vue_vue_type_style_index_0_lang-CwVGYZAo.cjs → tab-group.vue_vue_type_style_index_0_lang-CMaufRJV.cjs} +1 -1
  55. package/lib/types/label-preset.d.cts +12 -0
  56. package/package.json +28 -12
  57. package/src/accordion-fieldset.vue +7 -2
  58. package/src/accordion-section.vue +11 -1
  59. package/src/label-button.vue +32 -1
  60. package/src/label-icon.vue +2 -2
  61. package/src/page-section.vue +2 -2
  62. package/src/page-title.vue +5 -5
  63. package/src/tab-content.vue +7 -7
  64. package/src/tab-group.vue +27 -16
  65. package/lib/accordion-fieldset.vue_vue_type_style_index_0_lang-Dd8HXuVm.cjs +0 -1
  66. package/lib/components-YAonMRcW.cjs +0 -1
  67. package/lib/label-button.vue_vue_type_script_setup_true_lang-DqhdCgmJ.cjs +0 -1
package/src/tab-group.vue CHANGED
@@ -178,68 +178,79 @@ const onChangeTab = (labelId: string) => {
178
178
  display: flex;
179
179
  flex-direction: row;
180
180
  flex-wrap: wrap;
181
+ position: relative;
181
182
  margin-top: 5px;
182
183
  padding-bottom: 4px;
183
184
  }
184
185
 
185
186
  :where(.dwui-tab-radio) {
186
- display: none;
187
+ position: absolute;
188
+ width: 1px;
189
+ height: 1px;
190
+ margin: 0;
191
+ opacity: 0;
192
+ pointer-events: none;
187
193
  }
188
194
 
189
195
  :where(.dwui-tab-item) {
190
196
  display: block;
191
197
  min-width: 100px;
192
198
  padding: 0 4px;
193
- border: 1px solid var(--dwui-tab-border, #565656);
194
- border-bottom: 1px solid var(--dwui-tab-header-accent, #5ab4bd);
195
- background: var(--dwui-tab-header-bg, linear-gradient(#1313c7, navy));
199
+ border: 1px solid var(--dwui-border-color-tab, light-dark(#565656, #8a8a8a));
200
+ border-bottom: 1px solid var(--dwui-border-color-tab-header-accent, #5ab4bd);
201
+ background: var(--dwui-background-tab-header, linear-gradient(light-dark(#1313c7, #2a3a8f), light-dark(navy, #141c4d)));
196
202
  line-height: 2em;
197
203
  text-align: center;
198
204
  white-space: nowrap;
199
- color: var(--dwui-tab-header-text, azure);
205
+ color: var(--dwui-color-text-tab-header, azure);
200
206
  text-overflow: ellipsis;
201
207
  cursor: pointer;
202
208
  transition: all 0.2s ease;
203
209
  }
204
210
 
205
211
  :where(.dwui-tab-radio:checked + .dwui-tab-item) {
206
- background: var(--dwui-tab-header-selected-bg, linear-gradient(#1313c7, rgb(149, 149, 234), #1313c7));
207
- color: var(--dwui-tab-header-selected-text, azure);
212
+ background: var(--dwui-background-tab-header-selected, linear-gradient(light-dark(#1313c7, #2a3a8f), light-dark(rgb(149, 149, 234), #5a62b8), light-dark(#1313c7, #2a3a8f)));
213
+ color: var(--dwui-color-text-tab-header-selected, azure);
208
214
  /* 選択済みのタブは操作の対象ではないためカーソルを既定にする */
209
215
  cursor: default;
210
216
  }
211
217
 
212
218
  :where(.dwui-tab-radio:disabled + .dwui-tab-item) {
213
- background: var(--dwui-tab-header-disabled-bg, gray);
219
+ background: var(--dwui-background-tab-header-disabled, light-dark(gray, #4a4a4a));
214
220
  cursor: not-allowed;
215
221
  }
216
222
 
217
223
  :where(.dwui-tab-item.dwui-tab-warn) {
218
- background: var(--dwui-tab-header-warn-bg, #efef13);
219
- color: var(--dwui-tab-header-warn-text, midnightblue);
224
+ background: var(--dwui-background-tab-header-warn, light-dark(#efef13, #8a8a10));
225
+ color: var(--dwui-color-text-tab-header-warn, light-dark(midnightblue, #fffbd0));
220
226
  }
221
227
 
222
228
  :where(.dwui-tab-radio:checked + .dwui-tab-item.dwui-tab-warn) {
223
- background: var(--dwui-tab-header-warn-selected-bg, linear-gradient(#fafa06, rgb(232, 238, 206), #fafa06));
229
+ background: var(--dwui-background-tab-header-warn-selected, linear-gradient(light-dark(#fafa06, #8a8a10), light-dark(rgb(232, 238, 206), #a8a860), light-dark(#fafa06, #8a8a10)));
224
230
  }
225
231
 
226
232
  :where(.dwui-tab-item.dwui-tab-error) {
227
- background: var(--dwui-tab-header-error-bg, red);
228
- color: var(--dwui-tab-header-error-text, azure);
233
+ background: var(--dwui-background-tab-header-error, light-dark(red, #a01818));
234
+ color: var(--dwui-color-text-tab-header-error, azure);
229
235
  }
230
236
 
231
237
  :where(.dwui-tab-radio:checked + .dwui-tab-item.dwui-tab-error) {
232
- background: var(--dwui-tab-header-error-selected-bg, linear-gradient(#ff0000, rgb(240, 136, 136), #ff0000));
238
+ background: var(--dwui-background-tab-header-error-selected, linear-gradient(light-dark(#ff0000, #a01818), light-dark(rgb(240, 136, 136), #c86060), light-dark(#ff0000, #a01818)));
233
239
  }
234
240
 
235
241
  :where(.dwui-tab-radio:not(:checked) + .dwui-tab-item:hover) {
236
242
  /* 背景の上に半透明の白を重ね、枠線と文字はそのままで背景だけを明るくする */
237
- box-shadow: inset 0 0 0 999px var(--dwui-tab-header-hover-overlay, rgba(255, 255, 255, 0.35));
243
+ box-shadow: inset 0 0 0 999px var(--dwui-overlay-color-tab-header-hover, light-dark(rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.15)));
244
+ }
245
+
246
+ :where(.dwui-tab-radio:focus-visible + .dwui-tab-item) {
247
+ outline: var(--dwui-width-focus-ring, 2px) solid var(--dwui-outline-color-focus-ring, Highlight);
248
+ outline-offset: var(--dwui-offset-focus-ring, 2px);
238
249
  }
239
250
 
240
251
  :where(.dwui-tab-items) {
241
252
  height: 100%;
242
- border: 1px solid var(--dwui-tab-border, #565656);
253
+ border: 1px solid var(--dwui-border-color-tab, light-dark(#565656, #8a8a8a));
243
254
  /* 中身を切り替えたときのスライドを枠内に収める */
244
255
  overflow: hidden;
245
256
  }
@@ -1 +0,0 @@
1
- "use strict";const e=require("vue"),r=require("@digitalwalletcorp/vue-svg-icons"),c=require("./label-icon.vue_vue_type_style_index_0_lang-C2URq6GP.cjs"),u=require("./use-shrinkable-Cu9JQZll.cjs"),p=["disabled"],_=["aria-expanded"],f=e.defineComponent({__name:"accordion-fieldset",props:{legend:{},disabled:{type:Boolean},initialExpand:{type:Boolean}},setup(a){const t=a,o=e.useSlots(),l=e.ref(),n=e.reactive({expanded:!0}),i=u.useShrinkable(l),s=()=>{n.expanded=!n.expanded};return e.onMounted(()=>{n.expanded=!!t.initialExpand}),(d,g)=>(e.openBlock(),e.createElementBlock("fieldset",{class:"dwui-accordion-fieldset",disabled:t.disabled},[e.createElementVNode("legend",null,[e.createElementVNode("button",{type:"button",class:"dwui-accordion-toggle","aria-expanded":n.expanded,onClick:s},[e.createVNode(e.unref(r.SvgTriangleButton),{direction:n.expanded?"up":"down"},null,8,["direction"]),t.legend!=null||o.legend!=null||o.icon!=null?(e.openBlock(),e.createBlock(c._sfc_main,{key:0},e.createSlots({_:2},[o.icon!=null?{name:"icon",fn:e.withCtx(()=>[e.renderSlot(d.$slots,"icon")]),key:"0"}:void 0,t.legend!=null||o.legend!=null?{name:"default",fn:e.withCtx(()=>[e.renderSlot(d.$slots,"legend",{},()=>[e.createTextVNode(e.toDisplayString(t.legend),1)])]),key:"1"}:void 0]),1024)):e.createCommentVNode("",!0)],8,_)]),e.createElementVNode("div",{ref_key:"refContents",ref:l,class:e.normalizeClass(["dwui-accordion-contents",e.unref(i)?n.expanded?"dwui-expanded":"dwui-shrunk":""])},[e.renderSlot(d.$slots,"default")],2)],8,p))}});exports._sfc_main=f;
@@ -1 +0,0 @@
1
- "use strict";const e=require("./accordion-fieldset.vue_vue_type_style_index_0_lang-Dd8HXuVm.cjs"),_=require("./accordion-section.vue_vue_type_style_index_0_lang-BBEywIH3.cjs"),n=require("./hourglass-loading.vue_vue_type_style_index_0_lang-C72UVA9W.cjs"),t=require("./label-button.vue_vue_type_script_setup_true_lang-DqhdCgmJ.cjs"),i=require("./label-icon.vue_vue_type_style_index_0_lang-C2URq6GP.cjs"),o=require("./page-section.vue_vue_type_style_index_0_lang-bvQeBjUP.cjs"),c=require("./page-title.vue_vue_type_style_index_0_lang-DcmGICoo.cjs"),s=require("./tab-content.vue_vue_type_style_index_0_lang-BeCi7Xkp.cjs"),u=require("./tab-group.vue_vue_type_style_index_0_lang-CwVGYZAo.cjs"),a=Object.freeze(Object.defineProperty({__proto__:null,AccordionFieldset:e._sfc_main,AccordionSection:_._sfc_main,HourglassLoading:n._sfc_main,LabelButton:t._sfc_main,LabelIcon:i._sfc_main,PageSection:o._sfc_main,PageTitle:c._sfc_main,TabContent:s._sfc_main,TabGroup:u._sfc_main},Symbol.toStringTag,{value:"Module"}));exports.components=a;
@@ -1 +0,0 @@
1
- "use strict";const e=require("vue"),a=require("./label-icon.vue_vue_type_style_index_0_lang-C2URq6GP.cjs"),o=e.defineComponent({__name:"label-button",props:{preset:{},gap:{},iconClass:{type:[Boolean,null,String,Object,Array]},iconStyle:{type:[Boolean,null,String,Object,Array]},labelClass:{type:[Boolean,null,String,Object,Array]},labelStyle:{type:[Boolean,null,String,Object,Array]}},setup(s){const l=s,t=e.useSlots();return(n,c)=>(e.openBlock(),e.createElementBlock("button",null,[e.createVNode(a._sfc_main,{preset:l.preset,gap:l.gap,"icon-class":l.iconClass,"icon-style":l.iconStyle,"label-class":l.labelClass,"label-style":l.labelStyle},e.createSlots({_:2},[t.icon!=null?{name:"icon",fn:e.withCtx(()=>[e.renderSlot(n.$slots,"icon")]),key:"0"}:void 0,t.default!=null?{name:"default",fn:e.withCtx(()=>[e.renderSlot(n.$slots,"default")]),key:"1"}:void 0]),1032,["preset","gap","icon-class","icon-style","label-class","label-style"])]))}});exports._sfc_main=o;