@licklist/design 0.68.6-dev.2 → 0.68.7-dev.0

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/.prettierrc CHANGED
@@ -1,3 +1,7 @@
1
1
  {
2
- "plugins": ["prettier-plugin-tailwindcss"]
2
+ "plugins": ["prettier-plugin-tailwindcss"],
3
+ "semi": false,
4
+ "singleQuote": true,
5
+ "jsxSingleQuote": true,
6
+ "bracketSameLine": false
3
7
  }
@@ -79,11 +79,13 @@ var useWorkHoursValidation = function() {
79
79
  var workHours = Array.from({
80
80
  length: 7
81
81
  }, function(_, i) {
82
- if (_workHours === null || _workHours === void 0 ? void 0 : _workHours[i]) {
83
- return _workHours[i];
84
- }
82
+ var existing = _workHours.find(function(param) {
83
+ var day = param.day;
84
+ return day === i;
85
+ });
86
+ if (existing) return existing;
85
87
  return {
86
- day: i + 1,
88
+ day: i,
87
89
  start: '00:00',
88
90
  end: '23:59',
89
91
  description: ''
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@licklist/design",
3
- "version": "0.68.6-dev.2",
3
+ "version": "0.68.7-dev.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@bitbucket.org/artelogicsoft/licklist_design.git"
@@ -206,6 +206,5 @@
206
206
  "volta": {
207
207
  "node": "20.9.0",
208
208
  "yarn": "4.4.0"
209
- },
210
- "stableVersion": "0.66.7-dev.5"
209
+ }
211
210
  }
@@ -127,12 +127,12 @@ export const useWorkHoursValidation = (
127
127
  if (!_workHours) return {}
128
128
 
129
129
  const workHours: WorkHour[] = Array.from({ length: 7 }, (_, i) => {
130
- if (_workHours?.[i]) {
131
- return _workHours[i]
132
- }
130
+ const existing = _workHours.find(({ day }) => day === i)
131
+
132
+ if (existing) return existing
133
133
 
134
134
  return {
135
- day: (i + 1) as Day,
135
+ day: i as Day,
136
136
  start: '00:00',
137
137
  end: '23:59',
138
138
  description: '',
package/yarn.lock CHANGED
@@ -14946,11 +14946,11 @@ __metadata:
14946
14946
  linkType: hard
14947
14947
 
14948
14948
  "nan@npm:^2.12.1":
14949
- version: 2.20.0
14950
- resolution: "nan@npm:2.20.0"
14949
+ version: 2.21.0
14950
+ resolution: "nan@npm:2.21.0"
14951
14951
  dependencies:
14952
14952
  node-gyp: "npm:latest"
14953
- checksum: 10c0/75775309a21ad179a55250d62ce47322c33ca03d8ddb5ad4c555bd820dd72484b3c59253dd9f41cc68dd63453ef04017407fbd081a549bc030d977079bb798b7
14953
+ checksum: 10c0/cc3f89ca7dbba3413bed8f450284016af2d127ef7303e8cbcee5cb2a3ade989871ab7653fb36fffcddb3cde420a8279859cee4e4e9d64d4c1783e762b1f3237b
14954
14954
  languageName: node
14955
14955
  linkType: hard
14956
14956