@dartcom/ui-kit 10.2.7 → 10.2.8

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 +1 @@
1
- {"version":3,"file":"draggable-container.stories.d.ts","sourceRoot":"","sources":["../../../src/components/draggable-container/draggable-container.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,GAAG,CAAC;AAGvC,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,kBAAkB,CAyBzC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAEF,eAAO,MAAM,GAAG,EAAE,KAMjB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAMpB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAQrB,CAAC"}
1
+ {"version":3,"file":"draggable-container.stories.d.ts","sourceRoot":"","sources":["../../../src/components/draggable-container/draggable-container.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,GAAG,CAAC;AAGvC,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,kBAAkB,CAwBzC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAEF,eAAO,MAAM,GAAG,EAAE,KAMjB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAMpB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAQrB,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import { SxFunction } from '../../lib/types';
2
2
  export type DraggableContainerProps = {
3
- zIndex: number;
3
+ width: number;
4
+ zIndex?: number;
4
5
  top?: number;
5
6
  bottom?: number;
6
7
  right?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/draggable-container/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,MAAM,MAAM,uBAAuB,GAAG;IACpC,MAAM,EAAE,MAAM,CAAC;IAEf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,EAAE,CAAC,EAAE,UAAU,CAAC;CACjB,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/draggable-container/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,MAAM,MAAM,uBAAuB,GAAG;IACpC,KAAK,EAAE,MAAM,CAAC;IAEd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,EAAE,CAAC,EAAE,UAAU,CAAC;CACjB,CAAC"}
package/dist/index.cjs CHANGED
@@ -1971,6 +1971,13 @@ const getCoordinateByLatLng = (latLng) => {
1971
1971
  };
1972
1972
  return coordinate;
1973
1973
  };
1974
+ const getEntityNames = ({ entity, names, }) => {
1975
+ const layerNames = {};
1976
+ names.forEach((key) => {
1977
+ layerNames[key] = `${entity}_${key}`;
1978
+ });
1979
+ return layerNames;
1980
+ };
1974
1981
 
1975
1982
  var niceErrors = {
1976
1983
  0: "Invalid value for configuration 'enforceActions', expected 'never', 'always' or 'observed'",
@@ -24439,7 +24446,7 @@ function requireCjs () {
24439
24446
  var cjsExports = requireCjs();
24440
24447
  var Draggable = /*@__PURE__*/getDefaultExportFromCjs(cjsExports);
24441
24448
 
24442
- const DraggableContainer = ({ zIndex, bottom, right, left, top, sx, children }) => {
24449
+ const DraggableContainer = ({ zIndex, width, bottom, right, left, top, sx, children }) => {
24443
24450
  const id = React__namespace.useId();
24444
24451
  const draggableRef = React__namespace.useRef(null);
24445
24452
  return (jsxRuntime.jsx(material.Portal, { children: jsxRuntime.jsx(Draggable, { nodeRef: draggableRef, children: jsxRuntime.jsx(material.Box, { id: id, ref: draggableRef, sx: () => ({
@@ -24448,8 +24455,9 @@ const DraggableContainer = ({ zIndex, bottom, right, left, top, sx, children })
24448
24455
  left,
24449
24456
  bottom,
24450
24457
  right,
24451
- width: 'inherit',
24458
+ width,
24452
24459
  zIndex,
24460
+ backgroundColor: 'white',
24453
24461
  }), children: jsxRuntime.jsx(CustomCard, { sx: sx, children: children }) }) }) }));
24454
24462
  };
24455
24463
 
@@ -31807,6 +31815,7 @@ exports.getCityPOILayers = getCityPOILayers;
31807
31815
  exports.getConditionLayers = getConditionLayers;
31808
31816
  exports.getCoordinateByLatLng = getCoordinateByLatLng;
31809
31817
  exports.getDefaultPOI = getDefaultPOI;
31818
+ exports.getEntityNames = getEntityNames;
31810
31819
  exports.getFacilityAreaLayers = getFacilityAreaLayers;
31811
31820
  exports.getLanduseAreaLayers = getLanduseAreaLayers;
31812
31821
  exports.getLaneMarkingLineLayers = getLaneMarkingLineLayers;