@bikdotai/bik-component-library 0.0.1-analytics-beta → 0.0.1-analytics-chips--beta

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.
@@ -0,0 +1,156 @@
1
+ import r from"styled-components";import{COLORS as e}from"../../constants/Theme.js";const o=r.div`
2
+ position: relative;
3
+ z-index: 99999;
4
+
5
+ .react-calendar {
6
+ background: ${e.text.white};
7
+ border-width: 1px;
8
+ border-style: solid;
9
+ border-color: ${e.text.white};
10
+ box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.12);
11
+ border-radius: 4px;
12
+ color: ${e.text.primary};
13
+ &--selectRange {
14
+ .react-calendar {
15
+ &__year-view {
16
+ .react-calendar__tile--hover {
17
+ background-color: unset;
18
+ }
19
+ }
20
+ &__month-view {
21
+ .react-calendar__tile--hover {
22
+ background-color: ${e.background.brandLight};
23
+ }
24
+ }
25
+ }
26
+ }
27
+ .react-calendar {
28
+ &__tile {
29
+ transition: all 0.25s;
30
+ &:enabled:hover {
31
+ background-color: ${e.surface.hovered};
32
+ border-radius: 4px;
33
+ }
34
+ &--hasActive:enabled:hover,
35
+ &--hasActive:enabled:focus {
36
+ background: ${e.background.brand};
37
+ color: ${e.text.white};
38
+ }
39
+ &.react-calendar__tile {
40
+ &--range {
41
+ &:enabled:hover {
42
+ border-radius: 0;
43
+ }
44
+ }
45
+ &--rangeStart {
46
+ border-top-right-radius: 0;
47
+ border-bottom-right-radius: 0;
48
+ border-top-left-radius: 4px !important;
49
+ border-bottom-left-radius: 4px !important;
50
+ background: ${e.background.brand};
51
+ color: ${e.text.white};
52
+
53
+ &:enabled:hover {
54
+ border-top-right-radius: 0;
55
+ background: ${e.background.brand};
56
+ border-color: ${e.background.brand};
57
+ border-bottom-right-radius: 0;
58
+ }
59
+ &.react-calendar__tile--rangeEnd {
60
+ ${r=>(r=>r.selectRange?"\n border-top-right-radius: 0 !important;\n border-bottom-right-radius: 0 !important;\n ":"\n border-top-right-radius: 4px;\n border-bottom-right-radius: 4px;\n ")(r)}
61
+ border-top-left-radius: 4px;
62
+ border-bottom-left-radius: 4px;
63
+ &:enabled:hover {
64
+ background: ${e.background.brand};
65
+ border-color: ${e.background.brand};
66
+ border-top-right-radius: 0;
67
+ border-bottom-right-radius: 0;
68
+ border-top-left-radius: 4px !important;
69
+ border-bottom-left-radius: 4px !important;
70
+ }
71
+ }
72
+ }
73
+ &--rangeEnd {
74
+ border-top-left-radius: 0;
75
+ border-bottom-left-radius: 0;
76
+ border-top-right-radius: 4px !important;
77
+ border-bottom-right-radius: 4px !important;
78
+ background: ${e.background.brand};
79
+ color: ${e.text.white};
80
+
81
+ &:enabled:hover {
82
+ border-top-left-radius: 0;
83
+ background: ${e.background.brand};
84
+ border-color: ${e.background.brand};
85
+ border-bottom-left-radius: 0;
86
+ }
87
+ }
88
+ }
89
+ }
90
+ }
91
+
92
+ .react-calendar__tile--active {
93
+ background: ${e.background.brandLight};
94
+ color: ${e.text.primary};
95
+ }
96
+
97
+ .react-calendar__tile--now {
98
+ background: ${e.text.white};
99
+ border-radius: 4px;
100
+ border-color: ${e.background.brand};
101
+ border-style: solid;
102
+ border-width: 1px;
103
+ }
104
+
105
+ .react-calendar__month-view__weekdays__weekday {
106
+ font-style: normal;
107
+ overflow: hidden;
108
+ font-weight: 600;
109
+ font-size: 14px;
110
+ line-height: 20px;
111
+ color: ${e.text.primary};
112
+
113
+ abbr[title] {
114
+ text-decoration: none !important;
115
+ }
116
+ }
117
+
118
+ .react-calendar__navigation button:enabled:hover,
119
+ .react-calendar__navigation button:enabled:focus {
120
+ background-color: ${e.background.brandLight};
121
+ border-radius: 4px;
122
+ }
123
+
124
+ .react-calendar__month-view__weekends {
125
+ color: ${e.text.primary};
126
+ }
127
+
128
+ .react-calendar__month-view__days__day--weekend {
129
+ color: ${e.text.primary};
130
+ }
131
+
132
+ .react-calendar__month-view__weekdays {
133
+ background: ${e.surface.subdued};
134
+ }
135
+
136
+ .react-calendar__navigation {
137
+ display: flex;
138
+ padding: 12px 20px;
139
+
140
+ button {
141
+ border: 0;
142
+ background: transparent;
143
+ }
144
+
145
+ .react-calendar__navigation__arrow
146
+ react-calendar__navigation__prev2-button {
147
+ font-size: 20px;
148
+ }
149
+
150
+ .react-calendar__navigation__arrow
151
+ react-calendar__navigation__prev-button {
152
+ font-size: 20px;
153
+ }
154
+ }
155
+ }
156
+ `;export{o as PickerContainer};
@@ -0,0 +1 @@
1
+ import{__rest as o}from"../../_virtual/_tslib.js";import{jsx as r}from"react/jsx-runtime";import{useRef as t,useState as e}from"react";import{COLORS as n}from"../../constants/Theme.js";import i from"../../assets/icons/chevronDown.svg.js";import{Input as l}from"../input/Input.js";import{InputStyleContext as a}from"../input/context/InputStyleProvider.js";import{UnChildDropdown as s}from"./UnChildDropdown/UnChildDropdown.js";function p(){}const c=c=>{var{placeHolder:m,size:u,onSelect:d}=c,h=o(c,["placeHolder","size","onSelect"]);const f=null!=u?u:"default",v=t(),[g,j]=e(null);const w=g?g.map((o=>o.options?o.options.map((o=>o.label)).join(","):o.label)).join(","):void 0;return r(a.Provider,Object.assign({value:{InputWrapper:{height:"small"===f?32:48,width:"100%",zIndex:1,cursor:"pointer"},input:{minHeight:"100%"}}},{children:r(s,Object.assign({ref:v,onSelect:function(o){Array.isArray(o)?j([...o]):j([o]),null==d||d(o)}},h,{children:r(l,{value:w,errorMessage:h.error,variant:f,onChangeText:p,placeholder:null!=m?m:"Select an option",rightIcon:{icon:()=>{var o;return r(i,{style:{transform:(null===(o=null==v?void 0:v.current)||void 0===o?void 0:o.openDropdown)?"rotate(180deg)":"rotate(0deg)"},onClick:p,width:"small"===f?20:24,height:"small"===f?20:24,color:n.content.primary})}}})}))}))};export{c as default};
@@ -23,3 +23,4 @@ export * from './components/modals';
23
23
  export * from './components/dropdown';
