@liguelead/design-system 0.0.18 → 0.0.19

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,5 +1,5 @@
1
1
  import styled from 'styled-components';
2
- import { parseColor } from 'package/utils';
2
+ import { parseColor } from '../../utils';
3
3
  import {spacing, radius} from '@liguelead/foundation'
4
4
 
5
5
  export const AlertContainer = styled.div<{ $variant: string }>`
@@ -1,4 +1,4 @@
1
- import { parseColor } from 'package/utils'
1
+ import { parseColor } from '../../utils'
2
2
  import { useTheme } from 'styled-components'
3
3
 
4
4
  type TVariant = 'success' | 'danger' | 'warning' | 'info' | 'default'
@@ -1,5 +1,5 @@
1
1
  import { ButtonVariantTypes} from './Button.types'
2
- import { colorType } from '../../../types'
2
+ import { colorType } from '../../types'
3
3
  import { useTheme } from 'styled-components'
4
4
  import {darkenOrLighten, getTextColor, parseColor} from '../../utils'
5
5
 
@@ -1,4 +1,4 @@
1
- import { colorType } from '../../../types'
1
+ import { colorType } from '../../types'
2
2
 
3
3
  export type ButtonSizeTypes = 'sm' | 'md' | 'lg'
4
4
  export type ButtonVariantTypes = 'solid' | 'outline' | 'ghost'
@@ -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 '../../../types'
3
+ import {colorType} from '../../types'
4
4
  import {spacing, SpacingInterface} from '@liguelead/foundation'
5
5
 
6
6
  type SpacingType = keyof SpacingInterface
@@ -1,4 +1,4 @@
1
- import { colorType } from '../../../types'
1
+ import { colorType } from '../../types'
2
2
  type SegmentedButtonType = {
3
3
  label: string
4
4
  action?: () => void
@@ -1,4 +1,4 @@
1
- import { colorType } from '../../../types'
1
+ import { colorType } from '../../types'
2
2
  import { ReactNode } from 'react'
3
3
 
4
4
  type AlignType = 'left' | 'center' | 'right' | 'justify'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liguelead/design-system",
3
- "version": "0.0.18",
3
+ "version": "0.0.19",
4
4
  "type": "module",
5
5
  "main": "components/index.ts",
6
6
  "publishConfig": {