@pedidopago/ui 1.16.16 → 1.16.17

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,4 +1,8 @@
1
- export declare const fruitOptions: {
1
+ export declare const BRAZILIAN_DISTRICTS: {
2
+ label: string;
3
+ value: string;
4
+ }[];
5
+ export declare const BRAZILIAN_STATE_OPTIONS: {
2
6
  label: string;
3
7
  value: string;
4
8
  }[];
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/components/Combobox/Examples/constants.ts"],"names":[],"mappings":"AAyIA,eAAO,MAAM,YAAY;;;GAAuD,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/components/Combobox/Examples/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB;;;GA4B/B,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;GAGjC,CAAC"}
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.fruitOptions=void 0;var fruits=["Alfalfa Sprouts","Apple","Apricot","Artichoke","Asian Pear","Asparagus","Atemoya","Avocado","Bamboo Shoots","Banana","Banana Prata","Bean Sprouts","Beans","Beets","Belgian Endive","Bell Peppers","Bitter Melon","Blackberries","Blueberries","Bok Choy","Boniato","Boysenberries","Broccoflower","Broccoli","Brussels Sprouts","Cabbage","Cactus Pear","Cantaloupe","Carambola","Carrots","Casaba Melon","Cauliflower","Celery","Chayote","Cherimoya","Cherries","Coconuts","Collard Greens","Corn","Cranberries","Cucumber","Dates","Dried Plums","Eggplant","Endive","Escarole","Feijoa","Fennel","Figs","Garlic","Gooseberries","Grapefruit","Grapes","Green Beans","Green Onions","Greens","Guava","Hominy","Honeydew Melon","Horned Melon","Iceberg Lettuce","Jerusalem Artichoke","Jicama","Kale","Kiwifruit","Kohlrabi","Kumquat","Leeks","Lemons","Lettuce","Lima Beans","Limes","Longan","Loquat","Lychee","Madarins","Malanga","Mandarin Oranges","Mangos","Mulberries","Mushrooms","Napa","Nectarines","Okra","Onion","Oranges","Papayas","Parsnip","Passion Fruit","Peaches","Pears","Peas","Peppers","Persimmons","Pineapple","Plantains","Plums","Pomegranate","Potatoes","Prickly Pear","Prunes","Pummelo","Pumpkin","Quince","Radicchio","Radishes","Raisins","Raspberries","Red Cabbage","Rhubarb","Romaine Lettuce","Rutabaga","Shallots","Snow Peas","Spinach","Sprouts","Squash","Strawberries","String Beans","Sweet Potato","Tangelo","Tangerines","Tomatillo","Tomato","Turnip","Ugli Fruit","Water Chestnuts","Watercress","Watermelon","Waxed Beans","Yams","Yellow Squash","Yuca/Cassava","Zucchini Squash"],fruitOptions=fruits.map(function(item){return{label:item,value:item}});exports.fruitOptions=fruitOptions;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.BRAZILIAN_STATE_OPTIONS=exports.BRAZILIAN_DISTRICTS=void 0;var BRAZILIAN_DISTRICTS=[{label:"Acre",value:"AC"},{label:"Alagoas",value:"AL"},{label:"Amap\xE1",value:"AP"},{label:"Amazonas",value:"AM"},{label:"Bahia",value:"BA"},{label:"Cear\xE1",value:"CE"},{label:"Distrito Federal",value:"DF"},{label:"Esp\xEDrito Santo",value:"ES"},{label:"Goi\xE1s",value:"GO"},{label:"Maranh\xE3o",value:"MA"},{label:"Mato Grosso",value:"MT"},{label:"Mato Grosso do Sul",value:"MS"},{label:"Minas Gerais",value:"MG"},{label:"Par\xE1",value:"PA"},{label:"Para\xEDba",value:"PB"},{label:"Paran\xE1",value:"PR"},{label:"Pernambuco",value:"PE"},{label:"Piau\xED",value:"PI"},{label:"Rio de Janeiro",value:"RJ"},{label:"Rio Grande do Norte",value:"RN"},{label:"Rio Grande do Sul",value:"RS"},{label:"Rond\xF4nia",value:"RO"},{label:"Roraima",value:"RR"},{label:"Santa Catarina",value:"SC"},{label:"S\xE3o Paulo",value:"SP"},{label:"Sergipe",value:"SE"},{label:"Tocantins",value:"TO"}];exports.BRAZILIAN_DISTRICTS=BRAZILIAN_DISTRICTS;var BRAZILIAN_STATE_OPTIONS=BRAZILIAN_DISTRICTS.map(function(item){return{label:item.label,value:item.value}});exports.BRAZILIAN_STATE_OPTIONS=BRAZILIAN_STATE_OPTIONS;
@@ -1,2 +1,2 @@
1
1
  "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ComboboxDefault=ComboboxDefault,exports.ComboboxWithOnFocusShowOptions=ComboboxWithOnFocusShowOptions;var _react=require("react"),_=require(".."),_Typography=_interopRequireDefault(require("../../../components/Typography")),_Flex=_interopRequireDefault(require("../../Flex")),_constants=require("./constants"),_jsxRuntime=require("react/jsx-runtime");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(o,minLen):void 0}}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=Array(len);i<len;i++)arr2[i]=arr[i];return arr2}function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null!=_i){var _s,_e,_x,_r,_arr=[],_n=!0,_d=!1;try{if(_x=(_i=_i.call(arr)).next,0===i){if(Object(_i)!==_i)return;_n=!1}else for(;!(_n=(_s=_x.call(_i)).done)&&(_arr.push(_s.value),_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{if(!_n&&null!=_i.return&&(_r=_i.return(),Object(_r)!==_r))return}finally{if(_d)throw _e}}return _arr}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}function ComboboxDefault(){function handleChange(){setIsLoading(!0),clearTimeout(null===timer||void 0===timer?void 0:timer.current),timer.current=setTimeout(function(){setIsLoading(!1)},300)}var _useState=(0,_react.useState)(""),_useState2=_slicedToArray(_useState,2),comboboxValue=_useState2[0],setComboboxValue=_useState2[1],_useState3=(0,_react.useState)(!1),_useState4=_slicedToArray(_useState3,2),isLoading=_useState4[0],setIsLoading=_useState4[1],timer=(0,_react.useRef)();// eslint-disable-next-line no-undef
2
- return/*#__PURE__*/(0,_jsxRuntime.jsxs)(_Flex.default,{direction:"column",spacing:"6",children:[/*#__PURE__*/(0,_jsxRuntime.jsx)(_Typography.default,{color:"neutral.neutral6",children:"Search for fruit names. Ex: apple, banana, watermelon, etc:"}),/*#__PURE__*/(0,_jsxRuntime.jsx)(_.Combobox,{label:"Combobox Default",placeholder:"Selecionar",isLoading:isLoading,value:comboboxValue,onChange:function onChange(value){setComboboxValue(value)},onInputChange:function onInputChange(value){setComboboxValue(value),handleChange()},options:_constants.fruitOptions}),/*#__PURE__*/(0,_jsxRuntime.jsxs)(_Typography.default,{color:"neutral.neutral6",children:["Combobox value: ",comboboxValue]})]})}function ComboboxWithOnFocusShowOptions(){var _useState5=(0,_react.useState)(""),_useState6=_slicedToArray(_useState5,2),comboboxValue=_useState6[0],setComboboxValue=_useState6[1];return/*#__PURE__*/(0,_jsxRuntime.jsxs)(_Flex.default,{direction:"column",spacing:"6",children:[/*#__PURE__*/(0,_jsxRuntime.jsx)(_Typography.default,{color:"neutral.neutral6",children:"Search for fruit names. Ex: apple, banana, watermelon, etc:"}),/*#__PURE__*/(0,_jsxRuntime.jsx)(_.Combobox,{label:"Combobox With onFocusShowOptions",placeholder:"Selecionar",value:comboboxValue,onChange:function onChange(value){setComboboxValue(value)},options:_constants.fruitOptions,onFocusShowOptions:!0}),/*#__PURE__*/(0,_jsxRuntime.jsxs)(_Typography.default,{color:"neutral.neutral6",children:["Combobox value: ",comboboxValue]})]})}
2
+ return/*#__PURE__*/(0,_jsxRuntime.jsxs)(_Flex.default,{direction:"column",spacing:"6",children:[/*#__PURE__*/(0,_jsxRuntime.jsx)(_Typography.default,{color:"neutral.neutral6",children:"Search for State names. Ex: Acre, Alagoas, Amap\xE1, etc:"}),/*#__PURE__*/(0,_jsxRuntime.jsx)(_.Combobox,{label:"Combobox Default",placeholder:"Selecionar",isLoading:isLoading,value:comboboxValue,onChange:function onChange(value){setComboboxValue(value)},onInputChange:function onInputChange(value){setComboboxValue(value),handleChange()},options:_constants.BRAZILIAN_STATE_OPTIONS}),/*#__PURE__*/(0,_jsxRuntime.jsxs)(_Typography.default,{color:"neutral.neutral6",children:["Combobox value: ",comboboxValue]})]})}function ComboboxWithOnFocusShowOptions(){var _useState5=(0,_react.useState)(""),_useState6=_slicedToArray(_useState5,2),comboboxValue=_useState6[0],setComboboxValue=_useState6[1];return/*#__PURE__*/(0,_jsxRuntime.jsxs)(_Flex.default,{direction:"column",spacing:"6",children:[/*#__PURE__*/(0,_jsxRuntime.jsx)(_Typography.default,{color:"neutral.neutral6",children:"Search for State names. Ex: Acre, Alagoas, Amap\xE1, etc:"}),/*#__PURE__*/(0,_jsxRuntime.jsx)(_.Combobox,{label:"Combobox With onFocusShowOptions",placeholder:"Selecionar",value:comboboxValue,onChange:function onChange(value){setComboboxValue(value)},options:_constants.BRAZILIAN_STATE_OPTIONS,onFocusShowOptions:!0}),/*#__PURE__*/(0,_jsxRuntime.jsxs)(_Typography.default,{color:"neutral.neutral6",children:["Combobox value: ",comboboxValue]})]})}
@@ -1 +1 @@
1
- {"version":3,"file":"dash.d.ts","sourceRoot":"","sources":["../../../../src/components/Icon/data/dash.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS;;;;;;;GAiwHrB,CAAC"}
1
+ {"version":3,"file":"dash.d.ts","sourceRoot":"","sources":["../../../../src/components/Icon/data/dash.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS;;;;;;;GAyxHrB,CAAC"}