24
24
  export * from './components/analytics-card';
25
25
  export * from './components/input';
26
+ export * from './components/analytics-chips-and-dropdowns';
package/dist/esm/index.js CHANGED
@@ -1 +1 @@
1
- export{default as StringUtils}from"./utils/StringUtils.js";export{BASE_COLORS,COLORS,DEFAULT_THEME,FONTS}from"./constants/Theme.js";export{CheckBox}from"./components/checkBox/CheckBox.js";export{ListItem}from"./components/list-item/ListItem.js";export{Pagination}from"./components/pagination/Pagination.js";export{RadioButton}from"./components/radioButton/RadioButton.js";export{Toaster}from"./components/toaster/Toaster.js";export{Tooltip}from"./components/tooltips/Tooltip.js";export{CustomisedTooltip,TooltipPlacement}from"./components/tooltips/CustomisedTooltip.js";export{Spinner}from"./components/spinner/Spinner.js";export{Stepper}from"./components/stepper/Stepper.js";export{Tag}from"./components/tag/Tag.js";export{IconButton}from"./components/icon-button/IconButton.js";import*as o from"./components/template-preview/constants/regexPatterns.js";export{o as regexPatterns};export{TemplatePreview}from"./components/template-preview/TemplatePreview.js";export{WhatsappLikePreview}from"./components/template-preview/WhatsApp/WhatsAppLikePreview.js";export{renderVariableUIForPreview}from"./components/template-preview/helpers/SmsTemplateHelper.js";export{WhatsAppFormatToHTML}from"./components/template-preview/helpers/WhatsAppFormatToHTML.js";export{FABMenu}from"./components/fab-menu/FABMenu.js";export{FloatingActionButton}from"./components/floating-action-button/FloatingActionButton.js";export{DROP_POSITION,DropdownToggleContainer,FAB_POSITION,FloatingActionButtonContainer,FloatingActionButtonOuterContainer,MENU_ALIGNMENT,StyledDropdown}from"./components/floating-action-button/FloatingActionButton.styles.js";export{ImageService}from"./components/image-compress/ImageCompress.js";export{BodyCaption,BodyLarge,BodyPrimary,BodyPrimaryLink,BodyRegular,BodySecondary,BodySecondaryLink,BodyTiny,ButtonLarge,ButtonRegular,Caption,Display,SubHeading,TitleLarge,TitleMedium,TitleRegular,TitleSmall}from"./components/TypographyStyle.js";export{Button}from"./components/button/Button.js";export{ProgressBarComponent,ProgressCompletedBar}from"./components/progress-bar/ProgressBarComponent.js";export{StyledModal}from"./components/modals/styledModal.js";import"react/jsx-runtime";import"react";export{Input}from"./components/input/Input.js";import"./components/dropdown/UnChildDropdown/UnChildDropdown.js";export{AnalyticsCard}from"./components/analytics-card/AnalyticsCard.js";export{AnalyticsContainer,CardDataContainer}from"./components/analytics-card/AnalyticsCard.styled.js";
1
+ export{default as StringUtils}from"./utils/StringUtils.js";export{BASE_COLORS,COLORS,DEFAULT_THEME,FONTS}from"./constants/Theme.js";export{CheckBox}from"./components/checkBox/CheckBox.js";export{ListItem}from"./components/list-item/ListItem.js";export{Pagination}from"./components/pagination/Pagination.js";export{RadioButton}from"./components/radioButton/RadioButton.js";export{Toaster}from"./components/toaster/Toaster.js";export{Tooltip}from"./components/tooltips/Tooltip.js";export{CustomisedTooltip,TooltipPlacement}from"./components/tooltips/CustomisedTooltip.js";export{Spinner}from"./components/spinner/Spinner.js";export{Stepper}from"./components/stepper/Stepper.js";export{Tag}from"./components/tag/Tag.js";export{IconButton}from"./components/icon-button/IconButton.js";import*as o from"./components/template-preview/constants/regexPatterns.js";export{o as regexPatterns};export{TemplatePreview}from"./components/template-preview/TemplatePreview.js";export{WhatsappLikePreview}from"./components/template-preview/WhatsApp/WhatsAppLikePreview.js";export{renderVariableUIForPreview}from"./components/template-preview/helpers/SmsTemplateHelper.js";export{WhatsAppFormatToHTML}from"./components/template-preview/helpers/WhatsAppFormatToHTML.js";export{FABMenu}from"./components/fab-menu/FABMenu.js";export{FloatingActionButton}from"./components/floating-action-button/FloatingActionButton.js";export{DROP_POSITION,DropdownToggleContainer,FAB_POSITION,FloatingActionButtonContainer,FloatingActionButtonOuterContainer,MENU_ALIGNMENT,StyledDropdown}from"./components/floating-action-button/FloatingActionButton.styles.js";export{ImageService}from"./components/image-compress/ImageCompress.js";export{BodyCaption,BodyLarge,BodyPrimary,BodyPrimaryLink,BodyRegular,BodySecondary,BodySecondaryLink,BodyTiny,ButtonLarge,ButtonRegular,Caption,Display,SubHeading,TitleLarge,TitleMedium,TitleRegular,TitleSmall}from"./components/TypographyStyle.js";export{Button}from"./components/button/Button.js";export{ProgressBarComponent,ProgressCompletedBar}from"./components/progress-bar/ProgressBarComponent.js";export{StyledModal}from"./components/modals/styledModal.js";import"react/jsx-runtime";import"react";export{Input}from"./components/input/Input.js";import"./components/dropdown/UnChildDropdown/UnChildDropdown.js";export{AnalyticsCard}from"./components/analytics-card/AnalyticsCard.js";export{AnalyticsContainer,CardDataContainer}from"./components/analytics-card/AnalyticsCard.styled.js";export{AnalyticsChip}from"./components/analytics-chips-and-dropdowns/AnalyticsChip.js";export{AnalyticsDropdown}from"./components/analytics-chips-and-dropdowns/AnalyticsDropdown.js";export{AnalyticsMultiChip}from"./components/analytics-chips-and-dropdowns/AnalyticsMultiChip.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bikdotai/bik-component-library",
3
- "version": "0.0.1-analytics-beta",
3
+ "version": "0.0.1-analytics-chips--beta",
4
4
  "description": "Bik Component Library",
5
5
  "repository": {
6
6
  "type": "git",