@ithinkdt/ui 4.0.9 → 4.0.10

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.
package/dist/index.js CHANGED
@@ -169,7 +169,7 @@ var ge = /* @__PURE__ */ m({
169
169
  { bottom: !0 }
170
170
  ]]);
171
171
  }
172
- }), q = "APP_SIDER_COLLAPSED", J = () => p("svg", {
172
+ }), q = "APP_SIDEBAR_COLLAPSED", J = () => p("svg", {
173
173
  xmlns: "http://www.w3.org/2000/svg",
174
174
  "xmlns:xlink": "http://www.w3.org/1999/xlink",
175
175
  role: "img",
@@ -291,7 +291,7 @@ var ye = /* @__PURE__ */ m({
291
291
  }), Se = /* @__PURE__ */ r([
292
292
  i("layout", {
293
293
  display: "grid",
294
- gridTemplateAreas: "\n 'sider header'\n 'sider content'\n 'sider footer'\n ",
294
+ gridTemplateAreas: "\n 'sidebar header'\n 'sidebar content'\n 'sidebar footer'\n ",
295
295
  gridTemplateRows: "auto 1fr auto",
296
296
  gridTemplateColumns: "auto 1fr",
297
297
  position: "relative",
@@ -299,10 +299,10 @@ var ye = /* @__PURE__ */ m({
299
299
  left: "0",
300
300
  transition: "all 0.2s cubic-bezier(0.4, 0, 0.2, 1)",
301
301
  "--app-content-height": "calc(100vh - var(--app-header-height) - var(--app-footer-height))"
302
- }, [o("full-header", { gridTemplateAreas: "\n 'header header'\n 'sider content'\n 'sider footer'\n " }), o("full-content", {
303
- width: "calc(100% + var(--app-sider-width))",
302
+ }, [o("full-header", { gridTemplateAreas: "\n 'header header'\n 'sidebar content'\n 'sidebar footer'\n " }), o("full-content", {
303
+ width: "calc(100% + var(--app-sidebar-width))",
304
304
  height: "calc(100% + var(--app-header-height))",
305
- left: "calc(-1 * var(--app-sider-width))",
305
+ left: "calc(-1 * var(--app-sidebar-width))",
306
306
  top: "calc(-1 * var(--app-header-height))"
307
307
  })]),
308
308
  i("header", {
@@ -311,9 +311,9 @@ var ye = /* @__PURE__ */ m({
311
311
  zIndex: 2,
312
312
  height: "var(--app-header-height, 44px)"
313
313
  }),
314
- i("sider", {
315
- gridArea: "sider",
316
- width: "var(--app-sider-width, 220px)",
314
+ i("sidebar", {
315
+ gridArea: "sidebar",
316
+ width: "var(--app-sidebar-width, 220px)",
317
317
  display: "flex",
318
318
  flexDirection: "column",
319
319
  overflow: "auto",
@@ -377,7 +377,7 @@ var ye = /* @__PURE__ */ m({
377
377
  setup(e, { slots: t }) {
378
378
  n("-layout", Se, b("app"), !1);
379
379
  let r = y({
380
- siderWidth: "0px",
380
+ sidebarWidth: "0px",
381
381
  headerHeight: "0px",
382
382
  footerHeight: "0px",
383
383
  hasMultiTab: !1
@@ -391,7 +391,7 @@ var ye = /* @__PURE__ */ m({
391
391
  "app-layout--full-content": e.fullContent
392
392
  },
393
393
  style: {
394
- "--app-sider-width": r.siderWidth,
394
+ "--app-sidebar-width": r.sidebarWidth,
395
395
  "--app-header-height": r.headerHeight,
396
396
  "--app-footer-height": r.footerHeight
397
397
  }
@@ -429,13 +429,13 @@ var ye = /* @__PURE__ */ m({
429
429
  setup(t, { emit: n, slots: r }) {
430
430
  v(q, S(t, "collapsed"));
431
431
  let { t: i } = e(), a = X();
432
- return () => (a.siderWidth = (t.collapsed ? t.collapsedWidth : t.width) + "px", p("div", { class: "app-sider" }, [x(r, "default"), t.showCollapseBtn ? D(p(j, {
433
- class: "app-sider__collapse-btn",
432
+ return () => (a.sidebarWidth = (t.collapsed ? t.collapsedWidth : t.width) + "px", p("div", { class: "app-sidebar" }, [x(r, "default"), t.showCollapseBtn ? D(p(j, {
433
+ class: "app-sidebar__collapse-btn",
434
434
  quaternary: !0,
435
435
  onClick: () => {
436
436
  n("update:collapsed", !t.collapsed);
437
437
  }
438
- }, { default: () => [p(F, { size: "20" }, { default: () => [t.collapsed ? p(we, null, null) : p(Ce, null, null)] })] }), [[s, t.collapsed ? i("common.layout.sider.expand") : i("common.layout.sider.collapse")]]) : void 0]));
438
+ }, { default: () => [p(F, { size: "20" }, { default: () => [t.collapsed ? p(we, null, null) : p(Ce, null, null)] })] }), [[s, t.collapsed ? i("common.layout.sidebar.expand") : i("common.layout.sidebar.collapse")]]) : void 0]));
439
439
  }
440
440
  }), Oe = /* @__PURE__ */ m({
441
441
  name: "AppContent",
@@ -497,8 +497,8 @@ var je = /* @__PURE__ */ m({
497
497
  }, [x(t, "default", void 0, () => [p("div", {
498
498
  class: "app-logo__img",
499
499
  style: `
500
- width: ${a ? "var(--app-sider-width, 60px)" : "56px"};
501
- font-size: ${a ? "calc(var(--app-sider-width, 60px) - 24px)" : "32px"};
500
+ width: ${a ? "var(--app-sidebar-width, 60px)" : "56px"};
501
+ font-size: ${a ? "calc(var(--app-sidebar-width, 60px) - 24px)" : "32px"};
502
502
  transition: width 0.2s ease-in-out 0.1s;
503
503
  flex: 0 0 auto;
504
504
  display: flex;
package/locale.d.ts CHANGED
@@ -2,7 +2,7 @@ export interface UILocale {
2
2
  all: string
3
3
  back: string
4
4
  layout: {
5
- sider: {
5
+ sidebar: {
6
6
  collapse: string
7
7
  expand: string
8
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ithinkdt/ui",
3
- "version": "4.0.9",
3
+ "version": "4.0.10",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "iThinkDT UI",