@liguelead/design-system 0.0.18 → 0.0.20
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/components/Alert/Alert.style.ts +1 -1
- package/components/Alert/Alert.variants.ts +1 -1
- package/components/Button/Button.appearance.ts +1 -1
- package/components/Button/Button.types.ts +1 -1
- package/components/DatePicker/DatePicker.tsx +5 -1
- package/components/PageWrapper/PageWrapper.tsx +1 -1
- package/components/SegmentedButton/SegmentedButton.types.ts +1 -1
- package/components/Text/Text.types.ts +1 -1
- package/package.json +2 -1
- package/types/index.ts +1 -0
|
@@ -6,8 +6,12 @@ import {
|
|
|
6
6
|
CaretDown
|
|
7
7
|
} from '@phosphor-icons/react'
|
|
8
8
|
import { getYear, getMonth } from 'date-fns'
|
|
9
|
-
import { range } from 'lodash'
|
|
10
9
|
import { ptBR } from 'date-fns/locale'
|
|
10
|
+
|
|
11
|
+
// Substituindo lodash.range por implementação simples
|
|
12
|
+
const range = (start: number, end: number, step: number = 1) => {
|
|
13
|
+
return Array.from({ length: Math.ceil((end - start) / step) }, (_, i) => start + i * step)
|
|
14
|
+
}
|
|
11
15
|
import { forwardRef, useState } from 'react'
|
|
12
16
|
import TextField from '../TextField'
|
|
13
17
|
import { DatePickerProps, Months } from './DatePicker.types'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {parseColor} from '../../utils'
|
|
2
2
|
import styled from 'styled-components'
|
|
3
|
-
import {colorType} from '
|
|
3
|
+
import {colorType} from '../../types'
|
|
4
4
|
import {spacing, SpacingInterface} from '@liguelead/foundation'
|
|
5
5
|
|
|
6
6
|
type SpacingType = keyof SpacingInterface
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liguelead/design-system",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.20",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "components/index.ts",
|
|
6
6
|
"publishConfig": {
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"files": [
|
|
24
24
|
"components/",
|
|
25
25
|
"utils/",
|
|
26
|
+
"types/",
|
|
26
27
|
"scripts/"
|
|
27
28
|
],
|
|
28
29
|
"devDependencies": {
|
package/types/index.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../types/types'
|